Philosophy of the Arts

Technical

TeX capacity exceeded, sorry

Typesetting a BibteX-file (not all that large: 220KB) in TexShop brought me no trouble whatsoever, but in Terminal got me this fatal failure:
! TeX capacity exceeded, sorry [save size=5000].
<to be read again>
{
l.5493

It took me a lot of reading, checking and surfing to track down the cause: memory use.
Before enlarging the memory capacity of my Tex distribution I sought and sought what wrong macro or font-definition I might be using. I found nothing and decided to check the exact memory problem I was causing.

To get there I added tracingstats=2 to the preamble of the tex-file that calls the bibtex file, and this gave me the information about memory-use I needed.
It said at the bottom of the log-file:
save_size = 5000 % for saving values outside current group

In texmf.cnf (on my computer I found it here: sw/share/texmf/web2c/texmf.cnf) I changed:
into
save_size = 8000 % for saving values outside current group

This did the trick!

[BTW, this is important for me because I can now make use again of the shell-script I wrote, which turns the bibtext file in a large XHTML-file that I can access on internet. Apart from latex, bibtext and tex4ht, I use osascript to open BBEdit, and to tell BBEdit to use an AppleScript which strips all the codes I don’t want, and change it those I do, so that the end-result can be included by a SSI, under Apache.
In all, with a single Terminal command I produce an always fully up-to-date bibliography.]

Only afterwards did I find this pdf from Eric Beitz explaining solutions like this (but not this particular one) for a variety of operating systems.

Mittelbach, Frank, and Michel Goossens. 2004, 916. The LaTeX Companion. Second Edition. Boston, etc.: Addison-Wesley.

You must be logged in to post a comment.