ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Missing keys in reference line (letter module)
@ 2013-06-08 14:50 Florian Wobbe
  2013-06-08 15:28 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Wobbe @ 2013-06-08 14:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

the keys "name" and "phone" are not included in the reference line using the minimal example from the correspondence manual below. The reference line just contains the date. Also changing the alternative from "a" to "b" has no effect. What am I missing?

I upgraded to the latest beta and the header of s-cor-01.mkvi states version 2013.01.14.

Cheers,
Florian

--------8<-------------------------------------------------------
\usemodule[letter]

\setupletter
  [name=Willi Maier,
   phone=01234-56789,
   fax=3456-9853,
   date=\currentdate]

\setupletter
  [fromname={Max Mustermann},
   fromaddress={Musterstraße 12\\12345 Musterstadt}]

\setupletter
  [toname={Hans Hansen},
   toaddress={Zielgasse 23\\34789 New Mustertown}]

\setupletter
  [subject={Grund des Anschreibens},
   opening={Sehr geehrte Damen und Herren,},
   closing={Mit freundlichen Grüßen}]

\setupletter
  [alternative=a,
   list={name,phone,date}]

\starttext
\startletter
\input knuth\par
\stopletter
\stoptext
------------------------------------------------------->8--------

___________________________________________________________________________________
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] 3+ messages in thread

* Re: Missing keys in reference line (letter module)
  2013-06-08 14:50 Missing keys in reference line (letter module) Florian Wobbe
@ 2013-06-08 15:28 ` Wolfgang Schuster
  2013-06-08 15:56   ` Florian Wobbe
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-06-08 15:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.06.2013 um 16:50 schrieb Florian Wobbe <florian.wobbe@awi.de>:

> Hi,
> 
> the keys "name" and "phone" are not included in the reference line using the minimal example from the correspondence manual below. The reference line just contains the date. Also changing the alternative from "a" to "b" has no effect. What am I missing?

You have to pass the settings to \setupletterlayer[reference][…] (see below). In previous
versions of the module I provided \setupletter as alternative way to set values for the list
but after the last rewrite I removed it.

> I upgraded to the latest beta and the header of s-cor-01.mkvi states version 2013.01.14.
> 
> Cheers,
> Florian
> 
> --------8<-------------------------------------------------------
> \usemodule[letter]
> 
> \setupletter
>  [name=Willi Maier,
>   phone=01234-56789,
>   fax=3456-9853,
>   date=\currentdate]
> 
> \setupletter
>  [fromname={Max Mustermann},
>   fromaddress={Musterstraße 12\\12345 Musterstadt}]
> 
> \setupletter
>  [toname={Hans Hansen},
>   toaddress={Zielgasse 23\\34789 New Mustertown}]
> 
> \setupletter
>  [subject={Grund des Anschreibens},
>   opening={Sehr geehrte Damen und Herren,},
>   closing={Mit freundlichen Grüßen}]
> 
> \setupletter
>  [alternative=a,
>   list={name,phone,date}]

\setupletterlayer
  [reference]
  [alternative=a,
   list={name,phone,date}]

BTW: When your document consists of only a single letter you can omit the \starttext/\stoptext commands.

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] 3+ messages in thread

* Re: Missing keys in reference line (letter module)
  2013-06-08 15:28 ` Wolfgang Schuster
@ 2013-06-08 15:56   ` Florian Wobbe
  0 siblings, 0 replies; 3+ messages in thread
From: Florian Wobbe @ 2013-06-08 15:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> Hi,
>> 
>> the keys "name" and "phone" are not included in the reference line using the minimal example from the correspondence manual below. The reference line just contains the date. Also changing the alternative from "a" to "b" has no effect. What am I missing?
> 
> You have to pass the settings to \setupletterlayer[reference][…] (see below). In previous
> versions of the module I provided \setupletter as alternative way to set values for the list
> but after the last rewrite I removed it.
> 
> [...]
> BTW: When your document consists of only a single letter you can omit the \starttext/\stoptext commands.
> 
> Wolfgang

Great, it works again - thanks a lot for both hints!
Florian
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2013-06-08 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-08 14:50 Missing keys in reference line (letter module) Florian Wobbe
2013-06-08 15:28 ` Wolfgang Schuster
2013-06-08 15:56   ` Florian Wobbe

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).