* letter: How to customize reference line?
@ 2018-06-24 13:40 Paul Menzel
2018-06-25 13:35 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Paul Menzel @ 2018-06-24 13:40 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 938 bytes --]
Dear ConTeXt folks,
I am trying to customize the reference line in a letter.
```
$ context --version
mtx-context | ConTeXt Process Management 1.01
mtx-context |
mtx-context | main context file:
/usr/share/texmf/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2017.05.15 21:48
```
The example from Wolfgang’s `correspondence.pdf` [1] doesn’t work for me.
```
\setupletter
[name={Joe User},
date=\currentdate]
\setupletter
[list={name,date}]
```
Only the date is shown in the reference line.
The solution from chapter 9 also does not work. Still only the date is
shown.
```
\setupletter
[name={Joe User},
date=\currentdate]
\setupletterstyle[reference][list={name,date}]
```
Do I need to create a new customized reference line to add other fields
next to the date to the reference line?
Kind regards,
Paul
[1]: https://bitbucket.org/wolfs/correspondence/downloads/
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: brief.tex --]
[-- Type: text/x-tex; name="brief.tex", Size: 662 bytes --]
\usemodule[letter][extension=optimize]
\mainlanguage[de]
\setupletterstyle
[option]
[whitespace=line,
optimize=yes,
]
\setupletter
[toname={Vodafone Kabel Deutschland GmbH},
toaddress={Kundenservice\\99116 Erfurt}]
\setupletter
[fromname={Hanna Musterfrau},
fromaddress={Irgendwostr. 18\\99999 Nirgendwo}]
\setupletter
[name={Joe User},
date=\currentdate]
\setupletterstyle[reference][list={name,date}]
\starttext
\setupletter
[subject={Reason},
opening={Sehr geehrte Damen und Herren,},
closing={Freundliche Grüße},
signature={Paul Menzel}]
\startletter\relax
\dorecurse{4}{\input ward\par}
\stopletter
\stoptext
[-- Attachment #3: 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] 2+ messages in thread
* Re: letter: How to customize reference line?
2018-06-24 13:40 letter: How to customize reference line? Paul Menzel
@ 2018-06-25 13:35 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2018-06-25 13:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2001 bytes --]
Hi Paul,
you have to use the \setupletterlayer command to change the entries in
the reference line.
\usemodule[letter]
\setupletter
[name={Joe User}]
\setupletterlayer
[reference]
[list={name,date}]
\startletter
...
\stopletter
If you don’t get a title for your entry you can add it with the
\setuplettertext command.
\setuplettertext[de][mobile=Mobilfunknummer]
Wolfgang
> Paul Menzel <mailto:pmenzel+ntg-context@molgen.mpg.de>
> 24. Juni 2018 um 15:40
> Dear ConTeXt folks,
>
>
> I am trying to customize the reference line in a letter.
>
> ```
> $ context --version
>
> mtx-context | ConTeXt Process Management 1.01
> mtx-context |
> mtx-context | main context file:
> /usr/share/texmf/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2017.05.15 21:48
> ```
>
> The example from Wolfgang’s `correspondence.pdf` [1] doesn’t work for me.
>
> ```
> \setupletter
> [name={Joe User},
> date=\currentdate]
>
> \setupletter
> [list={name,date}]
> ```
>
> Only the date is shown in the reference line.
>
> The solution from chapter 9 also does not work. Still only the date is
> shown.
>
> ```
> \setupletter
> [name={Joe User},
> date=\currentdate]
>
> \setupletterstyle[reference][list={name,date}]
> ```
>
> Do I need to create a new customized reference line to add other
> fields next to the date to the reference line?
>
>
> Kind regards,
>
> Paul
>
>
> [1]: https://bitbucket.org/wolfs/correspondence/downloads/
> ___________________________________________________________________________________
> 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: 3796 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] 2+ messages in thread
end of thread, other threads:[~2018-06-25 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-24 13:40 letter: How to customize reference line? Paul Menzel
2018-06-25 13:35 ` 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).