ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Paul Menzel <pmenzel+ntg-context@molgen.mpg.de>
To: ntg-context@ntg.nl
Subject: letter: How to customize reference line?
Date: Sun, 24 Jun 2018 15:40:58 +0200	[thread overview]
Message-ID: <c2b36885-f097-9173-4fa0-3ee1a92aa313@molgen.mpg.de> (raw)

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

             reply	other threads:[~2018-06-24 13:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-24 13:40 Paul Menzel [this message]
2018-06-25 13:35 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c2b36885-f097-9173-4fa0-3ee1a92aa313@molgen.mpg.de \
    --to=pmenzel+ntg-context@molgen.mpg.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).