When using Forest package to chart an organizational structure, I have to limit it to 4-5 hierarchy levels, as both pdflatex or lualatex throw an error ! TeX capacity exceeded, sorry [save size=50000].
The forest that fails contains approximately 500-600 nodes. There is only one forest per file.
I already tried to increase MikTex 2.9 (updated to the current) main memory by running
initexmf --edit-config-file=pdflatex
initexmf --dump=pdflatex
but the error is still there and the number 50,000 in the error message is still the same. Is there a similar INI file for lualatex?
Q: Are there any other methods that would allow to increase memory utilization allowed for pdflatex or lualatex? When they run, they do not exceed 43 MB and 75 MB respectively before they exit with the error.
I am not providing an MWE yet as 1) I would have to scramble data and it would become hard to read, and 2) it is unlikely anyone here is prepared to spend time sifting thru 500 nodes anyhow. Open to suggestions!
One of the answers here suggested a workaround of including
\tikzset{external/system call= {pdflatex -save-size=800000
-pool-size=10000000
-extra-mem-top=50000000
-extra-mem-bot=10000000
-main-memory=90000000
\tikzexternalcheckshellescape
-halt-on-error
-interaction=batchmode
-jobname "\image" "\texsource"}}
but the error is still there.
Also tried to use command line option --extra-mem-top=2000000 with no success.
! TeX capacity exceeded, sorry [save size=50000].– ajeh Jun 27 '14 at 15:56lualatexstarted throwing error messages on the smaller forests, butpdflatexcompiles them fine! – ajeh Jul 11 '14 at 16:06