Re: [NTG-context] A pdf-file per XML-node
On 10-11-2010 10:58, Daniel Grycman wrote: Hi list, | |xxx |xxx | | |xxx |xxx | | |xxx |xxx | | |xxx |xxx | For every a separate pdf is needed. It would be also nice to have the-entry as a file-name. Any ideas? you can make a worker.lua file that does it, something (untested) ... local x = xml.load("workers.xml") local i = 0 for e in xml.collected(x,"worker") do i = 1 + 1 logs.simple("processing worker %s",i) os.execute("context worker --worker=" .. i) end and run that with mtxrun --script worker.lua where the worker.tex file looks like ... usual xml setups using workers.xml ... \xmlfilter {main} {worker[position()==\getdocumentargument{worker}]} {xml:worker} ... special worker setup \startxmlsetup xml:worker ... \stopxmlsetup etc etc Hans - 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! 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 ___
Re: [NTG-context] A pdf-file per XML-node
On 10-11-2010 11:04, Martin Schröder wrote: 2010/11/10 Daniel Grycman: For every a separate pdf is needed. It would be also nice to have the-entry as a file-name. Any ideas? We would have to extend luatex to allow the generation of multiple pdf files from one source document. Not trivial, but quite interesting. :-) quite tricky indeed as macro packages would need restart events as well (plus probably some macro related mem cleanup) Hans - 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! 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 ___
Re: [NTG-context] A pdf-file per XML-node
2010/11/10 Daniel Grycman : > For every a separate pdf is needed. It would be also nice to have > the -entry as a file-name. Any ideas? We would have to extend luatex to allow the generation of multiple pdf files from one source document. Not trivial, but quite interesting. :-) http://tracker.luatex.org/view.php?id=510 Best Martin ___ 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 ___
[NTG-context] A pdf-file per XML-node
Hi list, | | xxx | xxx | | | xxx | xxx | | | xxx | xxx | | | xxx | xxx | For every a separate pdf is needed. It would be also nice to have the -entry as a file-name. Any ideas? Daniel ___ 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 ___