From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58435 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: requesting multipass Date: Tue, 27 Apr 2010 23:09:57 +0200 Message-ID: <20100427210957.GA3705@aides> References: <20100427150440.GA19428@aides> <4BD726B3.4090501@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1203951130==" X-Trace: dough.gmane.org 1272402680 11484 80.91.229.12 (27 Apr 2010 21:11:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2010 21:11:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 27 23:11:19 2010 connect(): No such file or directory 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 1O6s3o-0002gG-LI for gctc-ntg-context-518@m.gmane.org; Tue, 27 Apr 2010 23:11:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0E2DC9BAC; Tue, 27 Apr 2010 23:11: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 gsQjZ-G1G5Ha; Tue, 27 Apr 2010 23:11:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24D7BC9BB2; Tue, 27 Apr 2010 23:11:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BBA8FC9BB2 for ; Tue, 27 Apr 2010 23:11:08 +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 6qA-FxWYUKDF for ; Tue, 27 Apr 2010 23:10:52 +0200 (CEST) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by balder.ntg.nl (Postfix) with ESMTP id BEA1BC9BAC for ; Tue, 27 Apr 2010 23:10:51 +0200 (CEST) Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o3RLAVrH013478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 27 Apr 2010 23:10:31 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o3RLAouS006069 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 27 Apr 2010 23:10:50 +0200 Original-Received: from localhost (mnhm-4d01310e.pool.mediaWays.net [77.1.49.14]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id o3RLAuxa003373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 27 Apr 2010 23:10:57 +0200 In-Reply-To: <4BD726B3.4090501@wxs.nl> X-Operating-System: Linux aides 2.6.34-rc3 User-Agent: Mutt/1.5.20 (2010-04-22) 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:58435 Archived-At: --===============1203951130== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-04-27 <20:02:27>, Hans Hagen wrote: > On 27-4-2010 5:04, Philipp Gesang wrote: > >Hi all, > > > > > >how do I trigger another pass? > > > >Using md5 and io I want to save data to a helper file and reuse it in a > >second pass (like e.g. mtx-context.lua) or update the file if > >appropriate. But I couldn't quite figure out how to request another pass > >from the lua end. >=20 > there's >=20 > jobfiles.run( > "filename-to-be-checked", > "command-to-be-executed-if-changed" > ) Good evening, Hans! Let me clarify my intention a bit: jobfiles.run calls "context" on the argument list, but that is not what I need. My problem is that I generate stuff during the tex run and want to collect it in a table that is saved to a file at the end of the run. This data is hashed at the beginning of the document and if the hash does not match the end-run hash _or_ the file doesn't exist in the first place, then I'd like to run another independent pass. (I guess I could use jobfiles.run to process \jobname at the very end of the document but would have to handle recursion somehow.) Philipp >=20 >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to= the Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvXUqUACgkQ02lYlJYWs9KXRQCeIa5b4/hEf6Ehrmb1f0cR5827 E6EAnRD6y6G+SsLhO/KyTiT3fLYIMwQq =eGn8 -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3-- --===============1203951130== 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 ___________________________________________________________________________________ --===============1203951130==--