From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37249 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Mark IV and pre-processing input file processing. Date: Tue, 06 Nov 2007 17:35:32 +0100 Message-ID: <473097D4.5060902@wxs.nl> References: <115224fb0711060608i4acd916ciad06b46a9424a5ba@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1194367067 3385 80.91.229.12 (6 Nov 2007 16:37:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2007 16:37:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 06 17:37:49 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IpRQt-0008Dk-8I for gctc-ntg-context-518@m.gmane.org; Tue, 06 Nov 2007 17:37:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9293A1FCAA; Tue, 6 Nov 2007 17:37:31 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21819-07-19; Tue, 6 Nov 2007 17:37:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A2A721FCA1; Tue, 6 Nov 2007 17:36:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 563401FC67 for ; Tue, 6 Nov 2007 17:36:25 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21825-01-11 for ; Tue, 6 Nov 2007 17:36:15 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id DF0E71FB30 for ; Tue, 6 Nov 2007 17:35:46 +0100 (CET) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 428 for ; Tue, 06 Nov 2007 17:35:46 +0100 User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37249 Archived-At: Johannes Graumann wrote: > Wolfgang Schuster wrote: > >> 2007/11/6, Johannes Graumann : >>> Hello, >>> >>> I started playing around with ConTeXt/LuaTeX and have a question here >>> wich is related to a pet project of mine: is it possible to tell Mark IV >>> something like this >>>> texmfstart texexec --lua --environments=myfile.tex someotherfile.zip >>> where 'myfile.tex' should contain a lua routine which would >>> unzip 'someotherfile.zip' to /tmp and call LuaConTeXt on a file actually >>> contained in the archive (among others)? >>> >>> While I'm sure this can be done in Lua, I wonder whether somebody can >>> point >>> me at how to access the names of files to be processed >>> ('someotherfile.zip') from the running process ... >>> >>> Not sure whether I can make myself understood here ... please ask if I'm >>> not >>> making sense, >>> >>> Joh >> >> Take a look into Hans Mark manual. >> >> http://pragma-ade.nl/general/manuals/mk.pdf > > Thanks for that! I found the zipping reference and got it to work. > Returning now to the example above ("texmfstart > texexec --lua --environments=myfile.tex someotherfile.zip"), what I would > like to do is using lua in "myfile.tex" to extract the filename to be texed > (someotherfile.zip) and rewrite it on the fly to a zip-archive content > along the lines of > \input zip::someotherfile.zip::somezipcontent.tex > > Is that possible? "texmfstart texexec --verbose" produces something like > TeXExec | option 'filename' is set to 'someotherfile.tex', so how to access > this during processing using lua? texmfstart texexec --lua myfile.tex --arg="name=someotherfile.zip" mak emyfile.tex your main tex file (use --global if needed) and then use \env{name} hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________