Re: [NTG-context] Letter module: Subject below opening

2017-09-02 Thread Parchd
Thanks, Wolfgang. That worked nicely.
I have added the information to the Wiki.

Best,

Parchd.

On Sat, Sep 02, 2017 at 01:42:06PM +0200, Wolfgang Schuster wrote:
> \usemodule[letter]
> 
> \startletter
>   [subject={How to change the position of the subject line},
>opening={Hi Parchd,}]
> 
> The elements of the letter environment can be changed with the
> \tex{setupletterelements} commands,
> the default order of them is
> 
> \startitemize[packed]
> \item title,
> \item subject,
> \item opening,
> \item content,
> \item closing and
> \item appendices
> \stopitemize
> 
> To put the subject after the opening you have to modify this order with the
> following setup:
> 
> \starttyping
> \setupletterelements
>   [section]
>   [title,
>opening,
>subject,
>content,
>closing,
>appendices]
> \stoptyping
> 
> \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Letter module: Subject below opening

2017-09-02 Thread Wolfgang Schuster

\usemodule[letter]

\startletter
  [subject={How to change the position of the subject line},
   opening={Hi Parchd,}]

The elements of the letter environment can be changed with the 
\tex{setupletterelements} commands,

the default order of them is

\startitemize[packed]
\item title,
\item subject,
\item opening,
\item content,
\item closing and
\item appendices
\stopitemize

To put the subject after the opening you have to modify this order with 
the following setup:


\starttyping
\setupletterelements
  [section]
  [title,
   opening,
   subject,
   content,
   closing,
   appendices]
\stoptyping

\stopletter

Wolfgang


Parchd 
1. September 2017 um 13:04
British letters typically have the subject below the opening.

A stackexchange user asked many moons ago how to accomplish this in
ConTeXt, and received a rather hackish response
(https://tex.stackexchange.com/questions/22438/how-to-place-the-subject-line-under-the-greeting-line-in-t-letter-module-in-cont).

ConTeXt and the letter module have changed a lot since then, if my
experience is correct. Is there a better solution than given there?

Best,

Parchd.
___
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
___


___
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
___

Re: [NTG-context] Letter module: Subject below opening

2017-09-02 Thread Parchd
On Fri, Sep 01, 2017 at 01:04:44PM +0200, Parchd wrote:
> British letters typically have the subject below the opening.
> 
> A stackexchange user asked many moons ago how to accomplish this in
> ConTeXt, and received a rather hackish response
> (https://tex.stackexchange.com/questions/22438/how-to-place-the-subject-line-under-the-greeting-line-in-t-letter-module-in-cont).
> 
> ConTeXt and the letter module have changed a lot since then, if my
> experience is correct. Is there a better solution than given there?
> 

In answer to my own question, the following is certainly nicer than what
I found on stackexchange. Perhaps there is still something better,
though?


\startsetups[letter:section:opening]
\correspondenceparameter{opening}
\blank
{\bf\correspondenceparameter{subject}}
\stopsetups

\startsetups[letter:section:subject]
\stopsetups

\setuplettersection[opening][alternative=setups]
\setuplettersection[subject][alternative=setups]

___
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
___

[NTG-context] Letter module: Subject below opening

2017-09-01 Thread Parchd
British letters typically have the subject below the opening.

A stackexchange user asked many moons ago how to accomplish this in
ConTeXt, and received a rather hackish response
(https://tex.stackexchange.com/questions/22438/how-to-place-the-subject-line-under-the-greeting-line-in-t-letter-module-in-cont).

ConTeXt and the letter module have changed a lot since then, if my
experience is correct. Is there a better solution than given there?

Best,

Parchd.
___
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
___