Today I had to increase the main memory of my LaTeX installation yet another time and it required quite a while to collect the information again. Therefore, I am pasting my steps here as a future reference.
First of all, this is the error message I try to get rid of:
! TeX capacity exceeded, sorry [main memory size=5000000].
It is caused by my
tikz ﬁgures that have been created using the
tikzDevice package for
I ﬁxed my problem using the following steps:
- Open the speciﬁc
texmf.cnfand go to line 697:
sudo vim /usr/local/texlive/2013/texmf-dist/web2c/texmf.cnf +697
- Change the value
main_memoryto 9 000 000 (was enough for me).
- Run fmutil helper script:
sudo fmtutil-sys --all
After that LaTeX ran ﬁne again.