From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60251 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: mode *last in mkiv Date: Mon, 19 Jul 2010 19:37:30 +0200 Message-ID: References: <4C448A58.60402@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2136409776==" X-Trace: dough.gmane.org 1279561060 2360 80.91.229.12 (19 Jul 2010 17:37:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Jul 2010 17:37:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 19 19:37:39 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OauHb-0005av-0i for gctc-ntg-context-518@m.gmane.org; Mon, 19 Jul 2010 19:37:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2A456C9B7E; Mon, 19 Jul 2010 19:37:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hKtKC-sKchnN; Mon, 19 Jul 2010 19:37:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0DC71C9B88; Mon, 19 Jul 2010 19:37:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84426C9B88 for ; Mon, 19 Jul 2010 19:37:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jPtwbulD23mN for ; Mon, 19 Jul 2010 19:37:31 +0200 (CEST) Original-Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by balder.ntg.nl (Postfix) with ESMTP id 1EE77C9B7E for ; Mon, 19 Jul 2010 19:37:30 +0200 (CEST) Original-Received: by wwf26 with SMTP id 26so377299wwf.2 for ; Mon, 19 Jul 2010 10:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=nW+YmyQwXrzc1BeoApA9Dk+T13G2Wgp4gh6xI5oft+o=; b=C9bDJi5uuA2gVzI6BOISHJ4XyrLQXQfs6yrLGUKPWIynr/HL/GX3GPJp7aqZKDaG0G 0YQigilzrpyiDd9HgFZJwE1dQFsMvQD+0Ej/jzhz2Vw6poxAC2162HtFeYLRWoiLjHLa bOBjlQKcKYJVCTMe98u7fG4aYTnKXgWImh+ws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=JakzfFIwfohR2soclI0/rmPGKHbZkwwa7MXE8sh4Kp3sCEr7h1uJ0ni+N+cLkzwZlW p6BTKpanOv7voJkbAc6wv9a2SFyV0YRxSBhmTCCZKD3daYGe0mh/xLpYKcNn/5FzRpnu fVWx1DHduPVjzUPl9/9Xtqd5bHj6mH6+J+X5U= Original-Received: by 10.216.237.100 with SMTP id x78mr4195065weq.114.1279561050754; Mon, 19 Jul 2010 10:37:30 -0700 (PDT) Original-Received: by 10.216.131.226 with HTTP; Mon, 19 Jul 2010 10:37:30 -0700 (PDT) In-Reply-To: <4C448A58.60402@googlemail.com> 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:60251 Archived-At: --===============2136409776== Content-Type: multipart/alternative; boundary=00151743fa10e60eda048bc10566 --00151743fa10e60eda048bc10566 Content-Type: text/plain; charset=UTF-8 On Mon, Jul 19, 2010 at 7:24 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > Am 19.07.10 13:30, schrieb luigi scarso: > > The '*last' mode is enabled when context needs the maximal number of runs >> for your document. > > > \definetwopasslist{last} > \starttext > \gettwopassdata{last} > \iftwopassdatafound > \savetwopassdata{last}{1}{\number\numexpr\twopassdata+1\relax} > \else > \savetwopassdata{last}{1}{1} > \fi > \doifnotmode{*last}{not }the last run > \stoptext > > Wolfgang > > Hm. >From core-sys.mkiv: \appendtoks \ifcase\@@svn % % 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 \to \everysetupsystem I suppose that last=4 runs But the max number of runs is 8 , if I've understood mtx-context.lua So \starttext %% %% content here %% \startmode[LAST]\myNullMacro\stopmode% \stoptext #> context mydocument.tex && context --mode=LAST mydocument.tex ensure that the code inside \startmode[LAST]...\stopmode is really seen the "last " pass -- luigi --00151743fa10e60eda048bc10566 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, Jul 19, 2010 at 7:24 PM, Wolfgan= g Schuster <schuster.wolfgang@googlemail.com> wrote:
=C2=A0Am 19.07.10 13:30, schrieb luigi scarso:

The '*last' mode is enabled when con= text needs the maximal number of runs for your document.

\definetwopasslist{last}
\starttext
\gettwopassdata{last}
\iftwopassdatafound
=C2=A0\savetwopassdata{last}{1}{\number\numexpr\twopassdata+1\relax}
\else
=C2=A0\savetwopassdata{last}{1}{1}
\fi
\doifnotmode{*last}{not }the last run
\stoptext

Wolfgang


Hm.
From=C2=A0core-sy= s.mkiv:

\appendtoks
=C2=A0=C2=A0 =C2=A0\ifcase= \@@svn
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0% =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0% 0 : unknown=
=C2=A0=C2=A0 =C2=A0\or
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0\setsystemmode\v!first =C2=A0 % 1 : first = run
=C2=A0=C2=A0 =C2=A0\or
=C2=A0=C2=A0 =C2=A0 =C2=A0 = =C2=A0% =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0% 2 : successive run
=C2=A0=C2=A0 =C2=A0\or
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0\setsystemmode\v!first =C2=A0 % 3 : = first and only run
=C2=A0=C2=A0 =C2=A0\or
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0\set= systemmode\v!last =C2=A0 =C2=A0% 4 : (extra) last run
=C2=A0=C2= =A0 =C2=A0\fi
\to \everysetupsystem

I su= ppose that last=3D4 runs
But the max number of runs is 8 , if I&#= 39;ve understood =C2=A0mtx-context.lua=C2=A0
So=C2=A0
\starttext
%%
%% content h= ere
%%
\startmode[LAST]\myNullMacro\stopmode%
\stoptext

#> context mydocument.tex &= ;& context --mode=3DLAST mydocument.tex

ensure that the code inside \startmode[LAST]...\stopmod= e =C2=A0is really seen the "last " pass

-- luigi

--00151743fa10e60eda048bc10566-- --===============2136409776== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============2136409776==--