How do I fix a TeX capacity exceeded error?
The most common cause of this error is corrupted LaTeX .aux files, and sometimes, unbalanced braces in input files. In the first case, simply delete the offending .aux file and run LaTeX again. In the second case, use the chkdelim utility with the -tex option to help you find the brace problem. In rare cases, the problem is real: your document really does require more capacity in one of TeX’s internal tables. With the Web2C version 6 system from which our standard TeX is built, it is not possible to fix this problem, except by changing source code and recompiling TeX. However, with the Web2C version 7 system that the other two TeX implementations are based on, it is possible to change most of the internal table sizes with an assignment in a configuration file. For example, one of our faculty wrote a book that makes extensive use of cross-references, and found that the TeX pool_size limit was exceeded. He switched to the TeX Live version, and created a texmf.