Turned out the error was being caused by having single quotes in math equations. I was using them to indicate derivatives. I changed them to \prime and everything worked! Also it didn't like it if I placed a single quote inside a \mbox within a math equation. Anyone know why this is? Thanks.
Adrian -----Original Message----- From: Paul A. Rubin [mailto:[EMAIL PROTECTED] Sent: Saturday, May 03, 2008 1:36 PM To: lyx-users@lists.lyx.org Subject: Re: Tex capacity exceeded 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