I am working on a LaTeX file with many plots containing a lot of data points. I have a main.tex file that is including chapter files and inside these chapter files I include the files that contain the \begin{figure}\begin{tikzpicture}...\end{tikzpicture}\end{figure} and I am running into this error
! TeX capacity exceeded, sorry [main memory size=5000000] I have read many posts about externalizing etc. but I don't know how to apply this method or to put it into other words it is too complicated for me. I simply want to increase my main memory such that I do not run into such problems.
I would be glad if someone could explain to me how I can increase my main memory. I am not looking for a solution with externalization because it is too complicated for me. I am running Texmaker 4.5 as Editor, Miktex 2.9 and Windows 7.
EDIT: What I have tried
- Finding: texmf.cnf (could not find it using the hint by Alan Munn)
- Typing: "initexmf --edit-config-file=pdflatex" into the cmd. The pdflatex.ini file opend and I added the following to the file and saved and recompiled without success.
main_memory=9000000
extra_mem_bot=9000000
font_mem_size=9000000
kpsewhich texmf.cnfin a command line window.texmf.cnf. It should return a full path.pgfplots? If so, the best strategy might be to use\usetikzlibrary{external}. This will do away with the need to recompile every plot every time. Compilation will be faster and use less memory. To get around the current memory shortage snag, start with a smaller document: insert\end{document}halfway down or so to compile some plots first, then remove it again and compile the rest.