ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Werners-Lucchini" <wwl@musensturm.de>
To: ntg-context@ntg.nl
Subject: Re: letter: backaddress
Date: Sat, 27 Mar 2010 17:56:39 +0100	[thread overview]
Message-ID: <4BAE46D7.27001.B01600@wwl.musensturm.de> (raw)
In-Reply-To: <mailman.94.1269703304.4277.ntg-context@ntg.nl>

Hallo,

> \setupletterstyle[backaddress=yes]
> 
> it's a disabled by default but i forgot to do this also in the
> default style
> (most styles reset the layout and use default values before they
> modify it)
> > \setupletterstyle
> >    [backaddress]
> >    [alternative=auto,
> >    
> 'auto' is now the default value
> 
> Wolfgang

I do not understand the the main principle.

What is the difference between

\setupletterstyle[option][backaddress=yes]

and

\setupletterstyle[backaddress][alternative=yes]
	
In 'default.nli' I found

\defineletterelement[\v!backaddress][\v!auto]
  {\doifelselettervalue\c!backaddress
     {\lettervalue\c!backaddress}
     {\lettervalue\c!fromname
      \doiflettervalue\c!fromaddress\\
      \lettervalue\c!fromaddress}}

what I interpret in the following way:

If 'backaddress'=auto
  If exist a constant 'backaddress'
    use it
  else
    compose one from 'fromname' and 'fromaddress'

To use this, I tried to set 

\setupletterstyle[option][backaddress=auto]

or

\setupletterstyle[backaddress][alternative=auto]

And I tried to set this constant backaddress, with

setlettervalue{backaddress}{something}

But no combination is working.

What worked is

\setupletterstyle[option][backaddress=yes]
\setlettervalue{backaddress}{something}

which should not work, because

\defineletterelement[\v!backaddress][\v!yes]
  {\lettervalue\c!fromname
   \doiflettervalue\c!fromaddress\\
   \lettervalue\c!fromaddress}

is composing the 'backaddress' from the fromdata.

My skills to read the sourcecode are very limited, so most likely I 
buhave something misunderstood.

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:[~2010-03-27 16:56 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.94.1269703304.4277.ntg-context@ntg.nl>
2010-03-27 16:56 ` Wolfgang Werners-Lucchini [this message]
2010-03-27 18:49   ` Wolfgang Schuster
     [not found] <mailman.96.1269720246.4277.ntg-context@ntg.nl>
2010-03-28 13:39 ` Wolfgang Werners-Lucchini
2010-03-28 14:22   ` Wolfgang Schuster
2010-03-26 23:45 Wolfgang Werners-Lucchini
2010-03-27  1:55 ` Matija Šuklje
2010-03-27  5:48 ` Wolfgang Schuster
2010-03-27 13:51 ` Andreas Schneider
2010-03-27 14:10   ` Wolfgang Schuster
2010-03-27 15:32     ` Andreas Schneider
  -- strict thread matches above, loose matches on Subject: below --
2008-07-03 10:23 Letter backaddress Oliver Buerschaper
2008-07-03 10:30 ` Wolfgang Schuster
2008-07-03 10:32   ` Wolfgang Schuster
2008-07-03 13:04     ` Oliver Buerschaper
2008-07-03 13:20       ` Wolfgang Schuster
2008-07-03 15:12         ` Oliver Buerschaper
2008-07-03 15:19           ` Oliver Buerschaper
2008-07-04  6:58             ` Wolfgang Schuster
2008-07-04  7:02           ` Wolfgang Schuster
2008-07-09  6:46             ` Wolfgang Schuster
2008-07-09  7:51               ` Olivier Guéry
2008-07-09  8:06                 ` Wolfgang Schuster
2008-07-09  8:18                   ` Olivier Guéry
2008-07-09  8:27                     ` Wolfgang Schuster
2008-07-09  8:53                   ` Olivier Guéry

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=4BAE46D7.27001.B01600@wwl.musensturm.de \
    --to=wwl@musensturm.de \
    --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).