[NTG-context] Mark IV and pre-processing input file processing.
johannes_graumann at web.de
Tue Nov 6 16:29:33 CET 2007
Wolfgang Schuster wrote:
> 2007/11/6, Johannes Graumann <johannes_graumann at web.de>:
>> 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
>> 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
>> making sense,
> Take a look into Hans Mark manual.
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
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?
Thanks for any insights,
More information about the ntg-context