I am trying to compile a large file which contains a tikz picture with more data points than tex can handle.
Following the questions here and here I set to increase the capacity of tex by changing the file texmf.cnf in my path /usr/local/texlive/2012. I included the line
main_memory = 10000000
and on terminal I run
sudo fmtutil-sys --all
The problem is that this memory is not enough, and numbers bigger than that don't finish the fmtutil run properly. I get the error
fmtutil: Error! Not all formats have been built successfully.
To give a better idea of where the problem is coming from, if I only include in the file texmf.cnf the lines
main_memory.latex = 15000000
main_memory.pdflatex = 15000000
then these are the files which are not properly built:
This is a summary of all `failed' messages:
`pdftex -ini -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' failed
`pdftex -ini -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx *pdflatex.ini' failed
How can I increase the size of the memory beyond 10000000? Am I doing anything wrong?
(BTW, I am running texlive 2012 on a mac)
extra_mem_topandextra_mem_bot, which doesn't require rebuilding formats. – egreg Jul 26 '12 at 10:31extra_mem_topandextra_mem_botand I will try that, thanks. I am not sure what you mean by "command shown on the last line", though... – Vivi Jul 26 '12 at 10:35pdftex -ini -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx "*pdflatex.ini"(the double quotes protect the*from shell expansion). – egreg Jul 26 '12 at 10:41main_memoryis 12435455 – egreg Jul 26 '12 at 11:09lualatex: the result should not be very different and the program dynamically allocates memory. – egreg Jul 26 '12 at 12:04extra_mem_topandextra_mem_botyou don't need to runfmtutil. Setting them intexmf.cnfshould suffice. You can also set environment variables of the same name (might be system dependent though). Secondly,12435455isn't the maximum by far for those two. I use230000000(beware of large process memory consumption). – Stephan Lehmke Jul 26 '12 at 15:42