I was looking the last version of the book “Algorithmic Graph Theory”, and one of the comments was about an error in the compilation… due to a lack of TeX memory.
I’ve not heard of that problem before, so… just in case some of you is puzzled with this, here is the solution (thx. to mvngu)
To increase TeX’s main memory, you need to locate the active texmf.cnf file for your TeX/LaTeX distribution. For example, on Ubuntu you can do so via the command
$ kpsewhich texmf.cnf
Then open the file as root with the command
$ sudo emacs /usr/share/texmf/web2c/texmf.cnf
which will most likely prompt you for an administrator password. Enter the password and search for the line that begins with something such asmain_memory = 3000000 % words of inimemory available; also applies to inimf&mp
Change the value “3000000″ to “10000000″, i.e. change from 3 million to 10 million. Save your edit and quit your editor. Then issue the command
$ sudo fmtutil-sys --all
and compile the book again.