RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes
===== Original Message From Taco Hoekwater
===== Idris Samawi Hamid wrote: Hi Taco,
Ok your hack works for small files but in my larger work this is causing TeX's capacity to overload (indeed, I don't think I've run into this particular overload message before; does the `255' signify some ceiling here?):
The definition is not recursive, but it should not be executed more than once because it saves the definition of \inmargin. Perhaps you have the \let line inside another macro or inside a buffer that is called more than once something similar.
I placed your definition in a \start-\stopenvironment file. The \inmargins are in \product files each of which calls the environment file in its preamble. If I compile just one product (say the second \product from the project), there appears to be no problem. But if I compile the entire project, TeX chokes on that same product. Do you think this may be the problem? Best Idris ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
Idris Samawi Hamid wrote:
I placed your definition in a \start-\stopenvironment file. The \inmargins are in \product files each of which calls the environment file in its preamble. If I compile just one product (say the second \product from the project), there appears to be no problem. But if I compile the entire project, TeX chokes on that same product.
Do you think this may be the problem?
Yes, because the environment file is read twice, you need a guard against redefining the redefinition. Placing a guard around it, like this, should work: \expandafter\ifx\csname normalinmargin \endcsname \relax \else \let\normalinmargin\inmargin \def\inmargin#1{{\parindent0pt \normalinmargin{#1}}} \fi (yes, that is an ugly hack, but it is one I can write withour actually having to test it before sending :)) Greetings, Taco
participants (2)
-
Idris Samawi Hamid
-
Taco Hoekwater