I wrote a C++ code, which will create a LaTeX file with Tikz commands. The tex file the code creates is pretty long i.e. around 43,000 lines. However, when I try to compile it gives me the following error.
! TeX capacity exceeded, sorry [main memory size=3000000].
Is there anyway I can circumvent this error?
Dimension too large). I recommend switching to pstricks and precompiling the images, if this is possible. – yo' Oct 19 '12 at 23:48standaloneto precompile thetikzpicturesand include them into the main document as images. With an automatic generated document this extra steps should not really be an issue. – Martin Scharrer Feb 07 '13 at 07:20\def\recmacro{\recmacro Text}would add 'Text' to the input buffer until its full). This append to me with theapacitepackage recently. Here allocating more memory doesn't help. – Martin Scharrer Feb 07 '13 at 07:24\begin{tikzpicture} \end{tikzpicture}) is nearly 10,000 lines. – Feb 07 '13 at 08:32