Re: [NTG-context] letter: backaddress
Am 28.03.10 15:39, schrieb Wolfgang Werners-Lucchini: And to define such a own backaddress, one uses \setlettervalue{backaddress}{something} Hopefully this is right! When you want something which can be used for \setupletterstyle[<1>][alternative=<2>] you need \defineletterelement[<1>][<2>]{...}, which \setlettervalue{}{} you set a variable which can be used with \lettervalue{}, e.g. \usemodule[letter] \defineletterelement[foot][myalternative]{\midaligned{Can you see me?}} \setupletterstyle[footer][alternative=myalternative] \setlettervalue{bankleitzahl}{7643} %\setlettervalue{kontonummer}{} \starttext \startletter \lettervalue{bankleitzahl} \doifelselettervalue{kontonummer} {Die Kontonummer lautet \lettervalue{kontonummer}} {Keine Kontonummer angegeben} \stopletter \stoptext 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 ___
Re: [NTG-context] letter: backaddress
Hallo Wolfgang, > You're mixing different things. > > What is the difference between > > > > \setupletterstyle[option][backaddress=yes] > > > With \setupletterstyle[=yes|no] you can show or hide > elements ok! > > \setupletterstyle[backaddress][alternative=yes] > > > > In 'default.nli' I found > > > > \defineletterelement[\v!backaddress][\v!auto] > >{\doifelselettervalue\c!backaddress > > {\lettervalue\c!backaddress} > > {\lettervalue\c!fromname > >\doiflettervalue\c!fromaddress\\ > >\lettervalue\c!fromaddress}} > > > > what I interpret in the following way: > > > > If 'backaddress'=auto > >If exist a constant 'backaddress' > > use it > >else > > compose one from 'fromname' and 'fromaddress' > > > The constant needs a content, if there is no content for > 'backadress' the field is filled with 'fromname' and 'fromaddress'. So let's test if I have understand this: With \setupletterstyle[option][backaddress=no|yes] one can disable|enable a backaddress. With \setupletterstyle[backaddress][alternative=no|yes|auto] one can select between no backadress| a composed backaddress from the fromdata| the yes behaviour if no predefined backaddress is defined And to define such a own backaddress, one uses \setlettervalue{backaddress}{something} Hopefully this is right! 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 ___
Re: [NTG-context] letter: backaddress
Am 27.03.10 17:56, schrieb Wolfgang Werners-Lucchini: I do not understand the the main principle. You're mixing different things. What is the difference between \setupletterstyle[option][backaddress=yes] In t-letter.tex you can fint this: \startsetups[\v!letter:\v!layer] \doif\lsoptionmarking \v!yes{\directsetup{\v!letter:\v!place:\v!foldmark }} \doif\lsoptionbackaddress\v!yes{\directsetup{\v!letter:\v!place:\v!backaddress}} \doif\lsoptionaddress \v!yes{\directsetup{\v!letter:\v!place:\v!address}} \doif\lsoptionreference \v!yes{\directsetup{\v!letter:\v!place:\v!reference }} \doif\lsoptionlocation \v!yes{\directsetup{\v!letter:\v!place:\v!location }} \doif\lsoptionlettermain \v!yes{\directsetup{\v!letter:\v!place:\v!lettermain }} \doif\lsoptionletternext \v!yes{\directsetup{\v!letter:\v!place:\v!letternext }} \stopsetups With \setupletterstyle[=yes|no] you can show or hide elements (like the foldmarks or the backaddress) in the output. \setupletterstyle[backaddress][alternative=yes] In 'default.nli' I found \defineletterelement[\v!backaddress][\v!auto] {\doifelselettervalue\c!backaddress {\lettervalue\c!backaddress} {\lettervalue\c!fromname \doiflettervalue\c!fromaddress\\ \lettervalue\c!fromaddress}} what I interpret in the following way: If 'backaddress'=auto If exist a constant 'backaddress' use it else compose one from 'fromname' and 'fromaddress' The constant needs a content, if there is no content for 'backadress' the field is filled with 'fromname' and 'fromaddress'. \defineletterelements creates a macro, where the first argument is the name of the elements and the second a name for the alternative, e.g. \defineletterelement[][]{definition} You can use the created element with \setupletterstyle[][alternative=], in your case \setupletterstyle[backaddress][alternative=auto] When you don't like this mechanism you can use the internal element setups itself with \startsetups letter:backaddress ... \stopsetups 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 ___
Re: [NTG-context] letter: backaddress
Hallo, > \setupletterstyle[backaddress=yes] > > it's a disabled by default but i forgot to do this also in the > default style > (most styles reset the layout and use default values before they > modify it) > > \setupletterstyle > >[backaddress] > >[alternative=auto, > > > 'auto' is now the default value > > Wolfgang I do not understand the the main principle. What is the difference between \setupletterstyle[option][backaddress=yes] and \setupletterstyle[backaddress][alternative=yes] In 'default.nli' I found \defineletterelement[\v!backaddress][\v!auto] {\doifelselettervalue\c!backaddress {\lettervalue\c!backaddress} {\lettervalue\c!fromname \doiflettervalue\c!fromaddress\\ \lettervalue\c!fromaddress}} what I interpret in the following way: If 'backaddress'=auto If exist a constant 'backaddress' use it else compose one from 'fromname' and 'fromaddress' To use this, I tried to set \setupletterstyle[option][backaddress=auto] or \setupletterstyle[backaddress][alternative=auto] And I tried to set this constant backaddress, with setlettervalue{backaddress}{something} But no combination is working. What worked is \setupletterstyle[option][backaddress=yes] \setlettervalue{backaddress}{something} which should not work, because \defineletterelement[\v!backaddress][\v!yes] {\lettervalue\c!fromname \doiflettervalue\c!fromaddress\\ \lettervalue\c!fromaddress} is composing the 'backaddress' from the fromdata. My skills to read the sourcecode are very limited, so most likely I buhave something misunderstood. 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 ___
Re: [NTG-context] letter: backaddress
Wolfgang Schuster wrote: > \setupletterstyle[backaddress=yes] Ah, that did it! Thank you. ___ 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] letter: backaddress
Am 27.03.10 14:51, schrieb Andreas Schneider: Hello, Speaking of the letter module ... I don't get any backaddress at all in the current minimals. Did something change? The example below used to work. \setupletterstyle[backaddress=yes] it's a disabled by default but i forgot to do this also in the default style (most styles reset the layout and use default values before they modify it) \setupletterstyle [backaddress] [alternative=auto, 'auto' is now the default value 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 ___
Re: [NTG-context] letter: backaddress
Hello, Speaking of the letter module ... I don't get any backaddress at all in the current minimals. Did something change? The example below used to work. \usemodule[letter][style=dinb] \setuppapersize[A4][A4] \setupletterstyle [backaddress] [alternative=auto, style=\tfxx, bottomframe=on] \setupletter[ fromname={Sender}, fromaddress={Sent\\From}, backaddress={Sender - Address}] \setupletter[ toname={Recipient}, toaddress={Address}] \setupletter[subject={The Subject}] \starttext\startletter Some Text. \stopletter\stoptext Best Regards, Andreas. ___ 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] letter: backaddress
Am 27.03.10 00:45, schrieb Wolfgang Werners-Lucchini: Hallo, 'backaddress' is composed from 'fromname' and 'fromaddress', but this is to long and must be shortend. How can I overwritte 'backaddress'? \setlettervalue{backaddress}{short address} or \startletter[backaddress=...] ... \stopletter 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 ___
Re: [NTG-context] letter: backaddress
Dne sobota 27. marca 2010 ob 00:45:19 je Wolfgang Werners-Lucchini napisal(a): > 'backaddress' is composed from 'fromname' and 'fromaddress', > but this is to long and must be shortend. How can I overwritte > 'backaddress'? How about 'sender'? Cheers, Matija -- /\ Document Freedom Day- Osvobodi svoje dokumente _\/` http://documentfreedom.org/ - 31. marec 2010 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suk...@gabbler.org ___ 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] letter: backaddress
Hallo, 'backaddress' is composed from 'fromname' and 'fromaddress', but this is to long and must be shortend. How can I overwritte 'backaddress'? Gruß, 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 ___
Re: [NTG-context] Letter backaddress
> I tried myself to find information about letter in france. > > http://www.anglaisfacile.com/pages/mie/1lettre.php It's an ugly one ! > http://www.mdeduchinonais.fr/contenu.php?id_noeud=57&id=11 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 ! > http://www.aide-emploi.net/moti.htm See the « Place and Date » question above. > http://french.about.com/library/weekly/aa111000.htm 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 ». > http://www.la-lettre.com/ 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
On Wed, Jul 9, 2008 at 10:18 AM, Olivier Guéry <[EMAIL PROTECTED]> wrote: > 2008/7/9 Wolfgang Schuster <[EMAIL PROTECTED]>: >> On Wed, Jul 9, 2008 at 9:51 AM, Olivier Guéry <[EMAIL PROTECTED]> 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
2008/7/9 Wolfgang Schuster <[EMAIL PROTECTED]>: > On Wed, Jul 9, 2008 at 9:51 AM, Olivier Guéry <[EMAIL PROTECTED]> 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
On Wed, Jul 9, 2008 at 9:51 AM, Olivier Guéry <[EMAIL PROTECTED]> 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 > 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
On Fri, Jul 4, 2008 at 9:02 AM, Wolfgang Schuster <[EMAIL PROTECTED]> wrote: > On Thu, Jul 3, 2008 at 5:12 PM, Oliver Buerschaper > <[EMAIL PROTECTED]> 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
On Thu, Jul 3, 2008 at 5:12 PM, Oliver Buerschaper <[EMAIL PROTECTED]> 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. Regards 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
On Thu, Jul 3, 2008 at 5:19 PM, Oliver Buerschaper <[EMAIL PROTECTED]> wrote: >>> 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
>> 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
> 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
On Thu, Jul 3, 2008 at 3:04 PM, Oliver Buerschaper <[EMAIL PROTECTED]> wrote: >>> \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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
>> \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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
On Thu, Jul 3, 2008 at 12:30 PM, Wolfgang Schuster <[EMAIL PROTECTED]> wrote: > On Thu, Jul 3, 2008 at 12:23 PM, Oliver Buerschaper > <[EMAIL PROTECTED]> 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Letter backaddress
On Thu, Jul 3, 2008 at 12:23 PM, Oliver Buerschaper <[EMAIL PROTECTED]> 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@ntg.nl / 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 ___
[NTG-context] Letter backaddress
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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___