11 Dec
2008
11 Dec
'08
4:10 p.m.
Am Thu, 11 Dec 2008 07:21:56 -0700 schrieb Bart C. Wise:
If I change the loop to be the following, I still get the same error:
\def\myloop#1{% \tempcnta=\the\startcnt% \loop \advance \tempcnta by 1 \if\tempcnta=#1\else \repeat\fi }
No, the \repeat take the place of the \fi. Also you should always end numbers with a space or a \relax to avoid trouble due to tex trying to expand the following commands in search for more numbers. \newcount\startcnt \newcount\tempcnta \def\myloop#1{% \tempcnta=\the\startcnt\relax% \loop \the\tempcnta, \advance \tempcnta by 1 \ifnum\tempcnta<#1 \repeat } \myloop{10} -- Ulrike Fischer