On Thu, Jul 3, 2008 at 12:30 PM, Wolfgang Schuster
On Thu, Jul 3, 2008 at 12:23 PM, Oliver Buerschaper
wrote: Dear Wolfgang,
I'm struggling with the backaddress option … I tried the following code
--- \usemodule[letter]
\starttext
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress={Arthur Thor, Hidden Street 2, 57895 Mysterytown}]
\setupletter [toname={Mike Willson}, toaddress={Lindenstreet 12\\78569 TeX City}]
\startletter [subject={Step by step guide to writing a letter}, opening={Dear Reader,}, closing={Greetings from the Author}]
\input knuth
\stopletter
\stoptext ---
but couldn't see the backaddress line in the output. What do I have to change?
There is nothing wrong with your file, I just forgot to add it.
Try the following patch, I will release a new version ASAP. Please give me a feedback if this did work.
\unprotect
\startsetups[letter:backaddress] \def\\{\lettervalue{\c!backaddress\c!separator}} \doifelselettervalue\v!backaddress {\lettervalue\v!backaddress} {\lettervalue\c!fromname \doiflettervalue\c!fromaddress\\ \lettervalue\c!fromaddress} \stopsetups
\protect
And add \setupletterstyle[backaddress=yes] to your file because the backaddress is disabled by default. Regards, Wolfgang