Graphics, Figures & TablesPDFLaTeX reports too many open Files

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
atomchoco
Posts: 5
Joined: Wed Nov 02, 2011 11:06 am

PDFLaTeX reports too many open Files

Post by atomchoco »

Hello,

to be able to produce a List of Figures, I enclosed most of the graphics in my document inside {figure} tags. I tried it on a few images first, and after seeing there were no errors, I proceeded to do it to the rest of the graphics.

When I finished, I compiled and I got the error
pdflatex: Too many open files
Now I'm not able to produce a PDF output. I made a backup of the previous version though but if I used that I might not be able to automatically produce a List of Figures.

I checked for solutions online and found one that says I should try to include

Code: Select all

\let\mypdfximage\pdfximage
\def\pdfximage{\immediate\mypdfximage}
before \documentclass, but still the problem persists.


Cheers,
Josh

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: PDFLaTeX reports too many open Files

Post by kaiserkarl13 »

How many figures are we talking about here? It also makes a difference what OS you are using. DOS, for example, has a FILES environment variable (iirc; it has been a loooong time since I've messed around with it) that determines the maximum number of files that a program can open, and UNIX shells have the "ulimit -f" or "limit files" commands. If you're in DOS, type "echo %FILES%" and see what you get.

My suspicion is that you have something wrong with your markup, too, but without seeing it I can't be sure.
eecs_ta
Posts: 1
Joined: Wed Jul 04, 2012 9:07 am

PDFLaTeX reports too many open Files

Post by eecs_ta »

Using \clearpage worked for me. Add it every n figures, where n might depend on how many floats pdfLaTeX or LaTeX can handle.
Post Reply