From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76009 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: \systemparameter{n} Date: Mon, 07 May 2012 10:00:55 +0200 Message-ID: <4FA78137.9000606@gmx.net> References: <4FA2B9ED.9080303@gmx.net> <4FA6DE80.9050302@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336377669 12730 80.91.229.3 (7 May 2012 08:01:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 May 2012 08:01:09 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Mon May 07 10:01:08 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SRIsT-0005JV-IW for gctc-ntg-context-518@m.gmane.org; Mon, 07 May 2012 10:01:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69800101CF; Mon, 7 May 2012 10:01:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tuycCdjJrbvP; Mon, 7 May 2012 10:01:01 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09822101E1; Mon, 7 May 2012 10:01:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5AF5101E1 for ; Mon, 7 May 2012 10:00:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iejRVrCL-5p8 for ; Mon, 7 May 2012 10:00:59 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 0D8D0101CF for ; Mon, 7 May 2012 10:00:59 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with SMTP id q4780a8v028922 for ; Mon, 7 May 2012 10:00:37 +0200 Original-Received: (qmail invoked by alias); 07 May 2012 08:00:57 -0000 Original-Received: from ip-178-200-48-212.unitymediagroup.de (EHLO [192.168.178.3]) [178.200.48.212] by mail.gmx.net (mp016) with SMTP; 07 May 2012 10:00:57 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX18teH1sLGEtlO5rmjs1u3EmESlj60wRefpAMg1eNf TAFdiyO7Ie5IuU User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: <4FA6DE80.9050302@wxs.nl> X-Enigmail-Version: 1.4.1 X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.22; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WH6U0AI7 - 8e930ed389f6 - 20120507 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:76009 Archived-At: Am 06.05.2012 22:26, schrieb Hans Hagen: > On 3-5-2012 19:01, Peter Rolf wrote: >> Hi, >> >> the system parameter 'n' is not properly set on the third run. >> >> % test.tex >> \starttext >> >> \ifnum\systemparameter{n}=1\relax >> \ctxlua{print("*** 1st run")}\fi >> \ifnum\systemparameter{n}=2\relax >> \ctxlua{print("*** 2nd run")}\fi >> \ifnum\systemparameter{n}=3\relax >> \ctxlua{print("*** 3rd run")}\fi >> >> \stoptext >> % ------------ >> >> A fresh run (three runs) gives >> >> *** 1st run >> *** 2nd run >> *** 2nd run > > from core-sys: > > \ifcase\directsystemparameter\c!n\relax > % % 0 : unknown > \or > \setsystemmode\v!first % 1 : first run > \or > % % 2 : successive run > \or > \setsystemmode\v!first % 3 : first and only run > \or > \setsystemmode\v!last % 4 : (extra) last run > \fi > > the run number is \systemparameter{m} > Thanks Hans. No unwanted batch start in the third run anymore. :-) ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________