Adrian Peter wrote:
Hi,

I am working on a multipart thesis using Lyx.  I keep getting the following
error when I try to export to PDF or view the DVI:

TeX capacity exceeded, sorry [input stack size=5000]
I checked the mail archive and saw that there could be several issues that
cause this error: unterminated brackets, infinite loops from the \renew
command, too many eps figures, etc.  Nothing was conclusive.  My child
documents do use several eps figures with many of them exceeding 30MB in
size.  Could someone help me figure out what is really causing this error
and how to fix it?  If it is the eps figures, will the problem be solved if
I convert them to PNG of smaller size?  Thank you.


You have EPS figures that individually exceed 30MB??? Yikes!! I assume the bulk of these are bitmaps? If the bitmaps are previews (see, for instance, http://bourbon.usc.edu/tgif/faq/importeps.html), I would chop them out; they won't (at least, shouldn't) be used when generating PDF output. Don't know if they would cause LaTeX to run out of memory, though.

If that's not the source of the memory problem, you might try a divide-and-conquer approach. Chop out pieces of the thesis until you get something that compiles, then put things back until you either identify a maximum amount of the document that compiles or identify one particular piece that's at fault (meaning the entire document minus that piece compiles, and that piece by itself does not). If it's the latter case, use divide-and-conquer within just that piece to find the culprit.

/Paul

Reply via email to