Re: [NTG-context] Letter backaddress

Top Page
Author: Wolfgang Schuster
Date:  
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Letter backaddress
On Thu, Jul 3, 2008 at 12:23 PM, Oliver Buerschaper
<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

Regards,
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!


maillist : ntg-context@??? / 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
___________________________________________________________________________________