From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: t-letter
Date: Sun, 20 Jan 2013 18:42:42 +0100 [thread overview]
Message-ID: <84BDE840-CE88-454C-9C93-30022B24148F@gmail.com> (raw)
In-Reply-To: <08F63FE9-A3A0-44E8-8CDB-C4ACA6CF9F6E@fiee.net>
Am 20.01.2013 um 11:32 schrieb Henning Hraban Ramm <hraban@fiee.net>:
> Hi Wolfgang et.al.,
>
> once again I struggle with your fine letter module.
>
> For my job application setup (that worked a year before) I already gave up, but I need my invoices working.
>
> Did you recently change anything WRT subject line? It doesn’t show up any more.
> (Latest ConTeXt MkIV beta in standalone.)
I changed the way how section and layer layouts defined, the current version of the module provides
the new command \definelettersectionalternative and \defineletterlayeralternative. For backwards
compatibility I still provide the old \defineletterlement command but there was a bug when
the command is used to create layouts for a section, a new version which fixes this is already online.
> This used to work:
>
> % Subject and date on the same line, date below logo
> \defineletterelement[section][subject][fiee]%
> {\bTABLE[frame=off]
> \bTR
> \bTD[width=\dimexpr169mm-\backspace\relax]\correspondenceparameter{subject}\eTD
> \bTD{\tf\correspondenceparameter{date}}\eTD
> %\bTD{\tf 2011-11-14}\eTD
> \eTR
> \eTABLE}
>
> \setuplettersection[subject][alternative=fiee]
>
> \startletter[subject={Invoice 1}]
> ...
> \stopletter
>
> (Yes, this isn’t a working minimal example. Perhaps you can tell me you changed this or that - otherwise I must dig deeper…)
Below are two additional methods to create a customized layout for the section.
\usemodule[letter]
% Method 1: unique name for the element
%
% \definelettersectionalternative[mysubject][renderingsetups=mysubject]
%
% \startsetups[mysubject]
% \bTABLE[frame=off]
% \bTR
% \bTD[width=\dimexpr169mm-\backspace\relax]\correspondenceparameter{subject}\eTD
% \bTD{\tf\correspondenceparameter{date}}\eTD
% %\bTD{\tf 2011-11-14}\eTD
% \eTR
% \eTABLE
% \stopsetups
%
% \setuplettersection[subject][alternative=mysubject]
% Method 2: shared name (fiee) for the element with its name (subject) as prefix
\definelettersectionalternative[subject:fiee][renderingsetup=subject:fiee]
\startsetups[subject:fiee]
\bTABLE[frame=off]
\bTR
\bTD[width=\dimexpr169mm-\backspace\relax]\correspondenceparameter{subject}\eTD
\bTD{\tf\correspondenceparameter{date}}\eTD
%\bTD{\tf 2011-11-14}\eTD
\eTR
\eTABLE
\stopsetups
\setuplettersection[subject][alternative=fiee]
% Method 3: using the predefined setups alternative
%
% \startsetups[letter:section:subject]
% \bTABLE[frame=off]
% \bTR
% \bTD[width=\dimexpr169mm-\backspace\relax]\correspondenceparameter{subject}\eTD
% \bTD{\tf\correspondenceparameter{date}}\eTD
% %\bTD{\tf 2011-11-14}\eTD
% \eTR
% \eTABLE
% \stopsetups
%
% \setuplettersection[subject][alternative=setups]
\startletter[subject={Invoice 1}]
...
\stopletter
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-01-20 17:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-20 10:32 t-letter Henning Hraban Ramm
2013-01-20 17:42 ` Wolfgang Schuster [this message]
2013-01-20 20:38 ` t-letter 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=84BDE840-CE88-454C-9C93-30022B24148F@gmail.com \
--to=wolfgang.schuster@gmail.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).