From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46278 Path: news.gmane.org!not-for-mail From: "Bart C. Wise" Newsgroups: gmane.comp.tex.context Subject: Re: ! Extra \else error Date: Thu, 11 Dec 2008 08:17:19 -0700 Message-ID: <200812110817.19910.bntgcontext@wiseguysweb.com> References: <200812110650.53610.bntgcontext@wiseguysweb.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229010323 22316 80.91.229.12 (11 Dec 2008 15:45:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2008 15:45:23 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 11 16:46:26 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LAnjp-0008WQ-Aw for gctc-ntg-context-518@m.gmane.org; Thu, 11 Dec 2008 16:46:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 29C201FC27; Thu, 11 Dec 2008 16:44:52 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21629-04-8; Thu, 11 Dec 2008 16:43:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 554781FBF9; Thu, 11 Dec 2008 16:18:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 945DA1FBDB for ; Thu, 11 Dec 2008 16:18:02 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12839-02-16 for ; Thu, 11 Dec 2008 16:17:28 +0100 (CET) Original-Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) by ronja.ntg.nl (Postfix) with ESMTP id 1ACCB1FC16 for ; Thu, 11 Dec 2008 16:17:28 +0100 (CET) Original-Received: from mx04.mta.xmission.com ([166.70.13.214]) by out02.mta.xmission.com with esmtp (Exim 4.62) (envelope-from ) id 1LAnIy-0001g4-PE for ntg-context@ntg.nl; Thu, 11 Dec 2008 08:18:20 -0700 Original-Received: from bwise1.provo.novell.com ([137.65.171.141] helo=bwise1.localnet) by mx04.mta.xmission.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1LAnNv-0006zf-Cq for ntg-context@ntg.nl; Thu, 11 Dec 2008 08:23:27 -0700 User-Agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; x86_64; ; ) In-Reply-To: Content-Disposition: inline X-XM-SPF: eid=; ; ; mid=; ; ; hst=mx04.mta.xmission.com; ; ; ip=137.65.171.141; ; ; frm=bntgcontext@wiseguysweb.com; ; ; spf=none X-SA-Exim-Connect-IP: 137.65.171.141 X-SA-Exim-Rcpt-To: ntg-context@ntg.nl X-SA-Exim-Mail-From: bntgcontext@wiseguysweb.com X-Spam-DCC: XMission; sa03 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;ntg-context@ntg.nl X-Spam-Relay-Country: X-SA-Exim-Version: 4.2.1 (built Thu, 07 Dec 2006 04:40:56 +0000) X-SA-Exim-Scanned: Yes (on mx04.mta.xmission.com) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:46278 Archived-At: On Thursday 11 December 2008 08:07:01 am 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 \tempcnta by 1 > > \ifnum\tempcnta>#1\else \repeat\fi > > \message{exit} > > } > > > > \starttext > > \startcnt=1800 > > \myloop{2008} > > \stoptext > > Do you know of \dostepwiserecurse{from}{to}{step}{body}. For example, > > \starttext > \dostepwiserecurse{1800}{2008}{1}{We are at \recurselevel \endgraf} > \stoptext > Aditya, Hadn't thought of that one either. I'm taking a package from a LaTeX source and working on converting it. I'm trying to leave the original intact as much as possible. Unfortunately, in trying to leave it intact, I seem to be approaching the problem/solution rather myopically. Thanks for the hint. Bart ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________