From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75961 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: \systemparameter{n} Date: Thu, 03 May 2012 19:01:33 +0200 Message-ID: <4FA2B9ED.9080303@gmx.net> 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 1336064509 5478 80.91.229.3 (3 May 2012 17:01:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 May 2012 17:01:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 03 19:01:48 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 1SPzPU-00015R-Tj for gctc-ntg-context-518@m.gmane.org; Thu, 03 May 2012 19:01:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0561A101E3; Thu, 3 May 2012 19:01:44 +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 pfi4SklaO9A8; Thu, 3 May 2012 19:01:42 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59133101E0; Thu, 3 May 2012 19:01:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5319E101E0 for ; Thu, 3 May 2012 19:01:40 +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 1kp0L7tGtCGN for ; Thu, 3 May 2012 19:01:39 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 2753C101CF for ; Thu, 3 May 2012 19:01:39 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with SMTP id q43H1c3b025094 for ; Thu, 3 May 2012 19:01:38 +0200 Original-Received: (qmail invoked by alias); 03 May 2012 17:01:38 -0000 Original-Received: from ip-178-200-48-212.unitymediagroup.de (EHLO [192.168.178.3]) [178.200.48.212] by mail.gmx.net (mp032) with SMTP; 03 May 2012 19:01:38 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX1/JZNIB+VfJQKPY7HXGWJFXxr2BsUkwdE/tXK/BWd 0PcK1qnOxGnTYq User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 X-Enigmail-Version: 1.4.1 X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.9996 (Score 4.7, 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: 0NH5t1CVb - 7bf92edc2fae - 20120503 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:75961 Archived-At: 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 Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________