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? Best wishes, Oliver
On Thu, Jul 3, 2008 at 12:23 PM, Oliver Buerschaper
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
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
\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.
Thanks very much, this works! Still a minor suggestion regarding the interface: I guess at the moment it's slightly inconsistent because on the one hand one has \setupletterstyle [backaddress=yes] and on the other hand \setupletter [list={name,phone,fax,date}] Note that both commands actually implement boolean switches, namely, whether backaddress, name etc. should be displayed or not. For consistency reasons these switches should perhaps be interfaced in the same way, e.g. by "name=yes" etc. Another possibility would be removing the "backaddress=yes" switch completely. Then if backaddress data is supplied it's printed along with the line below and if not, well, then leave out the separator line. What do you think? Oliver
On Thu, Jul 3, 2008 at 3:04 PM, Oliver Buerschaper
\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.
Thanks very much, this works!
Still a minor suggestion regarding the interface: I guess at the moment it's slightly inconsistent because on the one hand one has
\setupletterstyle [backaddress=yes]
and on the other hand
\setupletter [list={name,phone,fax,date}]
Note that both commands actually implement boolean switches, namely, whether backaddress, name etc. should be displayed or not. For consistency reasons these switches should perhaps be interfaced in the same way, e.g. by "name=yes" etc.
I could support name=yes and alike but I can't drop the \setupletter[list=...] because you need it to define your own reference line with personalized elements, e.g. your working in a company a put a sign for the letter there plus the number of the office etc. KOMA-Script handles this with the \setkomavar commands but you have to put the settings for values in the right order in the source.
Another possibility would be removing the "backaddress=yes" switch completely. Then if backaddress data is supplied it's printed along with the line below and if not, well, then leave out the separator line.
What do you think?
Have you tried what will happen with a enabled backaddress and no value for backaddress, fromname and fromaddress are shown as backaddress but I don't rely on this feature and change it to waht you suggested. Regards Wolfgang
I could support name=yes and alike but I can't drop the \setupletter[list=...] because you need it to define your own reference line with personalized elements, e.g. your working in a company a put a sign for the letter there plus the number of the office etc.
I'm sorry, didn't think of that. It makes sense, of course.
Another possibility would be removing the "backaddress=yes" switch completely. Then if backaddress data is supplied it's printed along with the line below and if not, well, then leave out the separator line.
What do you think?
Have you tried what will happen with a enabled backaddress and no value for backaddress, fromname and fromaddress are shown as backaddress but I don't rely on this feature and change it to waht you suggested.
I've just tried this quickly and this seems even better … then what about removing the option "backaddress=yes" from "\setupletterstyle" and provide a key "auto" for "backaddress" in "\setupletter"? Thus: 1. No backaddress line \setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}] 2. backaddress line generated from sender information \setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress=auto] 3. Custom backaddress \setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress={Thor Inc., Mystery Street 5, 59875 Hidden Town}] Oliver
Have you tried what will happen with a enabled backaddress and no value for backaddress, fromname and fromaddress are shown as backaddress but I don't rely on this feature and change it to waht you suggested.
I've just tried this quickly and this seems even better … then what about removing the option "backaddress=yes" from "\setupletterstyle" and provide a key "auto" for "backaddress" in "\setupletter"? Thus:
1. No backaddress line
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}]
2. backaddress line generated from sender information
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress=auto]
3. Custom backaddress
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress={Thor Inc., Mystery Street 5, 59875 Hidden Town}]
In this case there would be no need for "name=yes" etc. Oliver
On Thu, Jul 3, 2008 at 5:19 PM, Oliver Buerschaper
Have you tried what will happen with a enabled backaddress and no value for backaddress, fromname and fromaddress are shown as backaddress but I don't rely on this feature and change it to waht you suggested.
I've just tried this quickly and this seems even better … then what about removing the option "backaddress=yes" from "\setupletterstyle" and provide a key "auto" for "backaddress" in "\setupletter"? Thus:
1. No backaddress line
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}]
2. backaddress line generated from sender information
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress=auto]
3. Custom backaddress
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress={Thor Inc., Mystery Street 5, 59875 Hidden Town}]
In this case there would be no need for "name=yes" etc.
\usemodule[letter] \starttext \setupletter [list={name,date}, name={Oliver Buerschaper}] \startletter \input knuth \stopletter \stoptext Regards, Wolfgang
On Thu, Jul 3, 2008 at 5:12 PM, Oliver Buerschaper
I could support name=yes and alike but I can't drop the \setupletter[list=...] because you need it to define your own reference line with personalized elements, e.g. your working in a company a put a sign for the letter there plus the number of the office etc.
I'm sorry, didn't think of that. It makes sense, of course.
Another possibility would be removing the "backaddress=yes" switch completely. Then if backaddress data is supplied it's printed along with the line below and if not, well, then leave out the separator line.
What do you think?
Have you tried what will happen with a enabled backaddress and no value for backaddress, fromname and fromaddress are shown as backaddress but I don't rely on this feature and change it to waht you suggested.
I've just tried this quickly and this seems even better … then what about removing the option "backaddress=yes" from "\setupletterstyle" and provide a key "auto" for "backaddress" in "\setupletter"? Thus:
I don't remove backaddress from \setupletterstyle because each layer has a boolean switch and I don't want a backaddress on my letters.
1. No backaddress line
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}]
2. backaddress line generated from sender information
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress=auto]
3. Custom backaddress
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress={Thor Inc., Mystery Street 5, 59875 Hidden Town}]
I uploaded a new release with the option "yes", "auto" and "no" for the backaddress key, yes and auto use fromname and fromaddress, no sets no backaddress and you can write a cutomized backaddress with anything else as content for the backaddress key. Regards Wolfgang
On Fri, Jul 4, 2008 at 9:02 AM, Wolfgang Schuster
On Thu, Jul 3, 2008 at 5:12 PM, Oliver Buerschaper
wrote: I could support name=yes and alike but I can't drop the \setupletter[list=...] because you need it to define your own reference line with personalized elements, e.g. your working in a company a put a sign for the letter there plus the number of the office etc.
I'm sorry, didn't think of that. It makes sense, of course.
Another possibility would be removing the "backaddress=yes" switch completely. Then if backaddress data is supplied it's printed along with the line below and if not, well, then leave out the separator line.
What do you think?
Have you tried what will happen with a enabled backaddress and no value for backaddress, fromname and fromaddress are shown as backaddress but I don't rely on this feature and change it to waht you suggested.
I've just tried this quickly and this seems even better … then what about removing the option "backaddress=yes" from "\setupletterstyle" and provide a key "auto" for "backaddress" in "\setupletter"? Thus:
I don't remove backaddress from \setupletterstyle because each layer has a boolean switch and I don't want a backaddress on my letters.
1. No backaddress line
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}]
2. backaddress line generated from sender information
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress=auto]
3. Custom backaddress
\setupletter [fromname={Arthur Thor}, fromaddress={Hidden Street 2\\57895 Mysterytown}, backaddress={Thor Inc., Mystery Street 5, 59875 Hidden Town}]
I uploaded a new release with the option "yes", "auto" and "no" for the backaddress key, yes and auto use fromname and fromaddress, no sets no backaddress and you can write a cutomized backaddress with anything else as content for the backaddress key.
I will move this option in the next relase from \setupletter[backaddress=...] to \setupletterstyle[backaddress][option][alternative=...] because it works also with normal text as argument for \setupletter[backaddress=...]. Regards Wolfgang
Hello, Sorry for this « silly » question but where can I download the last version of the letter module ? The contextgarden page¹ is empty… and I can't find anything on pragma.ade Olivier (another one still searching for true rules for french letter style, I'll add them on the frenchpunctuation² page…) [1] http://wiki.contextgarden.net/Letter [2] http://wiki.contextgarden.net/frenchpunctuation -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.com
On Wed, Jul 9, 2008 at 9:51 AM, Olivier Guéry
Hello, Sorry for this « silly » question but where can I download the last version of the letter module ? The contextgarden page¹ is empty… and I can't find anything on pragma.ade
http://modules.contextgarden.net/letter http://wolfgang.schuster.googlepages.com/letter
Olivier (another one still searching for true rules for french letter style, I'll add them on the frenchpunctuation² page…)
You can add your information to [1]. AFAIK there is no official letter style in france. I started to write I style a based on the lettre class for LaTeX but it's no finished and it's better to let user decide what layout thex want.
[1] http://wiki.contextgarden.net/Letter [2] http://wiki.contextgarden.net/frenchpunctuation
I tried myself to find information about letter in france. http://www.anglaisfacile.com/pages/mie/1lettre.php http://www.mdeduchinonais.fr/contenu.php?id_noeud=57&id=11 http://www.aide-emploi.net/moti.htm http://french.about.com/library/weekly/aa111000.htm http://www.ctan.org/tex-archive/macros/latex/contrib/lettre/ http://www.la-lettre.com/ Regards, Wolfgang
2008/7/9 Wolfgang Schuster
On Wed, Jul 9, 2008 at 9:51 AM, Olivier Guéry
wrote: Hello, Sorry for this « silly » question but where can I download the last version of the letter module ? The contextgarden page¹ is empty… and I can't find anything on pragma.ade
http://modules.contextgarden.net/letter http://wolfgang.schuster.googlepages.com/letter
Thank's. I put this links to the « garden » with a warning. Are you ok with this ? http://wiki.contextgarden.net/Letter O. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.com
On Wed, Jul 9, 2008 at 10:18 AM, Olivier Guéry
2008/7/9 Wolfgang Schuster
: On Wed, Jul 9, 2008 at 9:51 AM, Olivier Guéry
wrote: Hello, Sorry for this « silly » question but where can I download the last version of the letter module ? The contextgarden page¹ is empty… and I can't find anything on pragma.ade
http://modules.contextgarden.net/letter http://wolfgang.schuster.googlepages.com/letter
Thank's. I put this links to the « garden » with a warning. Are you ok with this ? http://wiki.contextgarden.net/Letter
Accepted. Wolfgang
I tried myself to find information about letter in france.
It's an ugly one !
This one look good. Sometime you can see « Ville et date » (town and date) under « Coordonnées du recruteurs », like in the link under. But I just call my grand-father (94 years, from the time they learn how to write a letter in school) and he told me that the Place and Date are above !
See the « Place and Date » question above.
The sender should not be centered in the page.
http://www.ctan.org/tex-archive/macros/latex/contrib/lettre/
Maybe small diffrence because the creator is from suisse ! But it's a « reference ».
Not realy intresting for us. Remaning question are alignment. What should be flushed left, right… The Latex extention create a center environment in the upper left. For me it looks ugly… I realy prefer it to be left fluched. Cheers, Olivier. -- [Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ] http://nemolivier.blogspot.com
participants (3)
-
Oliver Buerschaper
-
Olivier Guéry
-
Wolfgang Schuster