stack size
Hans Hagen
pragma@wxs.nl
Wed, 24 Nov 1999 13:43:35 +0100
At 11:54 AM 11/24/99 +0100, Heiko Oberdiek wrote:
>At 11:14 24.11.1999 +0100, Peer Rappolt wrote:
>>How to increase the stack size of TeX ?
>
>texmf.cnf: stack_size
>After changing you should rebuild the formats.
>
>Before changing you should check, whether the cause is not a wrong
>written recursion:
>2. Often it is not possible to use \expandafter. For example, it is
> not possible to jump over an unknown number of tokens, introduced
> by #1, #2, ...
> In this cases the ReturnAfter(Else)Fi-Trick can be used:
Or more straightforward,
\if...
\let\next\relax
\else
\let\next\again
\fi
\next
Anyhow, as soon as a more advanced user interface is used one should
increase the stacksize and parametersize and a few more sizes anyway. In
general it does not harm tex to set them all rather high (take the hugetex
settings as an example).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------