LaTeX Limits

9. Februar 2022

LaTeX Limits

Bei vielen Daten, vor allem wenn Bilder, eher Zeichnungen, mit im Spiel sind, kann es passieren, dass das Erstellen der PDF nicht funktioniert und aufgrund von Speicherengpässen abgebrochen wird.

[...] TeX capacity exceeded, sorry [main memory size=5000000].

Der verfügbare Speicher lässt sich in /usr/share/texmf/web2c/texmf.cnf einstellen und damit vergrößern.

% Memory. Must be less than 8,000,000 total.
%
% main_memory is relevant only to initex, extra_mem_* only to non-ini.
% Thus, have to redump the .fmt file after changing main_memory; to add
% to existing fmt files, increase extra_mem_*.  (To get an idea of how
% much, try \tracingstats=2 in your TeX source file;
% web2c/tests/memtest.tex might also be interesting.)
%
% To increase space for boxes (as might be needed by, e.g., PiCTeX),
% increase extra_mem_bot.
%
% For some xy-pic samples, you may need as much as 700000 words of memory.
% For the vast majority of documents, 60000 or less will do.
%
main_memory = 7000000 % words of inimemory available; also applies to inimf&mp
extra_mem_top = 6000000 % extra high memory for chars, tokens, etc.
extra_mem_bot = 6000000 % extra low memory for boxes, glue, breakpoints, etc.

% ConTeXt needs lots of memory.
extra_mem_top.context = 2000000
extra_mem_bot.context = 4000000

Lebenskalender

7. Januar 2022