Andre Poenitz wrote:
> I have a 19 page document with about 3 pages of LyX code.
> TeX refuses to compile it because 'TeX capacity exceeded [main memory 384000]'
>
> However, if I change \verbatim@font in the definition of \lyxcode
> to \tt, everything works fine as expected.
>
> Has anybody encountered such behaviour before?
I got this error message when compiling a LyX file containing a large number of
eps files. The document "Using Imported Graphics in LaTeX 2e"
(http://www.tex.ac.uk/tex-archive/info/epslatex.ps) had some tips on reducing the
amount of memory you used when importing graphics, but I couldn't figure out how
to get these to work with LyX.
Instead, I increased the main memory size by changing the value of "main_memory"
in texmf.cnf. For me, this file is located at /usr/share/texmf/web2c/texmf.cnf
. After that I had to type "fmtutil --all" in order for the change to take
place. When main_memory had been increased sufficiently, my document
successfully compiled.
-Neil