[NTG-context] TeX capacity exceeded.... but....

Rik Kabel ConTeXt at rik.users.panix.com
Thu Mar 17 23:34:36 CET 2022

On 2022-03-17 18:14, jbf via ntg-context wrote:
> I'd like to understand what is happening in this particular instance:
> While playing with a suggestion to a recent request (re 
> \currentlistentrynumber etc.) I suddenly got a compiling error:
> TeX capacity exceeded, sorry [file=2000].
> I returned everything to how it was before I was trying out those 
> suggestions, but still got the error, so I began the \stopdocument 
> routine fairly early in the document... same problem still. Then I 
> brought the \stopdocument well forward, immediately after the standard 
> makeup pages and the document compiled. When I removed \stopdocument, 
> the entire document compiled as it should.
> So the basic question is: what can be causing the error message? This 
> has happened to me on two occasions with this document - it occurred 
> once before I had even begun experimenting with the \currentlistentry 
> options, so I do not think that the problem lies there. And when it 
> occurred that time, I again solved it with \stopdocument routine, but 
> further into the document. And similarly, once it compiled that far 
> and I removed it, the whole document compiled once more.
> If it is too complicated an explanation for an email response, maybe 
> just point me to a document that explains the issue.
> Julian
I cannot explain what is happening, but I can tell you what I do when I 
come across an unexpected failure: I delete the .tuc file (and .tua file 
as well if present) and try again.

This is an easy thing to do before halving the source (moving \stop) and 


More information about the ntg-context mailing list