ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Letter module: Subject below opening
@ 2017-09-02 11:28 Parchd
  0 siblings, 0 replies; 4+ messages in thread
From: Parchd @ 2017-09-02 11:28 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Letter module: Subject below opening
  2017-09-02 11:42 ` Wolfgang Schuster
@ 2017-09-02 12:06   ` Parchd
  0 siblings, 0 replies; 4+ messages in thread
From: Parchd @ 2017-09-02 12:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Letter module: Subject below opening
  2017-09-01 11:04 Parchd
@ 2017-09-02 11:42 ` Wolfgang Schuster
  2017-09-02 12:06   ` Parchd
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2017-09-02 11:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1697 bytes --]

\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 <mailto:parchd@archlinux.info>
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3500 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Letter module: Subject below opening
@ 2017-09-01 11:04 Parchd
  2017-09-02 11:42 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Parchd @ 2017-09-01 11:04 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-02 12:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-02 11:28 Letter module: Subject below opening Parchd
  -- strict thread matches above, loose matches on Subject: below --
2017-09-01 11:04 Parchd
2017-09-02 11:42 ` Wolfgang Schuster
2017-09-02 12:06   ` Parchd

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