ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems with letter module
@ 2018-07-20  5:17 Lutz Haseloff
  2018-07-20  7:17 ` Henri Menke
  0 siblings, 1 reply; 5+ messages in thread
From: Lutz Haseloff @ 2018-07-20  5:17 UTC (permalink / raw)
  To: Context Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 1070 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1270 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with letter module
  2018-07-20  5:17 Problems with letter module Lutz Haseloff
@ 2018-07-20  7:17 ` Henri Menke
  2018-07-20  8:20   ` Lutz Haseloff
  0 siblings, 1 reply; 5+ messages in thread
From: Henri Menke @ 2018-07-20  7:17 UTC (permalink / raw)
  To: ntg-context



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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with letter module
  2018-07-20  7:17 ` Henri Menke
@ 2018-07-20  8:20   ` Lutz Haseloff
  0 siblings, 0 replies; 5+ messages in thread
From: Lutz Haseloff @ 2018-07-20  8:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2743 bytes --]

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 <henrimenke@gmail.com>:
>
>
>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
>___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 3440 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problems with letter module
  2013-01-02  9:17 problems " Wolfgang Werners-Lucchini
@ 2013-01-02  9:42 ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2013-01-02  9:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 02.01.2013 um 10:17 schrieb "Wolfgang Werners-Lucchini" <wwl@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
> 
> setup           > error in line 20, namespace "553", instance 
> "letter", key "frame"
> setup           > error in line 58, namespace "539", instance 
> "letter", key "invoice"
> setup           > error in line 58, namespace "539", instance 
> "letter", key "date"
> setup           > error in line 58, namespace "539", instance 
> "letter", key "phone"
> setup           > error 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* problems with letter module
@ 2013-01-02  9:17 Wolfgang Werners-Lucchini
  2013-01-02  9:42 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Werners-Lucchini @ 2013-01-02  9:17 UTC (permalink / raw)
  To: ntg-context

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

setup           > error in line 20, namespace "553", instance 
"letter", key "frame"
setup           > error in line 58, namespace "539", instance 
"letter", key "invoice"
setup           > error in line 58, namespace "539", instance 
"letter", key "date"
setup           > error in line 58, namespace "539", instance 
"letter", key "phone"
setup           > error 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-20  8:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-20  5:17 Problems with letter module Lutz Haseloff
2018-07-20  7:17 ` Henri Menke
2018-07-20  8:20   ` Lutz Haseloff
  -- strict thread matches above, loose matches on Subject: below --
2013-01-02  9:17 problems " Wolfgang Werners-Lucchini
2013-01-02  9:42 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).