I have a large book (1052 pages) it's got a lot of pictures and even more endnotes (2037 to be exact). We've recently switched to a system where we have a database that all of the reference info is stored and a function that generates a .tex file with a \newcommand{} containing all of the reference info formatted properly. This has been working great for all of our other books, but when we switched to this method on the big book we keep getting this error when processing.
So the question is, could my method of making a file with the \newcommands for all references be causing it to throw the memory error? This seems unlikely to me, but it's the only thing that's changed since it worked last.
I'm running vtex, and the examples on how to up the memory limit for MikTex, TeXlive, etc. aren't working for me in vtex.
\newcommandlook like or how many you have. – David Carlisle Jun 24 '20 at 22:02[main memory size=524285], here's an example command:\newcommand{\hmdbrefCIAAxHIHH}{\refiddisplay{CIAA-HIHH}De Landa, \textit{War in the Age of Intelligent Machines}, pp. 29-30}, I have 2037 of them. – Circle B Jun 24 '20 at 22:23% Memory. Must be less than 8,000,000 total.if you are using miktex it has equivalent settings but I don't know the details. – David Carlisle Jun 24 '20 at 22:26\newcommandthey take up a fair amount of memory do you only use them once each? – David Carlisle Jun 24 '20 at 22:27main_memory. – Circle B Jun 24 '20 at 22:47\bibitem[CIAA-HIHH]De Landa, \textit{War in the Age of Intelligent Machines}, pp. 29-30}why do you need to define a command? – David Carlisle Jun 24 '20 at 23:07! TeX capacity exceeded, sorry [main memory size=5000000].so roughly ten times the size of the vtex you are using. – David Carlisle Jun 24 '20 at 23:21thebibliographyis one—I'll definitely look into it! I'm still trying to find out how to increase the memory, it seems quite odd why it would be so low. – Circle B Jun 24 '20 at 23:27