ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Problem with letter module
Date: Thu, 19 Jan 2012 00:21:29 +0100	[thread overview]
Message-ID: <FC6BE627-C4E1-4D30-BC01-7058C5B77A92@googlemail.com> (raw)
In-Reply-To: <201201182114.15080.romain.diss@yahoo.fr>


Am 18.01.2012 um 21:14 schrieb Romain Diss:

> Hi,
> 
> I am writing a letter with the 'letter' module (mkiv and last beta) and the 
> \encl{} command doesn't work anymore. I know that the module has been rewriten 
> recently but I can't find any doc or examples of the new syntax. I tried to 
> look at the source code but it doesn't help.
> 
> So is there any command which replace \encl{}? And is there any documentation 
> (even succint) of the new module?

With the new version of the module I tried to get rid of a few things which lead
to problems or which didn’t fit into context normal syntax. The \encl, \cc and \ps
had been such a thing and all three value can now only bet set as keyval argument,
e.g. \startletter[enclosure=…]

There isn’t a new documentation yet but I’ll give a short overview.

There is now only one way to set values for the letter variables in this is \setupletter
with it’s keyval syntax, e.g. \setupletter[name=…,address=…]. The \setlettervalue
command from the previous version is gone and won’t come back.

The letter environment has now only optional argument which acts like a local
version of \setupletter where the values are only used in the environment.
When you use your document only for a single letter without anything else
you can even drop \starttext and \stoptext because this is handled by \startletter
and \stopletter.

To change the labels in the reference line for the “Date” string you have
to use the \setuplettertext command, a special version of \setuplabeltext only
for the letter module.

Styles are still loaded with \useletterstyle but when you want to put your own
settings in a style file you have to name the file “letter-<style>.tex|mkiv”. To load
the style you need only the <style> part as argument for the command because
the “letter-” part is always added. It doesn't matter if you use tex or mkiv as file
extension because the file is found in either case.

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
___________________________________________________________________________________


  reply	other threads:[~2012-01-18 23:21 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-18 20:14 Romain Diss
2012-01-18 23:21 ` Wolfgang Schuster [this message]
2012-01-19 14:28   ` Romain Diss
2012-01-19 19:52     ` Wolfgang Schuster
2012-01-19 22:06       ` Romain Diss
2012-01-19 22:24         ` Wolfgang Schuster
2012-01-19 22:57           ` Romain Diss
2012-01-19 23:05             ` Wolfgang Schuster
2012-01-19 23:20               ` Romain Diss
2012-01-19 23:59                 ` Wolfgang Schuster
2012-01-20 21:44                   ` Romain Diss
2012-01-21  0:16                     ` Hans Hagen
2012-01-21  9:12                     ` Wolfgang Schuster
2012-01-19 14:28   ` Romain Diss
2012-01-19 22:08     ` Wolfgang Schuster
2012-02-05 23:05   ` Henning Hraban Ramm
2012-02-06 11:40     ` Wolfgang Schuster
     [not found] <mailman.1854.1326987164.4232.ntg-context@ntg.nl>
2012-01-19 17:47 ` Michael Green
2012-01-19 20:12   ` Romain Diss
  -- strict thread matches above, loose matches on Subject: below --
2011-09-19  8:41 problem " Henning Hraban Ramm
2011-09-19 10:35 ` Hans Hagen
2011-09-19 12:13   ` Henning Hraban Ramm
2011-09-19 20:02     ` Wolfgang Schuster
2011-09-19 21:34       ` Henning Hraban Ramm

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=FC6BE627-C4E1-4D30-BC01-7058C5B77A92@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).