Hi list, | <worker> | <surname>xxx</surname> | <name>xxx</name> | </worker> | <worker> | <surname>xxx</surname> | <name>xxx</name> | </worker> | <worker> | <surname>xxx</surname> | <name>xxx</name> | </worker> | <worker> | <surname>xxx</surname> | <name>xxx</name> | </worker> For every <worker> a separate pdf is needed. It would be also nice to have the <name>-entry as a file-name. Any ideas? Daniel
2010/11/10 Daniel Grycman
For every <worker> a separate pdf is needed. It would be also nice to have the <name>-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
HI, Is the the info at: http://dl.contextgarden.net/modules/t-letter/doc/context/third/letter/corres... The latest for this module? I've tried the fromname and signature attribute of \setupletter and i get errors. Just wanted to check. Thanks, Russ
Am 11.11.2010 um 05:20 schrieb Russell Urquhart:
HI,
Is the the info at: http://dl.contextgarden.net/modules/t-letter/doc/context/third/letter/corres...
The latest for this module? I've tried the fromname and signature attribute of \setupletter and i get errors.
Just wanted to check.
Example! Wolfgang
Sorry, please see attached file. BTW, here is the last part of the error that is generated. The toaddress works, however. correspondence : loading letter extension addrentry.nle (/Users/russ/context/tex/texmf-context/tex/context/third/letter/extension/addrentry.nle)) correspondence : letter style user.nls not found ! Missing { inserted. <argument> ...ox 259000\\Dallas, Texas 75225-9000} \setsomevalue #1#2->\@EA \def \csname #1 #2\endcsname \p!doassign ...EAEA \setsomevalue \fi \fi {#1}{#2} {#3} \xprocesscommaitem ...@relax@ #1==\empty \@relax@ \@EAEAEA \xprocesscommaite... <argument> fromname={Russ Urquhart}, f romaddress={4645 Portrait Ln\\Plano TX... \xdogetparameters #1]->\xprocesscommaitem #1 ,],\@relax@ ... l.7 ...address={4645 Portrait Ln\\Plano TX 75024}] ? On Thu, Nov 11, 2010 at 06:23:45AM +0100, Wolfgang Schuster wrote:
Am 11.11.2010 um 05:20 schrieb Russell Urquhart:
HI,
Is the the info at: http://dl.contextgarden.net/modules/t-letter/doc/context/third/letter/corres...
The latest for this module? I've tried the fromname and signature attribute of \setupletter and i get errors.
Just wanted to check.
Example!
Wolfgang
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Am 11.11.2010 um 14:16 schrieb Russell Urquhart:
Sorry, please see attached file.
BTW, here is the last part of the error that is generated. The toaddress works, however.
You need more \setupletter commands in your setup, what you currently write is \setupletter [..,..=..,..] [..,..=..,..] [..,..=..,..] but you need \setupletter [..,..=..,..] \setupletter [..,..=..,..] \setupletter [..,..=..,..] This means your values need to be set as \setupletter [toname={President George W. Bush}, toaddress={Office of George W. Bush\\Post Office Box 259000\\Dallas, Texas 75225-9000}] \setupletter [fromname={Russ Urquhart}, fromaddress={4645 Portrait Ln\\Plano TX 75024}] \setupletter [signature={Russ Urquhart}] or \setupletter [toname={President George W. Bush}, toaddress={Office of George W. Bush\\Post Office Box 259000\\Dallas, Texas 75225-9000}, fromname={Russ Urquhart}, fromaddress={4645 Portrait Ln\\Plano TX 75024}, signature={Russ Urquhart}] Wolfgang
Ah, that's it! Thanks, that did the trick. (I guess i misread the docs on this. I interpreted the command a different way!) Thanks, Russ
On 10-11-2010 11:04, Martin Schröder wrote:
2010/11/10 Daniel Grycman
: For every<worker> a separate pdf is needed. It would be also nice to have the<name>-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 -----------------------------------------------------------------
On 10-11-2010 10:58, Daniel Grycman wrote:
Hi list,
|<worker> |<surname>xxx</surname> |<name>xxx</name> |</worker> |<worker> |<surname>xxx</surname> |<name>xxx</name> |</worker> |<worker> |<surname>xxx</surname> |<name>xxx</name> |</worker> |<worker> |<surname>xxx</surname> |<name>xxx</name> |</worker> For every<worker> a separate pdf is needed. It would be also nice to have the<name>-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 -----------------------------------------------------------------
participants (5)
-
Daniel Grycman
-
Hans Hagen
-
Martin Schröder
-
Russell Urquhart
-
Wolfgang Schuster