Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Zhichu Chen
Hi Bart On Thu, Dec 11, 2008 at 9:50 PM, Bart C. Wise [EMAIL PROTECTED] wrote: When I run the code below (via minimals), I get the following error, why? enter loop ! Extra \else. \@@plniterate ...\expandafter \@@plniterate \else \fi \myloop ...by 1 \ifnum \tempcnta #1\else \repeat I

[NTG-context] ! Extra \else error

2008-12-11 Thread Bart C. Wise
When I run the code below (via minimals), I get the following error, why? enter loop ! Extra \else. \@@plniterate ...\expandafter \@@plniterate \else \fi \myloop ...by 1 \ifnum \tempcnta #1\else \repeat

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Hans Hagen
Zhichu Chen wrote: Hi Bart On Thu, Dec 11, 2008 at 9:50 PM, Bart C. Wise [EMAIL PROTECTED] wrote: When I run the code below (via minimals), I get the following error, why? enter loop ! Extra \else. \@@plniterate ...\expandafter \@@plniterate \else \fi \myloop ...by 1 \ifnum \tempcnta

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Bart C. Wise
On Thursday 11 December 2008 07:17:51 am Hans Hagen wrote: Zhichu Chen wrote: Hi Bart On Thu, Dec 11, 2008 at 9:50 PM, Bart C. Wise [EMAIL PROTECTED] wrote: When I run the code below (via minimals), I get the following error, why? enter loop ! Extra \else. \@@plniterate

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Hans Hagen
Bart C. Wise wrote: On Thursday 11 December 2008 07:17:51 am Hans Hagen wrote: Zhichu Chen wrote: Hi Bart On Thu, Dec 11, 2008 at 9:50 PM, Bart C. Wise [EMAIL PROTECTED] wrote: When I run the code below (via minimals), I get the following error, why? enter loop ! Extra \else.

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Bart C. Wise
On Thursday 11 December 2008 07:29:15 am Zhichu Chen wrote: Hi Bart, On Thu, Dec 11, 2008 at 10:21 PM, Bart C. Wise [EMAIL PROTECTED] wrote: If I change the loop to be the following, I still get the same error: \def\myloop#1{% \tempcnta=\the\startcnt% \loop \advance \tempcnta

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Aditya Mahajan
On Thu, 11 Dec 2008, Aditya Mahajan wrote: On Thu, 11 Dec 2008, Bart C. Wise wrote: When I run the code below (via minimals), I get the following error, why? \newcount\startcnt \newcount\tempcnta \def\myloop#1{% \message{enter} \tempcnta=\the\startcnt% \loop \message{loop} \advance

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Bart C. Wise
On Thursday 11 December 2008 08:28:40 am Zhichu Chen wrote: Hi Bart, On Thu, Dec 11, 2008 at 11:05 PM, Bart C. Wise [EMAIL PROTECTED] wrote: Chen, Thanks. That makes sense now. However, when I take your code and run it, it only goes through 1 iteration of the loop and exits. I'm

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Aditya Mahajan
On Thu, 11 Dec 2008, Bart C. Wise wrote: When I run the code below (via minimals), I get the following error, why? \newcount\startcnt \newcount\tempcnta \def\myloop#1{% \message{enter} \tempcnta=\the\startcnt% \loop \message{loop} \advance \tempcnta by 1 \ifnum\tempcnta#1\else

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Ulrike Fischer
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

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Bart Wise
On Thursday 11 December 2008 08:10:38 am Ulrike Fischer wrote: 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

Re: [NTG-context] ! Extra \else error

2008-12-11 Thread Zhichu Chen
Hi Bart, On Thu, Dec 11, 2008 at 11:05 PM, Bart C. Wise [EMAIL PROTECTED] wrote: Chen, Thanks. That makes sense now. However, when I take your code and run it, it only goes through 1 iteration of the loop and exits. I'm puzzled. Bart Really? 'cause when I run the following code