Re: [NTG-context] Problems with letter module
Thanks Henri, but is there a way to use a different background on page 2? I found \v!firstpage and \v!secondpage in the sources but didn't found a way to use them in my letter. Am 20. Juli 2018 09:17:23 MESZ schrieb Henri Menke : > > >On 20/07/18 17:17, Lutz Haseloff wrote: >> Hi Wolfgang, hi all, >> >> I would like to use the letter module. >> >> With my minimal letter i don't get pagenumbering and background >working. >> They don't appear in the pdf. >> >> -- >> \setupbodyfont[cambria] >> \usemodule[letter] >> \useletterstyle[dinb] >> \mainlanguage[de] >> \starttext >> \setupletter >> [signature={Unterschrift}, >> fromname={Absender}, >> fromaddress={Straße\\Ort}, >> toname={An}, >> toaddress={Adresse}] >> % correspondence.pdf, p. 73 >> \startsetups letter:head >> \rightaligned{Seite \correspagenumber\ von \numberofcorrespages} >> \stopsetups >> % correspondence.pdf, p. 71 >> \startuseMPgraphic{dactylus} >> draw unitsquare xyscaled (OverlayWidth-2cm,OverlayHeight-2cm) >> smoothed 1cm withpen pencircle scaled 2 ; >> fill fullcircle scaled 1.5cm shifted (1cm,1cm) >> withcolor \MPcolor{orange} ; >> \stopuseMPgraphic >> \setupletterstyle[background=\useMPgraphic{dactylus}] > >\setupletteroptions[background=\useMPgraphic{dactylus}] > >Some things have changed internally but the documentation hasn't been >updated. > >> >> \startletter >> [opening={Anrede}, >> subject={Betreff}, >> closing={Gruß}] >> \input tufte >> >> \input knuth >> >> \input ward >> \stopletter >> \stoptext >> -- >> >> Recent context beta, luatex 1.08 6731 >> >> >> Greetings Lutz >> >> >> >___ >> 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://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> >___ >> >___ >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://context.aanhet.net >archive : https://bitbucket.org/phg/context-mirror/commits/ >wiki : http://contextgarden.net >___ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problems with letter module
On 20/07/18 17:17, Lutz Haseloff wrote: Hi Wolfgang, hi all, I would like to use the letter module. With my minimal letter i don't get pagenumbering and background working. They don't appear in the pdf. -- \setupbodyfont[cambria] \usemodule[letter] \useletterstyle[dinb] \mainlanguage[de] \starttext \setupletter [signature={Unterschrift}, fromname={Absender}, fromaddress={Straße\\Ort}, toname={An}, toaddress={Adresse}] % correspondence.pdf, p. 73 \startsetups letter:head \rightaligned{Seite \correspagenumber\ von \numberofcorrespages} \stopsetups % correspondence.pdf, p. 71 \startuseMPgraphic{dactylus} draw unitsquare xyscaled (OverlayWidth-2cm,OverlayHeight-2cm) smoothed 1cm withpen pencircle scaled 2 ; fill fullcircle scaled 1.5cm shifted (1cm,1cm) withcolor \MPcolor{orange} ; \stopuseMPgraphic \setupletterstyle[background=\useMPgraphic{dactylus}] \setupletteroptions[background=\useMPgraphic{dactylus}] Some things have changed internally but the documentation hasn't been updated. \startletter [opening={Anrede}, subject={Betreff}, closing={Gruß}] \input tufte \input knuth \input ward \stopletter \stoptext -- Recent context beta, luatex 1.08 6731 Greetings Lutz ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___ ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Problems with letter module
Hi Wolfgang, hi all, I would like to use the letter module. With my minimal letter i don't get pagenumbering and background working. They don't appear in the pdf. -- \setupbodyfont[cambria] \usemodule[letter] \useletterstyle[dinb] \mainlanguage[de] \starttext \setupletter [signature={Unterschrift}, fromname={Absender}, fromaddress={Straße\\Ort}, toname={An}, toaddress={Adresse}] % correspondence.pdf, p. 73 \startsetups letter:head \rightaligned{Seite \correspagenumber\ von \numberofcorrespages} \stopsetups % correspondence.pdf, p. 71 \startuseMPgraphic{dactylus} draw unitsquare xyscaled (OverlayWidth-2cm,OverlayHeight-2cm) smoothed 1cm withpen pencircle scaled 2 ; fill fullcircle scaled 1.5cm shifted (1cm,1cm) withcolor \MPcolor{orange} ; \stopuseMPgraphic \setupletterstyle[background=\useMPgraphic{dactylus}] \startletter [opening={Anrede}, subject={Betreff}, closing={Gruß}] \input tufte \input knuth \input ward \stopletter \stoptext -- Recent context beta, luatex 1.08 6731 Greetings Lutz___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] problems with letter module
Hallo, I have updated context and the letter module to ConTeXt ver: 2012.12.06 22:36 MKIV fmt: 2012.12.8 int: english/english Problem: My letters do not work anymore. I have found that \setlettervalue{tax}[Steuer]{xxx} is one of the problems. I have to use \setupletter[tax=xxx] instead. I have to lock for then tax renaming. Now the letter is compiling, but it is completly broken. In the log I have found a lot of lines setuperror in line 20, namespace 553, instance letter, key frame setuperror in line 58, namespace 539, instance letter, key invoice setuperror in line 58, namespace 539, instance letter, key date setuperror in line 58, namespace 539, instance letter, key phone setuperror in line 58, namespace 539, instance letter, key tax I have the impression, that there has a lot changed. How can I fix this temporary? (I have to write my letter NOW!) 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] problems with letter module
Am 02.01.2013 um 10:17 schrieb Wolfgang Werners-Lucchini w...@musensturm.de: Hallo, I have updated context and the letter module to ConTeXt ver: 2012.12.06 22:36 MKIV fmt: 2012.12.8 int: english/english Problem: My letters do not work anymore. I have found that \setlettervalue{tax}[Steuer]{xxx} is one of the problems. I have to use \setupletter[tax=xxx] instead. I have to lock for then tax renaming. I removed the \setlettervalue command because it was too LaTeX like. To set values for the letter use the \setupletter command, e.g. \setupletter[name=…,phone=…] etc. For the labels of these values you have to use the \setuplettertext command which has like \setuplabeltext a optional argument where you can set different text for certain languages, e.g. \setuplettertext[tax=Tax] or \setuplettertext[de][tex=Steuer]. Now the letter is compiling, but it is completly broken. In the log I have found a lot of lines setuperror in line 20, namespace 553, instance letter, key frame setuperror in line 58, namespace 539, instance letter, key invoice setuperror in line 58, namespace 539, instance letter, key date setuperror in line 58, namespace 539, instance letter, key phone setuperror in line 58, namespace 539, instance letter, key tax I have the impression, that there has a lot changed. The old \setupletterstyle command was split in many different commands because it was too complicated and slow to make everything with one command. How can I fix this temporary? (I have to write my letter NOW!) You can send a me a example off-list. 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 ___