From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60266 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 22:38:03 +0200 Message-ID: References: <4C448A58.60402@googlemail.com> <4C4491E4.60900@googlemail.com> <4C44A5B5.2020801@googlemail.com> <4C44B0FA.6090701@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0451250708==" X-Trace: dough.gmane.org 1279571904 8854 80.91.229.12 (19 Jul 2010 20:38:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Jul 2010 20:38:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 19 22:38:21 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 1Oax6T-0005oh-9H for gctc-ntg-context-518@m.gmane.org; Mon, 19 Jul 2010 22:38:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B9D7C9C5C; Mon, 19 Jul 2010 22:38:20 +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 AZQR7pQDi4cq; Mon, 19 Jul 2010 22:38:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ADA9DC9C38; Mon, 19 Jul 2010 22:38:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EE8D1C9C38 for ; Mon, 19 Jul 2010 22:38:15 +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 ach6vtaThS4o for ; Mon, 19 Jul 2010 22:38:04 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by balder.ntg.nl (Postfix) with ESMTP id 7C064C9B8F for ; Mon, 19 Jul 2010 22:38:04 +0200 (CEST) Original-Received: by wyj26 with SMTP id 26so5433034wyj.14 for ; Mon, 19 Jul 2010 13:38:03 -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=OEEa6TmcqRmuxDJjgsLOJVdZ2/7eNNk0P8kzX04zamo=; b=BFcH89+y8PAJJzA7KIrk919pxEXFVLrRHaklKupp4WFi+4RN2s7nI45/ei0PN6UwU8 3GST7uvsl70oIRQE+3luX700X0Fs+rxHz5YDKOvlWh7SMJqrsTMgDh64w2cGl/Ho1rJN MlrBw1injXAxJN7ZYFxJ8qkzyJtFq7fCEJmRY= 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=eqWAAg/ey7QlYGGwlU8b2bEV21r8Jraz8PdpNPoqtdX5Aw4uUFXlstZ57gziaK8oR9 xVlPe5tAvyiefEPFOW2ap9g/6sboeil9H4KsRbIztHfbeFsiRTcXPvCWrNBGINFy4Ac6 wDIpphQxGXtER+vclRu6slji2wZ4NHb7bJUZg= Original-Received: by 10.216.81.213 with SMTP id m63mr4394737wee.25.1279571883566; Mon, 19 Jul 2010 13:38:03 -0700 (PDT) Original-Received: by 10.216.131.226 with HTTP; Mon, 19 Jul 2010 13:38:03 -0700 (PDT) In-Reply-To: <4C44B0FA.6090701@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:60266 Archived-At: --===============0451250708== Content-Type: multipart/alternative; boundary=0016e6de043295a5e8048bc38b0e --0016e6de043295a5e8048bc38b0e Content-Type: text/plain; charset=UTF-8 On Mon, Jul 19, 2010 at 10:09 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > > why don't you use then a ctx file which process first the document and then > MyAnalyze... > > yes I know. The point is: while the *first mode is clear and can be managed inside context, the concept of last run is problematic. If one wants to be sure that "this tex code will be parsed only at the last run" then the tex code must be enclose inside a \startmode[LAST]\stopmode and processed with #>context mydoc.tex && context --mode=LAST mydoc.tex (let's forget of errors for the moment) But if the tex code modify mydoc then the first context mydoc is superfluous. So in the end the tex code must do nothing of relevant, and hence it can be replaced by an external program MyAnalyze which in general must have as input the input source mydoc.tex, the output file mydoc.pdf and the log mydoc.log and processed with #>context --batch mydocument.tex ; MyAnalyze mydoc.tex mydoc.pdf mydoc.log to take care of errors. -- luigi --0016e6de043295a5e8048bc38b0e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, Jul 19, 2010 at 10:09 PM, Wolfga= ng Schuster <schuster.wolfgang@googlemail.com> wrote:
=20 =20 =20

why don't you use then a ctx file which process first the document and then MyAnalyze...

yes I know.
<= div>The point is: while the *first mode =C2=A0is clear and can be managed i= nside context,
the concept of last run is problematic.
If one wants to be sure that "this tex code will be parsed only at the= last run"
then the tex code must be enclose inside a \start= mode[LAST]\stopmode=C2=A0
and processed with=C2=A0
#>= ;context mydoc.tex && context --mode=3DLAST mydoc.tex
(let's forget of errors for the moment)
But =C2=A0 if th= e tex code modify =C2=A0mydoc =C2=A0then the first context mydoc is=C2=A0su= perfluous.
So in the end the tex code must do nothing of relevant= , and hence =C2=A0it can be replaced by an external program MyAnalyze
which in general must have as input the input source mydoc.tex, the ou= tput file mydoc.pdf and the log mydoc.log
and processed with
#>context --batch mydocument.tex ; MyAnalyze mydoc.tex mydoc.pdf m= ydoc.log
to take care of errors.

--
luigi

--0016e6de043295a5e8048bc38b0e-- --===============0451250708== 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 ___________________________________________________________________________________ --===============0451250708==--