Re: [NTG-context] Letter module not found by LMTX

2021-02-24 Thread Henning Hraban Ramm
Hi Lutz and all,

mtxrun --generate

helped, now it works.

I actually don’t know why it worked with MkIV before, since with a MWE both 
versions behaved the same: didn’t find the module before regenerating the 
database, and then worked.

Sorry for the noise.

Hraban


> Am 24.02.2021 um 09:32 schrieb Lutz Haseloff :
> 
> Hi Hraban,
> 
> works here as expected.
> See attached log.
> 
> Greetings Lutz
> 
> Am 24. Februar 2021 09:16:30 MEZ schrieb Henning Hraban Ramm :
> Hi, I just stumbled upon this, no time for further checks ATM:
> 
> \usemodule[letter]
> can’t find the installed letter/correspondence module in LMTX mode, while 
> MkIV works flawlessly.
> Don’t know if other modules are affected.
> 
> Hraban


___
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 not found by LMTX

2021-02-24 Thread kaddour kardio
Dear Hraban, as far as I know LMTX doesn't provide the modules , so you
just need to download the needed modules and put them in the proper
directory

Le mer. 24 févr. 2021 à 09:36, Lutz Haseloff 
a écrit :

> Hi Hraban,
>
> works here as expected.
> See attached log.
>
> Greetings Lutz
>
> Am 24. Februar 2021 09:16:30 MEZ schrieb Henning Hraban Ramm <
> te...@fiee.net>:
>>
>> Hi, I just stumbled upon this, no time for further checks ATM:
>>
>> \usemodule[letter]
>> can’t find the installed letter/correspondence module in LMTX mode, while 
>> MkIV works flawlessly.
>> Don’t know if other modules are affected.
>>
>> Hraban
>> --
>> 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
>
> ___
>


-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue  .
___
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 not found by LMTX

2021-02-24 Thread Lutz Haseloff
Hi Hraban,

works here as expected.
See attached log.

Greetings Lutz

Am 24. Februar 2021 09:16:30 MEZ schrieb Henning Hraban Ramm :
>Hi, I just stumbled upon this, no time for further checks ATM:
>
>\usemodule[letter]
>can’t find the installed letter/correspondence module in LMTX mode,
>while MkIV works flawlessly.
>Don’t know if other modules are affected.
>
>Hraban
>___
>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
>___


Brief.log
Description: Binary data
___
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: How to customize reference line?

2018-06-25 Thread Wolfgang Schuster

Hi Paul,

you have to use the \setupletterlayer command to change the entries in 
the reference line.


\usemodule[letter]

\setupletter
  [name={Joe User}]

\setupletterlayer
  [reference]
  [list={name,date}]

\startletter
...
\stopletter


If you don’t get a title for your entry you can add it with the 
\setuplettertext command.


\setuplettertext[de][mobile=Mobilfunknummer]


Wolfgang


Paul Menzel 
24. Juni 2018 um 15:40
Dear ConTeXt folks,


I am trying to customize the reference line in a letter.

```
$ context --version

mtx-context | ConTeXt Process Management 1.01
mtx-context |
mtx-context | main context file: 
/usr/share/texmf/tex/context/base/mkiv/context.mkiv

mtx-context | current version: 2017.05.15 21:48
```

The example from Wolfgang’s `correspondence.pdf` [1] doesn’t work for me.

```
\setupletter
  [name={Joe User},
   date=\currentdate]

\setupletter
  [list={name,date}]
```

Only the date is shown in the reference line.

The solution from chapter 9 also does not work. Still only the date is 
shown.


```
\setupletter
  [name={Joe User},
   date=\currentdate]

\setupletterstyle[reference][list={name,date}]
```

Do I need to create a new customized reference line to add other 
fields next to the date to the reference line?



Kind regards,

Paul


[1]: https://bitbucket.org/wolfs/correspondence/downloads/
___
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
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
___

Re: [NTG-context] letter booklet

2015-01-31 Thread John Kitzmiller

 On Jan 26, 2015, at 4:04 AM, schuster.wolfg...@gmail.com wrote:
 
 Am 25.01.2015 um 23:15 schrieb John Kitzmiller k...@inradius.net 
 mailto:k...@inradius.net:
 
 Desired outcome: a multipage booklet on letter size paper with margins lined 
 up when duplex printed and folded.
 
 Using imposition with [letter][letter,landscape] did not work, so to start I 
 used:
 
 \definepapersize[booklet][width=140mm,height=216mm]
 \setuppapersize[booklet][letter,landscape]
 \setuparranging[2UP,doublesided]
 \setuplayout[width=115mm,
 leftedge=0mm,  
 leftmargin=0mm,
 backspace=15mm,
 rightmargin=0mm,
 rigthedge=0mm]  
 \showframe
 \starttext
 \dorecurse{8}{\input Ward \page}
 \stoptext
 
 but the inside and outside margins do not line up. Where is the elegant path?
 
 1. Set your document doublesided with
 
 \setuppagenumbering[alternative=doublesided]
 
 
 2. Reduce the width of the backspace
 
 \setuplayout[backspace=10mm]

Thank you Wolfgang.

Follow-up question: how to have a right margin appear on the right side of 
every booklet page?

The layouts I have tried with the following mwe put the right margin on the cut 
side of the paper, but that “reverses” the margin side from the reader’s view 
when printed and folded.


\definepapersize[booklet][width=140mm,height=216mm]
\setuppapersize[booklet][letter,landscape]
\setuppagenumbering[alternative=doublesided]
\setuparranging[2UP,doublesided]

\setuplayout[
  width=90mm,
  leftedge=0mm,  
  leftmargin=0mm,
  backspace=15mm,
  rightmargindistaince=3mm,
  rightmargin=25mm,
  ]

\showframe

\starttext
\dorecurse{4}{\input ward \page}
\stoptext



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

Re: [NTG-context] letter booklet

2015-01-25 Thread Wolfgang Schuster

 Am 25.01.2015 um 23:15 schrieb John Kitzmiller k...@inradius.net:
 
 Desired outcome: a multipage booklet on letter size paper with margins lined 
 up when duplex printed and folded.
 
 Using imposition with [letter][letter,landscape] did not work, so to start I 
 used:
 
 \definepapersize[booklet][width=140mm,height=216mm]
 \setuppapersize[booklet][letter,landscape]
 \setuparranging[2UP,doublesided]
 \setuplayout[width=115mm,
  leftedge=0mm,  
  leftmargin=0mm,
  backspace=15mm,
  rightmargin=0mm,
  rigthedge=0mm]  
 \showframe
 \starttext
 \dorecurse{8}{\input Ward \page}
 \stoptext
 
 but the inside and outside margins do not line up. Where is the elegant path?

1. Set your document doublesided with

\setuppagenumbering[alternative=doublesided]


2. Reduce the width of the backspace

\setuplayout[backspace=10mm]


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
___

Re: [NTG-context] Letter module

2014-06-26 Thread Mo Abrahams
Hello again,

I managed to get the backaddress looking how I wanted by reading again
through the main ConTeXt manual. I've also got my letterhead loading as
the page background to some degree like so:

\defineletterelement[layer][lettermain][Stationery]{\externalfigure[letterhead][width=210mm,height=297mm]}

\setupletterlayer
  [lettermain]
  [x=0mm,
   y=0mm,
   alternative=Stationery]

but there seems to be a tiny border around it rather than being flush to
the edges of the page. I've tried other methods using layers and
\setupbackgrounds but they seem to have no effect at all.

Can someone help with that?

I still haven't worked out how to remove the lavel above the date, and
to make matters worse it doesn't seem to be affected by changing the
document language either!

Mo.

On Wed, Jun 25, 2014 at 05:30:56PM +0200, Mo Abrahams wrote:
 Hello,
 
 Is there any updated documentation for the letter/correspondence module? All 
 I can find
 is version 2010.08.27 and I can see from this list that things have
 changed, I just don't know where to find out what.
 
 Also, can anyone tell me how to remove the label above the date, how to
 add a pdf containing my letterheading as the page background, and how to
 add a horizontal line between the backaddress and the toaddress?
 
 For the page background I currently have:
 
 \setupletter[
 backgroundimage={letterhead}
 ]
 
 but it doesn't seem to do anything. I've tried adding the file
 extension.
 
 Thanks,
 
 Mo.
 

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


Re: [NTG-context] letter-module: the first letter is lost

2014-06-25 Thread Wolfgang Schuster

Am 25.06.2014 um 02:42 schrieb Peter Münster pmli...@free.fr:

 Hi,
 
 With latest context, the T is lost:
 
 \usemodule[letter]
 \starttext
 \startletter
 This is a letter.
 \stopletter
 \startletter
 TThis is a workaround.
 \stopletter
 \stoptext

I put a new version online with fixes this, you can avoid the disappearing of 
the first letter by adding a empty line after \startletter.

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
___


Re: [NTG-context] letter module: File ended while scanning use of \buff_gobble

2013-09-01 Thread Peter Münster
On Mon, Mar 04 2013, Wolfgang Schuster wrote:

 \usemodule[letter]

 \startsetups[letter:section:content]
 \getbuffer[MyLetter]
 \stopsetups

 \setuplettersection[content][alternative=setups]

 \def\StartLetter
   {\starttext
\grabbufferdata[MyLetter][StartLetter][StopLetter]}

 \def\StopLetter
   {\placeletter
\stoptext}

 \StartLetter
 \input tufte
 \StopLetter

Thanks Wolfgang.

How could I add something at the start and at the end of the letter?

This does not work:

--8---cut here---start-8---
\def\StartLetter
  {\starttext
   \grabbufferdata[MyLetter][StartLetter][StopLetter]
   something at the start of the letter}

\def\StopLetter
  {something at the end of the letter
   \placeletter
   \stoptext}
--8---cut here---end---8---

TIA for any help,
-- 
   Peter
___
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
___


Re: [NTG-context] letter module: File ended while scanning use of \buff_gobble

2013-09-01 Thread Wolfgang Schuster

Am 01.09.2013 um 13:33 schrieb Peter Münster pmli...@free.fr:

 On Mon, Mar 04 2013, Wolfgang Schuster wrote:
 
 \usemodule[letter]
 
 \startsetups[letter:section:content]
 \getbuffer[MyLetter]
 \stopsetups
 
 \setuplettersection[content][alternative=setups]
 
 \def\StartLetter
  {\starttext
   \grabbufferdata[MyLetter][StartLetter][StopLetter]}
 
 \def\StopLetter
  {\placeletter
   \stoptext}
 
 \StartLetter
 \input tufte
 \StopLetter
 
 Thanks Wolfgang.
 
 How could I add something at the start and at the end of the letter?
 
 This does not work:
 
 --8---cut here---start-8---
 \def\StartLetter
  {\starttext
   \grabbufferdata[MyLetter][StartLetter][StopLetter]
   something at the start of the letter}
 
 \def\StopLetter
  {something at the end of the letter
   \placeletter
   \stoptext}
 --8---cut here---end---8---

\startrawsetups[letter:section:content]

Text before the content of the letter.

\getbuffer[MyLetter]

Text after the content of the letter.

\stoprawsetups

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
___


Re: [NTG-context] letter module: File ended while scanning use of \buff_gobble

2013-03-04 Thread Wolfgang Schuster

Am 04.03.2013 um 14:57 schrieb Peter Münster pmli...@free.fr:

 Hi,
 
 How could I embed \startletter/\stopletter in a macro please?
 
 This does not work:
 
 --8---cut here---start-8---
 \usemodule[letter]
 \def\myStartLetter{\startletter}
 \def\myStopLetter{\stopletter}
 \myStartLetter
 \input tufte
 \myStopLetter
 --8---cut here---end---8---

The module uses a buffer to store the content of the letter environment.

What you can do is to create a new buffer for your environment and feed
the content of this buffer to the letter module.

\usemodule[letter]

\startsetups[letter:section:content]
\getbuffer[MyLetter]
\stopsetups

\setuplettersection[content][alternative=setups]

\def\StartLetter
  {\starttext
   \grabbufferdata[MyLetter][StartLetter][StopLetter]}

\def\StopLetter
  {\placeletter
   \stoptext}

\StartLetter
\input tufte
\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
___


Re: [NTG-context] letter: errors with foot=gbrief

2012-06-10 Thread Wolfgang Schuster

Am 07.06.2012 um 15:23 schrieb Peter Münster:

 Hello,
 
 This file generates some errors:
 
 --8---cut here---start-8---
 \usemodule[letter]
 \setupletterlayer[foot][alternative=gbrief]
 \startletter[phone=123]
 test
 \stopletter
 --8---cut here---end---8---
 
 Workaround:
 
 --8---cut here---start-8---
 \setuplettertext[en][address=Address]
 \setinterfaceconstant {street}{street}
 \setinterfaceconstant {city}  {city}
 \setinterfaceconstant {phone} {phone}
 \setinterfaceconstant {email} {email}
 \setinterfaceconstant {bankname}  {bankname}
 \setinterfaceconstant {banknumber}{banknumber}
 \setinterfaceconstant {accountnumber} {accountnumber}
 --8---cut here---end---8---

I added them but there can be know other problems because I made more changes 
in the labels regarding constants/variables.

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
___


Re: [NTG-context] letter module: error with comment

2012-02-05 Thread Wolfgang Schuster

Am 05.02.2012 um 23:33 schrieb Henning Hraban Ramm:

 Hello Wolfgang,
 
 this was atricky one to track down:
 If in my first line after \startletter I’ve a comment containing another 
 \startletter, I get:

This is a normal behavior of buffers in MkIV, you need always a balanced 
start/stop pair.

The same message arise also with \starttyping:

\starttext

\starttyping
…
%\starttyping
…
\stoptyping

\stoptext

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
___


Re: [NTG-context] letter style error

2011-10-03 Thread Hans Hagen

On 3-10-2011 19:28, Wolfgang Werners-Lucchini wrote:

Puhh,

there is more broken.

With letter style I got

! Undefined control sequence.
l.13 \setupletterstyle
   [option][backaddress=yes]

It is always a risk to update context (never change a running
system).


are you sure the right module is loaded?

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] letter style error

2011-10-03 Thread Wolfgang Schuster

Am 03.10.2011 um 19:28 schrieb Wolfgang Werners-Lucchini:

 Puhh,
 
 there is more broken.
 
 With letter style I got 
 
 ! Undefined control sequence.
 l.13 \setupletterstyle
  [option][backaddress=yes]
 
 It is always a risk to update context (never change a running 
 system).

Is the letter module installed?

There had been a few changes in the context suite (former standalone and 
minimals):

1. modules moved from texmf-context to texmf-modules and
2. the parameter to install modules has changed from “--extras=…” to 
“--modules=…”.

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
___


Re: [NTG-context] Letter module : \enableregime for accents not working within the letter environment

2011-06-20 Thread Hans Hagen

On 20-6-2011 5:31, Wolfgang Schuster wrote:


Am 20.06.2011 um 01:43 schrieb Mathieu Dupont:


Hi,

In the following example, accents between \startletter and \stopletter only are 
not working.

How could this be fixed ?


It depends on Hans because it’s a buffer problem:


Fixed in next beta (for WS: it's more a viafile related problem .. as 
internally we have already utf-8 we need to prevent the current regime 
to be applied again).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Letter module: signature with externalfigure fails

2011-06-19 Thread Christian

Am 19.06.2011 07:48, schrieb luigi scarso:

On Sat, Jun 18, 2011 at 10:34 PM, Christianmeta...@gmx.de  wrote:

In search of what is going wrong, I discovered that even this simple code
fails with context:

\starttext
\externalfigure[cow]
\stoptext

Did I miss something or is this broken?
Btw: Context Minimals on Ubuntu 11.04 32bit.
Log-file attached.

Fix (by Wolfgang)
\ifdefined\dotagfigure \else \let\dotagfigure\relax \fi
\starttext
\externalfigure[cow]
\stoptext



Inserting that line fixes the problem, in both the letter and the normal 
document. I expect that the next beta will fix this, rendering the 
additional line obsolete?


Thank you very much and have a nice day.
___
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
___


Re: [NTG-context] Letter module: signature with externalfigure fails

2011-06-19 Thread luigi scarso
On Sun, Jun 19, 2011 at 1:29 PM, Christian meta...@gmx.de wrote:
 Am 19.06.2011 07:48, schrieb luigi scarso:

 On Sat, Jun 18, 2011 at 10:34 PM, Christianmeta...@gmx.de  wrote:

 In search of what is going wrong, I discovered that even this simple code
 fails with context:

 \starttext
 \externalfigure[cow]
 \stoptext

 Did I miss something or is this broken?
 Btw: Context Minimals on Ubuntu 11.04 32bit.
 Log-file attached.

 Fix (by Wolfgang)
 \ifdefined\dotagfigure \else \let\dotagfigure\relax \fi
 \starttext
 \externalfigure[cow]
 \stoptext


 Inserting that line fixes the problem, in both the letter and the normal
 document. I expect that the next beta will fix this, rendering the
 additional line obsolete?
yes, see recent Wolfgang's answer on
export: graphic within table (error)

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

Re: [NTG-context] Letter module : \enableregime for accents not working within the letter environment

2011-06-19 Thread Wolfgang Schuster

Am 20.06.2011 um 01:43 schrieb Mathieu Dupont:

 Hi,
 
 In the following example, accents between \startletter and \stopletter only 
 are not working.
 
 How could this be fixed ?

It depends on Hans because it’s a buffer problem:

\enableregime[il1]

\starttext

\startbuffer
Montréal
\stopbuffer

Montréal : \getbuffer : \processbuffer

\stoptext

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
___

Re: [NTG-context] Letter module : pdf not created

2011-06-18 Thread Mathieu Dupont


Great, it works now, thank you very much Wolfgang and Mojca !
However, I get 3 dashes in the left margin, one about half-way the paper 
height, one about 2 inches above it and one about 3 inches below it.
No matter what I put in the letter, their positions don't change, and they 
appear on every pages.



Mathieu

 From: schuster.wolfg...@googlemail.com
 Date: Sat, 18 Jun 2011 06:42:35 +0200
 To: ntg-context@ntg.nl
 Subject: Re: [NTG-context] Letter module : pdf not created
 
 
 Am 18.06.2011 um 01:06 schrieb Mojca Miklavec:
 
  On Fri, Jun 17, 2011 at 21:18, Mathieu Dupont wrote:
  
  I just realized I got the following message :
  
  correspondence   your context is too old, you need at last version
  '2009.09.21'
  
  I tested a bit and it seems that
 \doifolderversionelse\contextversion
  is not too reliable.
 
 I noticed this too and uploaded a new version where i removed the version 
 test.
 
 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
 ___
  ___
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
___

Re: [NTG-context] Letter module : pdf not created

2011-06-18 Thread Wolfgang Schuster

Am 18.06.2011 um 14:07 schrieb Mathieu Dupont:

 However, I get 3 dashes in the left margin, one about half-way the paper 
 height, one about 2 inches above it and one about 3 inches below it.
 
 No matter what I put in the letter, their positions don't change, and they 
 appear on every pages.

The three lines are for punching and folding the letter, you can hide them with

\setupletterstyle[marking=no]

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
___

Re: [NTG-context] Letter module: signature with externalfigure fails

2011-06-18 Thread Christian
In search of what is going wrong, I discovered that even this simple 
code fails with context:


\starttext
\externalfigure[cow]
\stoptext

Did I miss something or is this broken?
Btw: Context Minimals on Ubuntu 11.04 32bit.
Log-file attached.

As always: thanks in advance!
(bla.mkiv

ConTeXt  ver: 2011.06.18 14:13 MKIV  fmt: 2011.6.18  int: english/english

system   cont-new.mkiv loaded
(/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   bla.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   bla.mkiv,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=bla.mkiv]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(bla.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/local/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/local/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/local/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsvirtual math  unable to resolve name mapsfromchar
fontsfallback modern rm 12pt is loaded
system   begin file bla.mkiv at line 1
! Undefined control sequence.

system   tex  error on line 3 in file bla.mkiv: Undefined control sequence ...

1 \starttext
2 \externalfigure[cow]
3   \stoptext
4 


\dodoplaceexternalfigure ...][#4][#5]\dotagfigure 
  \naturalvbox attr \imageat...
\doexternalfigure ...value {\??ef \??ef #1}[#3]}}}
  \globallet \currentresourc...
\dotripleemptytwospaced #1#2-#1[{#2}][][]
   
to be read again 
   \stoptext 
l.3 \stoptext
 
? X
mkiv lua stats   used config file  - selfautoparent:texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path   - /usr/local/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606
mkiv lua stats   input load time   - 0.006 seconds
mkiv lua stats   stored bytecode data  - 289 modules, 61 tables, 350 chunks
mkiv lua stats   cleaned up reserved nodes - 30 nodes, 10 lists of 423
mkiv lua stats   node memory usage - 1 hlist, 2 attribute, 21 glue_spec, 1 attribute_list, 1 dir
mkiv lua stats   node list callback tasks  - 6 unique task lists, 2 instances (re)created, 2323 calls
mkiv lua stats   used backend  - pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns   - en::2
mkiv lua stats   callbacks - 2405 direct, 2965 indirect, 5370 total
mkiv lua stats   randomizer- resumed with value 0.54706615700716
mkiv lua stats   result saved in file  - bla.pdf
mkiv lua stats   loaded fonts  - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats   fonts load time   - 0.210 seconds 
mkiv lua stats   graphics processing time  - 0.003 seconds including tex, 1 processed images
mkiv lua stats   luatex banner - this is luatex, version beta-0.70.1-2011051923 (rev 4277)
mkiv lua stats   control sequences - 30575 of 165536
mkiv lua stats   current memory usage  - 27 MB (ctx: 28 MB)
mkiv lua 

Re: [NTG-context] Letter module: signature with externalfigure fails

2011-06-18 Thread luigi scarso
On Sat, Jun 18, 2011 at 10:34 PM, Christian meta...@gmx.de wrote:
 In search of what is going wrong, I discovered that even this simple code
 fails with context:

 \starttext
 \externalfigure[cow]
 \stoptext

 Did I miss something or is this broken?
 Btw: Context Minimals on Ubuntu 11.04 32bit.
 Log-file attached.
Fix (by Wolfgang)
\ifdefined\dotagfigure \else \let\dotagfigure\relax \fi
\starttext
\externalfigure[cow]
\stoptext

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


Re: [NTG-context] Letter module : pdf not created

2011-06-17 Thread Mathieu Dupont


I just realized I got the following message :
correspondence   your context is too old, you need at last version '2009.09.21'
system   forcing quit: correspondence
and I installed the Minimals about a month ago...


Mathieu

From: mathieudup...@hotmail.com
To: ntg-context@ntg.nl
Date: Fri, 17 Jun 2011 14:14:43 -0400
Subject: [NTG-context] Letter module : pdf not created









Hi,
I work with MkIV (ConTeXt Minimals) on a Mac (64).
I just installed the Letter module with :
./first-setup.sh --extras=t-letter

It runs with no error, but no .pdf file is created (in fact, only .log and .tuc 
are created), even though the .log file says :
mkiv lua stats   result saved in file  - Letter.pdf
Could it be due to an intel somewhere in some file of the Letter module that 
I should change for 64 ?
Anyone has an idea, or has encountered the same problem ?
Thanks for any help !

\usemodule[letter]\starttext\startletter\input knuth
\stopletter\stoptext


Mathieu   

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

Re: [NTG-context] Letter module : pdf not created

2011-06-17 Thread Mojca Miklavec
On Fri, Jun 17, 2011 at 21:18, Mathieu Dupont wrote:

 I just realized I got the following message :

 correspondence   your context is too old, you need at last version
 '2009.09.21'

I tested a bit and it seems that
\doifolderversionelse\contextversion
is not too reliable. If I test with TeX Live (2011.05.18) then the following
\doifolderversionelse\contextversion{2011.05.31}{older}{newer}
returns older no matter what day in May I chose.

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

Re: [NTG-context] Letter module : pdf not created

2011-06-17 Thread Wolfgang Schuster

Am 18.06.2011 um 01:06 schrieb Mojca Miklavec:

 On Fri, Jun 17, 2011 at 21:18, Mathieu Dupont wrote:
 
 I just realized I got the following message :
 
 correspondence   your context is too old, you need at last version
 '2009.09.21'
 
 I tested a bit and it seems that
\doifolderversionelse\contextversion
 is not too reliable.

I noticed this too and uploaded a new version where i removed the version test.

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
___


Re: [NTG-context] Letter with letterhead

2011-03-02 Thread Willi Egger
Hi,

though I am using MKIV only, it should also work with MKII

\startsetups[letter:foot]
\setlayer[letter:foot]
[x=4.5mm,y=-2mm]
{... whatever must go in here ...}
\stopsetups

\startsetups[letter:nextfoot]
\setlayer[letter:foot]
[x=4.5mm,y=-2mm]
{... whatever must show up on page 2 and further ...}
\stopsetups

\startsetups[letter:head]
\setlayer[letter:head]
[x=141mm,y=3mm]
{...whatever should be places in the header...}
\stopsetups
\startsetups[letter:nexthead]
\setlayerframed[letter:nexthead]
[x=\dimexpr\textwidth-10mm,y=0mm]
[frame=on,width=10mm,align=flushright]
   {...whatever should be placed in the header after page 
1...}
\stopsetups

Willi

On 1 Mar 2011, at 19:34, Roger Mason wrote:

 Hello,
 
 I must write a multi-page letter with only the first page as
 (pre-printed) letterhead.  I adapted the Letterhead example from the
 wiki to fit the style of my institution.  I would like to know how to
 revert the second and subsequent pages to use a default layout.
 
 If someone know how to use Wolfgang's letter module (in MKII) with
 letterhead on the first page only, that would be fine.
 
 Thanks,
 Roger
 ___
 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
 ___

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


Re: [NTG-context] Letter with letterhead

2011-03-02 Thread Roger Mason
Hello Willi,

Willi Egger w.eg...@boede.nl writes:

 though I am using MKIV only, it should also work with MKII

   \startsetups[letter:foot]
   \setlayer[letter:foot]
   [x=4.5mm,y=-2mm]
   {... whatever must go in here ...}
[snip]

Many  thanks.  Yes, it does work with MKII.

Cheers,
Roher
___
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
___


Re: [NTG-context] letter module, vertical offset of reference line

2010-11-09 Thread Florian Wobbe
On Nov 8, 2010, at 20:53 , Wolfgang Schuster wrote:

 
 Am 31.10.2010 um 11:16 schrieb Florian Wobbe:
 
 Can you make a example where this calculation goes wrong!
 
 Thanks! Of cause, a commented minimal example is attached.
 
 I have two problems and a wish:
 
 1) The reference line and the following subject line are placed too high.
 
 I uploaded a new version where you disable the automatic placement of the 
 reference line and the start of the letter text with
 
  \setupletterstyle[position=no] % default: position=yes
 
 [...]

Great, this works perfectly - thank you!

 3) It would be nice to have a bottomframe for the backaddress field that is 
 not longer than then the text itself.
 
 \setupletterstyle
  [reference][frame]
  [width=fit]

I meant the backaddress frame, though. This works analogously:

\setupletterstyle
  [backaddress][frame]
  [width=fit]

I have only on question left:

\setupletterstyle
  [reference]
  [alternative=e,
list={yourref,yourmail}, % Why is the trailing comma needed?
 % Without it, the reference line
 % vanishes completely.
  ]

Best wishes,
Florian

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


Re: [NTG-context] letter module, vertical offset of reference line

2010-11-09 Thread Wolfgang Schuster

Am 09.11.2010 um 11:09 schrieb Florian Wobbe:

 3) It would be nice to have a bottomframe for the backaddress field that is 
 not longer than then the text itself.
 
 \setupletterstyle
 [reference][frame]
 [width=fit]
 
 I meant the backaddress frame, though. This works analogously:

Just a typo, i wanted the backaddress too.

 \setupletterstyle
  [backaddress][frame]
  [width=fit]
 
 I have only on question left:
 
 \setupletterstyle
  [reference]
  [alternative=e,
list={yourref,yourmail}, % Why is the trailing comma needed?
 % Without it, the reference line
 % vanishes completely.
  ]

A side effect from context how it reads key-val-settings,
the two setting

   \setupfoo[key=value]

and

   \setupfoo[key=value ]

are different. In the first setup the argument for the key
is „value“ while in the second it is „value “ with a space
at the end, because of this you need the comma after
the right brace.

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
___


Re: [NTG-context] letter module, vertical offset of reference line

2010-11-08 Thread Wolfgang Schuster

Am 31.10.2010 um 11:16 schrieb Florian Wobbe:

 Can you make a example where this calculation goes wrong!
 
 Thanks! Of cause, a commented minimal example is attached.
 
 I have two problems and a wish:
 
 1) The reference line and the following subject line are placed too high.

I uploaded a new version where you disable the automatic placement of the 
reference line and the start of the letter text with

  \setupletterstyle[position=no] % default: position=yes

To remove the overlap of the information block and the reference you need the 
following settings in your style:

\setupletterstyle   [position=no]
\setupletterstyle[reference][voffset=11cm]
\setupletterstyle[firstpage][topspace=12cm,bottomspace=4cm]

 2) The footer has not enough space before and after.

The module has no default values for the footer because the din layouts ignore 
the foot but this should work:

\setupletterstyle
  [foot]
  [style=small]

\setupletterstyle
  [foot][layer]
  [voffset=1cm]

\setupletterstyle
  [foot][frame]
  [width=\textwidth,
   height=2.5cm,
   topframe=on]

\startsetups letter:foot
  A custom footer\\that is\\longer than\\three lines\\and misses space before 
and after and has strange linespacing.\par
\stopsetups

 3) It would be nice to have a bottomframe for the backaddress field that is 
 not longer than then the text itself.

\setupletterstyle
  [reference][frame]
  [width=fit]

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
___


Re: [NTG-context] letter module, backaddress placement

2010-11-03 Thread Jonas Stein

 Actually it was not the gap that bothered me. You are right, DIN 676 B says 
 45mm. But this seems to be useless as all window envelopes (that I possess) 
 have their window at 50mm. It defeats the purpose of the backaddress field, 
 which is hidden by the DIN layout. Shouldn't they be able to read it in the 
 Post office in case the addressee is wrong?

i measured one envelope DIN Lang 

+Top
|
|
| 50mm
|
|
+
|
| 45mm Window
|
+
|
| 15mm
|
+Bottom

That fits perfect with Koma scrltr2. I have not (yet) tried
it in Context, but i will soon.

Perhaps we fold the paper different?

kind regards,

-- 
Jonas Stein n...@jonasstein.de

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


Re: [NTG-context] letter module, vertical offset of reference line

2010-10-31 Thread Wolfgang Schuster

Am 31.10.2010 um 09:36 schrieb Florian Wobbe:

 Hi,
 
 I need to adjust the vertical position of the reference line (as well as 
 subject, opening etc.) because the info-block is longer than the 
 addressee-block to the left.
 
 With alternative=customized I can use
  \setupletterstyle [firstpage] [topspace=...]
 
 However with alternative a and e setting topspace has no effect.
 
 Also
  \setupletterstyle [reference] [voffset=...]
 changes the offset for alternative=customized, only.

With the predefined styles for the reference line i ignore the topspace value 
and use a calculated value. This value depends on the bottom of the address 
block and the height of the reference line plus a space be fore and after the 
reference line.

Can you make a example where this calculation goes wrong!

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
___


Re: [NTG-context] letter module, vertical offset of reference line

2010-10-31 Thread Florian Wobbe
On Oct 31, 2010, at 10:11 , Wolfgang Schuster wrote:

 
 Am 31.10.2010 um 09:36 schrieb Florian Wobbe:
 
 Hi,
 
 I need to adjust the vertical position of the reference line (as well as 
 subject, opening etc.) because the info-block is longer than the 
 addressee-block to the left.
 
 With alternative=customized I can use
 \setupletterstyle [firstpage] [topspace=...]
 
 However with alternative a and e setting topspace has no effect.
 
 Also
 \setupletterstyle [reference] [voffset=...]
 changes the offset for alternative=customized, only.
 
 With the predefined styles for the reference line i ignore the topspace value 
 and use a calculated value. This value depends on the bottom of the address 
 block and the height of the reference line plus a space be fore and after the 
 reference line.
 
 Can you make a example where this calculation goes wrong!

Thanks! Of cause, a commented minimal example is attached.

I have two problems and a wish:

1) The reference line and the following subject line are placed too high.

2) The footer has not enough space before and after.

3) It would be nice to have a bottomframe for the backaddress field that is not 
longer than then the text itself.

All the best,
Florian




minidinb.pdf
Description: Adobe PDF document


minidinb.tex
Description: Binary data
___
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
___


Re: [NTG-context] letter module, backaddress placement

2010-10-28 Thread Wolfgang Schuster

Am 28.10.2010 um 19:04 schrieb Florian Wobbe:

 Dear Wolfgang,
 
 the default vertical placement of the backaddress is to high in dinb.nls.

The position of the backaddress os correct but i think you don’t like the large 
gap between the backaddress and the address. The gap is there because it’s 
specified in the german din layout where the address field has nine lines with 
the first three lines reserved for dispatch information, a easy way to get rid 
of this space is to disable the dispatch field with

\setupletterstyle[dispatch=no]

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
___


Re: [NTG-context] letter module, backaddress placement

2010-10-28 Thread Florian Wobbe
On Oct 28, 2010, at 21:11 , Wolfgang Schuster wrote:

 
 Am 28.10.2010 um 19:04 schrieb Florian Wobbe:
 
 Dear Wolfgang,
 
 the default vertical placement of the backaddress is to high in dinb.nls.
 
 The position of the backaddress os correct but i think you don’t like the 
 large gap between the backaddress and the address. The gap is there because 
 it’s specified in the german din layout where the address field has nine 
 lines with the first three lines reserved for dispatch information, a easy 
 way to get rid of this space is to disable the dispatch field with
 
 \setupletterstyle[dispatch=no]

Nice to know!

Actually it was not the gap that bothered me. You are right, DIN 676 B says 
45mm. But this seems to be useless as all window envelopes (that I possess) 
have their window at 50mm. It defeats the purpose of the backaddress field, 
which is hidden by the DIN layout. Shouldn't they be able to read it in the 
Post office in case the addressee is wrong?

Puzzled,
Florian


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


Re: [NTG-context] Letter module and the current beta

2010-06-23 Thread Wolfgang Schuster

Am 23.06.10 13:18, schrieb Andreas Harder:

Hi Wolfgang,

if I use your letter module the compilations stops with the error Undefined control 
sequence. \startmodulecode.

My letter module version is from 04.04.10.

Has something changed?
   


Yes, \startmodulecode was romved from ConTeXt ;)

A fixed it in the module and uploaded a new version.

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


Re: [NTG-context] letter: backaddress

2010-03-28 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang,

 You're mixing different things.
  What is the difference between
 
  \setupletterstyle[option][backaddress=yes]
 
 With \setupletterstyle[element=yes|no] you can show or hide
 elements

ok!

  \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'
 
 The constant needs a content, if there is no content for
 'backadress' the field is filled with 'fromname' and 'fromaddress'.

So let's test if I have understand this:

With

\setupletterstyle[option][backaddress=no|yes]

one can disable|enable a backaddress.

With

\setupletterstyle[backaddress][alternative=no|yes|auto]

one can select between
no backadress|
a composed backaddress from the fromdata|
the yes behaviour if no predefined backaddress is defined

And to define such a own backaddress, one uses

\setlettervalue{backaddress}{something}

Hopefully this is right!

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
___


Re: [NTG-context] letter: backaddress

2010-03-28 Thread Wolfgang Schuster

Am 28.03.10 15:39, schrieb Wolfgang Werners-Lucchini:

And to define such a own backaddress, one uses

\setlettervalue{backaddress}{something}

Hopefully this is right!
   
When you want something which can be used for 
\setupletterstyle[1][alternative=2]
you need \defineletterelement[1][2]{...}, which 
\setlettervalue{A}{B} you set

a variable which can be used with \lettervalue{A}, e.g.

\usemodule[letter]

\defineletterelement[foot][myalternative]{\midaligned{Can you see me?}}

\setupletterstyle[footer][alternative=myalternative]

\setlettervalue{bankleitzahl}{7643}
%\setlettervalue{kontonummer}{}

\starttext \startletter
\lettervalue{bankleitzahl}

\doifelselettervalue{kontonummer}
  {Die Kontonummer lautet \lettervalue{kontonummer}}
  {Keine Kontonummer angegeben}
\stopletter \stoptext

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
___


Re: [NTG-context] letter-module: reference

2010-03-27 Thread Wolfgang Schuster

Am 26.03.10 22:33, schrieb Wolfgang Werners-Lucchini:

1) How can one position this horizontaly and verticaly?
   

Manual: Section 9.3 and 9.7
 

This means, that one has to make a customized reference?
   

Since i have no idea what result do you want the answer is yes.

2) How can I define additional keys like 'taxnumber'?

I have found a key 'frombank' but it is to long for the ref-line and
   

Manual: Chapter 5
 

Sorry, I must have tomatoes on my eyes but I can not find a command
in this chapter which defines a new key. I found \setuplabeltext
which sets the labeltext of a defined key and I found \setlettervalue
which sets label and value at once.
   

Why so complicated, when you include a key in the reference list
the module looks if there is a value or label for this key available
and prints the result.

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
___


Re: [NTG-context] letter: backaddress

2010-03-27 Thread Andreas Schneider
Hello,

Speaking of the letter module ... I don't get any backaddress at all in the 
current minimals. Did something change? The example below used to work.



\usemodule[letter][style=dinb]
\setuppapersize[A4][A4]

\setupletterstyle
  [backaddress]
  [alternative=auto,
   style=\tfxx,
   bottomframe=on]

\setupletter[
  fromname={Sender},
  fromaddress={Sent\\From},
  backaddress={Sender - Address}]

\setupletter[
  toname={Recipient},
  toaddress={Address}]

\setupletter[subject={The Subject}]

\starttext\startletter
Some Text.
\stopletter\stoptext


Best Regards,
Andreas.

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


Re: [NTG-context] letter: backaddress

2010-03-27 Thread Wolfgang Schuster

Am 27.03.10 14:51, schrieb Andreas Schneider:

Hello,

Speaking of the letter module ... I don't get any backaddress at all in the
current minimals. Did something change? The example below used to work.
   

\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

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


Re: [NTG-context] letter: backaddress

2010-03-27 Thread Andreas Schneider
Wolfgang Schuster wrote:

 \setupletterstyle[backaddress=yes]

Ah, that did it! Thank you.

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


Re: [NTG-context] letter: backaddress

2010-03-27 Thread Wolfgang Werners-Lucchini
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
___


Re: [NTG-context] letter: backaddress

2010-03-27 Thread Wolfgang Schuster

Am 27.03.10 17:56, schrieb Wolfgang Werners-Lucchini:

I do not understand the the main principle.
   

You're mixing different things.

What is the difference between

\setupletterstyle[option][backaddress=yes]
   

In t-letter.tex you can fint this:

\startsetups[\v!letter:\v!layer]

  \doif\lsoptionmarking
\v!yes{\directsetup{\v!letter:\v!place:\v!foldmark   }}
  
\doif\lsoptionbackaddress\v!yes{\directsetup{\v!letter:\v!place:\v!backaddress}}
  \doif\lsoptionaddress
\v!yes{\directsetup{\v!letter:\v!place:\v!address}}
  \doif\lsoptionreference  
\v!yes{\directsetup{\v!letter:\v!place:\v!reference  }}
  \doif\lsoptionlocation   
\v!yes{\directsetup{\v!letter:\v!place:\v!location   }}
  \doif\lsoptionlettermain 
\v!yes{\directsetup{\v!letter:\v!place:\v!lettermain }}
  \doif\lsoptionletternext 
\v!yes{\directsetup{\v!letter:\v!place:\v!letternext }}


\stopsetups

With \setupletterstyle[element=yes|no] you can show or hide elements
(like the foldmarks or the backaddress) in the output.

\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'
   

The constant needs a content, if there is no content for 'backadress'
the field is filled with 'fromname' and 'fromaddress'.

\defineletterelements creates a macro, where the first argument is
the name of the elements and the second a name for the alternative,
e.g. \defineletterelement[element][alternative]{definition}

You can use the created element with 
\setupletterstyle[element][alternative=alterntive],

in your case \setupletterstyle[backaddress][alternative=auto]

When you don't like this mechanism you can use the internal
element setups itself with

\startsetups letter:backaddress
...
\stopsetups

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
___


Re: [NTG-context] letter-module: reference

2010-03-26 Thread Wolfgang Schuster

Am 26.03.10 20:49, schrieb Wolfgang Werners-Lucchini:

Hallo,

I am trying to make a simple invoice with Wolfgangs letter-module and
have some questions:

I have the following reference in mind

\setupletterstyle[reference][
alternative=d,
list={invoice,taxnumber,phone,date}]

1) How can one position this horizontaly and verticaly?
   

Manual: Section 9.3 and 9.7

2) How can I define additional keys like 'taxnumber'?

I have found a key 'frombank' but it is to long for the ref-line and
   

Manual: Chapter 5

I will put this in the footer, but

\setupfootertexts[bla][blub]

does not work

3) I have found a variable 'foot'. How can this be used?
   

See question 1.

\defineletterelement[foot][invoice]
  {...}

\setupletterstyle[foot][alternative=invoice]

4) Is it possible to use 'frombank' in other positions than the ref-
line, in the footer per example?
   

\lettervalue{frombank} and \labeltext{letter:frombank}

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
___


Re: [NTG-context] letter-module: reference

2010-03-26 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang,

  I am trying to make a simple invoice with Wolfgangs letter-module
 and
  have some questions:
 
  I have the following reference in mind
 
  \setupletterstyle[reference][
  alternative=d,
  list={invoice,taxnumber,phone,date}]
 
  1) How can one position this horizontaly and verticaly?
 
 Manual: Section 9.3 and 9.7

This means, that one has to make a customized reference?

  2) How can I define additional keys like 'taxnumber'?
 
  I have found a key 'frombank' but it is to long for the ref-line and
 
 Manual: Chapter 5

Sorry, I must have tomatoes on my eyes but I can not find a command 
in this chapter which defines a new key. I found \setuplabeltext 
which sets the labeltext of a defined key and I found \setlettervalue 
which sets label and value at once.

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
___


Re: [NTG-context] letter: backaddress

2010-03-26 Thread Matija Šuklje
Dne sobota 27. marca 2010 ob 00:45:19 je Wolfgang Werners-Lucchini 
napisal(a):
 'backaddress' is composed from 'fromname' and 'fromaddress',
 but this is to long and must be shortend. How can I overwritte
 'backaddress'?

How about 'sender'?


Cheers,
Matija
-- 
 /\  Document Freedom Day- Osvobodi svoje dokumente
_\/` http://documentfreedom.org/ - 31. marec 2010
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.org
___
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
___


Re: [NTG-context] letter: backaddress

2010-03-26 Thread Wolfgang Schuster

Am 27.03.10 00:45, schrieb Wolfgang Werners-Lucchini:

Hallo,

'backaddress' is composed from 'fromname' and 'fromaddress',
but this is to long and must be shortend. How can I overwritte
'backaddress'?
   

\setlettervalue{backaddress}{short address}

or

\startletter[backaddress=...] ... \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
___


Re: [NTG-context] letter module not working

2010-03-25 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang,

  I have problems compiling this with
  ConTeXt  ver: 2010.03.20 22:59 MKIV
  [...]
 
 I can't reproduce this. Can you take a look at the end of the log
 for 
 this information:
 
 correspondence  : t-correspondence.tex: 2010.02.28
 correspondence  : t-letter.tex: 2009.10.10
 correspondence  : default.nli: 2010.02.28
 correspondence  : dinb.nls: 2009.10.07
 correspondence  : default.nls: 2010.02.28
 correspondence  : label.nle: 2009.07.03
 correspondence  : addrentry.nle: 2008.12.26
 correspondence  : dina.nls: 2007.02.11

I forgot how to tell context to produce a verbose log,
but the hint was right. 

I normaly install the letter module in a local tex tree, but have 
made an update before with

call first-setup --extras=t-letter

and this has installed the letter module in the standard tree where 
it was not found.

Sorry for this!

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
___


Re: [NTG-context] letter module not working

2010-03-24 Thread Wolfgang Schuster

Am 24.03.10 09:55, schrieb Wolfgang Werners-Lucchini:

Hallo,

I have problems compiling this with
ConTeXt  ver: 2010.03.20 22:59 MKIV
[...]
   
I can't reproduce this. Can you take a look at the end of the log for 
this information:


correspondence  : t-correspondence.tex: 2010.02.28
correspondence  : t-letter.tex: 2009.10.10
correspondence  : default.nli: 2010.02.28
correspondence  : dinb.nls: 2009.10.07
correspondence  : default.nls: 2010.02.28
correspondence  : label.nle: 2009.07.03
correspondence  : addrentry.nle: 2008.12.26
correspondence  : dina.nls: 2007.02.11

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
___


Re: [NTG-context] Letter Module: backaddress

2009-10-11 Thread Andreas Harder

Hello Wolfgang,

thanks again!

Greetings,
Andreas

Am 10.10.2009 um 09:13 schrieb Wolfgang Schuster:



Am 09.10.2009 um 10:11 schrieb Andreas Harder:

Now one have to care of the width (I think there is no maxwidth- 
option for frame setups?), so I tried to set the backgroundaddress- 
style to style={\ifdim\framedwidth85mm \tfx \else \tfxx \fi}. But  
the problem is, that \framedwidth measures with the default font  
size … Or do you know a solution? ;)


\usemodule[letter]

\setupletterstyle[backaddress=yes]

\defineletterelement[backaddress][size]
 {\setbox\scratchbox\hbox{\tfx\letterelement[backaddress][yes]}%
  \ifdim\wd\scratchbox\framedwidth
\framed[frame=off,bottomframe=on,width=fit]{\tfx\letterelement 
[backaddress][yes]}%

  \else
\framed[frame=off,bottomframe=on,width=fit]{\tfxx\letterelement 
[backaddress][yes]}%

  \fi}

\setupletterstyle[backaddress][alternative=size]

\setupletter
[fromname={Max Mustermann},
  fromaddress={Musterstr. 12\\123456 Musterstadt}]

\setupletter
[toname={Empfänger},
  toaddress={Postfach 123456\\60498 Frankfurt am Main}]

\starttext

\startletter
[opening={Sehr geehrte Damen und Herren,},
  closing={Mit freundlichen Grüßen}]
\input tufte

\stopletter

\setupletter
[fromname={Klaus}]

\startletter
[opening={Sehr geehrte Damen und Herren,},
  closing={Mit freundlichen Grüßen}]
\input tufte
\stopletter

\stoptext

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
___


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


Re: [NTG-context] letter module: different first page for multiple letters in one file

2009-10-10 Thread Wolfgang Schuster


Am 10.10.2009 um 01:48 schrieb Michael Green:

I have one file containing several letters that I process using  
Wolfgang's letter module.


I have a special background for the first page of a letter. I define  
and set three layers: PCLogo, PCDept, and PCAddress. Here is a  
representative example:

\definelayer
 [PCLogo]
 [width=\paperwidth,
  height=\paperheight,
  preset=lefttop,
  y=20pt,
  state=start]

Then I make these layers backgrounds like so:

\setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}]

The result I *get* is that the first letter in the file gets the  
background on its first page as normal. But the subsequent letters  
do not. Their first pages are plain.


The result I *want* is for each letter to have the background on its  
first page, like the first letter in the file gets.


How can I achieve that?


Are your graphics for stationary or logos and headers etc.

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
___


Re: [NTG-context] Letter Module: backaddress

2009-10-10 Thread Wolfgang Schuster


Am 09.10.2009 um 10:11 schrieb Andreas Harder:

Now one have to care of the width (I think there is no maxwidth- 
option for frame setups?), so I tried to set the backgroundaddress- 
style to style={\ifdim\framedwidth85mm \tfx \else \tfxx \fi}. But  
the problem is, that \framedwidth measures with the default font  
size … Or do you know a solution? ;)


\usemodule[letter]

\setupletterstyle[backaddress=yes]

\defineletterelement[backaddress][size]
  {\setbox\scratchbox\hbox{\tfx\letterelement[backaddress][yes]}%
   \ifdim\wd\scratchbox\framedwidth
 \framed[frame=off,bottomframe=on,width=fit]{\tfx\letterelement 
[backaddress][yes]}%

   \else
 \framed[frame=off,bottomframe=on,width=fit]{\tfxx\letterelement 
[backaddress][yes]}%

   \fi}

\setupletterstyle[backaddress][alternative=size]

\setupletter
 [fromname={Max Mustermann},
   fromaddress={Musterstr. 12\\123456 Musterstadt}]

\setupletter
 [toname={Empfänger},
   toaddress={Postfach 123456\\60498 Frankfurt am Main}]

\starttext

\startletter
 [opening={Sehr geehrte Damen und Herren,},
   closing={Mit freundlichen Grüßen}]
\input tufte

\stopletter

\setupletter
 [fromname={Klaus}]

\startletter
 [opening={Sehr geehrte Damen und Herren,},
   closing={Mit freundlichen Grüßen}]
\input tufte
\stopletter

\stoptext

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
___


Re: [NTG-context] letter module: different first page for multiple letters in one file

2009-10-10 Thread Wolfgang Schuster


Am 10.10.2009 um 01:48 schrieb Michael Green:

I have one file containing several letters that I process using  
Wolfgang's letter module.


I have a special background for the first page of a letter. I define  
and set three layers: PCLogo, PCDept, and PCAddress. Here is a  
representative example:

\definelayer
 [PCLogo]
 [width=\paperwidth,
  height=\paperheight,
  preset=lefttop,
  y=20pt,
  state=start]

Then I make these layers backgrounds like so:

\setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}]

The result I *get* is that the first letter in the file gets the  
background on its first page as normal. But the subsequent letters  
do not. Their first pages are plain.


The result I *want* is for each letter to have the background on its  
first page, like the first letter in the file gets.


It's the normal behavior of layers to forget their content after
the first usage but there are mechanism to store it and reuse
the saved settings multiple times.

\usemodule[letter]

\definelayer[PC][width=\paperwidth,height=\paperheight]

\startsetups PC

\setlayer[PC][y=20pt]{...}

\setlayer[PC][x=..,y=..]{...}

\stopsetups

\setupletterstyle[lettermain][setups=PC,background=PC]

... % more settings

\starttext

\startletter
...
\stopletter

... % more letters

\stoptext

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
___


Re: [NTG-context] letter module: different first page for multiple letters in one file

2009-10-10 Thread Michael Green

On Oct 10, 2009, at 3:00 AM, Wolfgang Schuster wrote:


Am 10.10.2009 um 01:48 schrieb Michael Green:


I have one file containing several letters that I process using
Wolfgang's letter module.

I have a special background for the first page of a letter. I define
and set three layers: PCLogo, PCDept, and PCAddress. Here is a
representative example:
\definelayer
 [PCLogo]
 [width=\paperwidth,
  height=\paperheight,
  preset=lefttop,
  y=20pt,
  state=start]

Then I make these layers backgrounds like so:

\setupletterstyle[lettermain][background={PCLogo,PCDept,PCAddress}]

The result I *get* is that the first letter in the file gets the
background on its first page as normal. But the subsequent letters
do not. Their first pages are plain.

The result I *want* is for each letter to have the background on its
first page, like the first letter in the file gets.

How can I achieve that?


Are your graphics for stationary or logos and headers etc.

Wolfgang




I'm trying to emulate my college's stationery. The layers I made  
include one graphic and two boxes of text.


We use the graphic and two text boxes on the first page of a letter.  
The other pages use plain sheets of paper.


You also showed me how to get the effect I want in a separate  
message. This solution worked perfectly. Thank you very much!


The solution:


\usemodule[letter]

\definelayer[PC][width=\paperwidth,height=\paperheight]

\startsetups PC

\setlayer[PC][y=20pt]{...}

\setlayer[PC][x=..,y=..]{...}

\stopsetups

\setupletterstyle[lettermain][setups=PC,background=PC]

... % more settings

\starttext

\startletter
...
\stopletter

... % more letters

\stoptext



As I understand it,  \setupletterstyle[lettermain][setups=PC,…] means  
that those setups are repeated with every letter. Hence, the desired  
effect.


Thanks again!

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


Re: [NTG-context] Letter Module: backaddress

2009-10-09 Thread Andreas Harder


Am 09.10.2009 um 06:45 schrieb Wolfgang Schuster:


When I think about the default setup this would make more sense:

\setupletterstyle[backaddress=no]
\setupletterstyle[backaddress][alternative=auto]

WHat do you think?


I think it would be more intuitive that way.

One more question: it would be nice if the rule under the back- 
address would have the same length an the back-addres. Is there a  
convenient way? I tried something with \textbackgrounds (example  
below) but without success.


\setupletterstyle
 [backaddress]
 [frame]
 [width=fit]


Thank you! I tried to set width=fit, but without the frame-option …  
Now one have to care of the width (I think there is no maxwidth-option  
for frame setups?), so I tried to set the backgroundaddress-style to  
style={\ifdim\framedwidth85mm \tfx \else \tfxx \fi}. But the problem  
is, that \framedwidth measures with the default font size … Or do you  
know a solution? ;)


Bit by bit I get an idea of how to customize the letter-module settings.

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


Re: [NTG-context] Letter Module: backaddress

2009-10-09 Thread Wolfgang Schuster


Am 09.10.2009 um 10:11 schrieb Andreas Harder:


When I think about the default setup this would make more sense:

\setupletterstyle[backaddress=no]
\setupletterstyle[backaddress][alternative=auto]

WHat do you think?


I think it would be more intuitive that way.


I will change this then in the next release, you could then enable the  
backaddress with \setupletterstyle[backaddres=yes]


One more question: it would be nice if the rule under the back- 
address would have the same length an the back-addres. Is there a  
convenient way? I tried something with \textbackgrounds (example  
below) but without success.


\setupletterstyle
 [backaddress]
 [frame]
 [width=fit]


Thank you! I tried to set width=fit, but without the frame-option …  
Now one have to care of the width (I think there is no maxwidth- 
option for frame setups?),


autowidth=force

so I tried to set the backgroundaddress-style to style={\ifdim 
\framedwidth85mm \tfx \else \tfxx \fi}. But the problem is, that  
\framedwidth measures with the default font size … Or do you know a  
solution? ;)


Let me think about this (no time at the moment).

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
___


Re: [NTG-context] Letter Module: backaddress

2009-10-08 Thread Andreas Harder

Hello Wolfgang,

thank you for your explanations!

One more question: it would be nice if the rule under the back-address  
would have the same length an the back-addres. Is there a convenient  
way? I tried something with \textbackgrounds (example below) but  
without success.


% from the wiki:
\startuseMPgraphic{underline}
  \iftracepositions
show_multi_pars
  \else
draw_multi_pars
  \fi ;
  path p ; p := boundingbox currentpicture ;
  currentpicture := currentpicture shifted (0,-StrutDepth/3) ;
  setbounds currentpicture to p ;
\stopuseMPgraphic

\definetextbackground
  [underline]
  [location=text,alternative=1,background=underline,frame=off]

\setupletterstyle
  [backaddress]
  [alternative=yes,
  before={\starttextbackground[underline]},
  after=\stoptextbackground]


Andreas

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


Re: [NTG-context] Letter Module: backaddress

2009-10-08 Thread Wolfgang Schuster


Am 09.10.2009 um 01:24 schrieb Andreas Harder:


Hello Wolfgang,

thank you for your explanations!


When I think about the default setup this would make more sense:

\setupletterstyle[backaddress=no]
\setupletterstyle[backaddress][alternative=auto]

WHat do you think?

One more question: it would be nice if the rule under the back- 
address would have the same length an the back-addres. Is there a  
convenient way? I tried something with \textbackgrounds (example  
below) but without success.


\setupletterstyle
  [backaddress]
  [frame]
  [width=fit]

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
___


Re: [NTG-context] Letter Module: Foldmarks

2009-10-07 Thread Wolfgang Schuster


Am 07.10.2009 um 22:20 schrieb Andreas Schneider:


Hi,

for some time now, I try to figure out, how to enable fold marks in  
the

letter module.


Fold marks are enabled by default but there was a bug in the code, I  
uploaded a new release.


There are different ways to enable and disable all of them, the  
'marking' key could be used
to hide all of them (making=no) but you can also disable certain ones  
with the individual name,

the default setup is:

\setupletterstyle
  [marking=yes, % enable all marks
   topmark=yes,
   botmatk=yes,
   cutmark=yes, % vertical middle of the paper for cutting
   endmark=no, % relict from typewriter time to indicate the end of  
the paper

   usermark=no] % no purpose, could be used for whatever you want

For letters with more than one page it is sometimes usefull to show  
the marks only on
the first page or for doublesided letters (it's possible but who  
want's this) you can

control this with (multiple values can be given as argument to state):

  \setupletterstyle
[markname]
[state=start|stop|first|next|left|right|leftpage|rightpage]

  start : show mark on the first page
  stop  : disable mark
  first : show mark on the first page
  next  : show mark on the second and all following pages
  left  : show mark only on left pages
  right : show mark only on right pages
  leftpage  : show mark only on left pages
  rightpage : show mark only on right pages

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
___


Re: [NTG-context] Letter Module: Foldmarks

2009-10-07 Thread Andreas Schneider
On Wed, 7 Oct 2009 23:19:13 +0200
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote:

 
 Fold marks are enabled by default but there was a bug in the code, I  
 uploaded a new release.
 

Wow, thank you for that very quick fix! It works fine now.
Also thanks for these great explanations and tips; you should really
add them to the manual, they can save lives ;-)

Best regards,
Andreas.

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


Re: [NTG-context] letter module: Argument of \dodoubletestempty has an extra }

2009-09-20 Thread Wolfgang Schuster

Hi Peter,

the message you get is a side effect of the buffer code for mkii,
although i have a fix for the context code it won't be applied because
unwanted side effects can't be be guaranteed.

As you should have noticed your example worked in a older release
where i used a different method to store the letter content which
was changed due to some limitations (e.g. \startlines is not possible).

You can force the old processing method with \setupletterstyle 
[method=store].


Other solutions are to add \relay after \startletter because this stops
contexts optional argument grabber or to leave a blank line after  
\startletter.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter-module

2009-09-17 Thread Hans Hagen

Andreas Harder wrote:

Hi,

with the actual beta the compilation of a simple letter stops with:

Undefined control sequence.
\defineblankmethod[\v!nobreak] {\penalty\plustenthousand}
(in default.nli, line 707

\usemodule[letter]
\starttext
\startletter
  Hello World
\stopletter
\stoptext


\let\defineblankmethod\definevspacingamount


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter-module

2009-09-17 Thread Andreas Harder


Am 17.09.2009 um 16:03 schrieb Hans Hagen:


Andreas Harder wrote:

Hi,
with the actual beta the compilation of a simple letter stops with:
Undefined control sequence.
\defineblankmethod[\v!nobreak] {\penalty\plustenthousand}
(in default.nli, line 707
\usemodule[letter]
\starttext
\startletter
 Hello World
\stopletter
\stoptext


\let\defineblankmethod\definevspacingamount


Thanks! I was close to it …

By the way, please look at

\setuplayout[grid=yes]
\starttext  \showgrid
\dorecurse{100}{\input tufte \par }
\stoptext

Page one seems okay, but then the grid try to escape … ;)

Greetings,
Andreas
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter-module

2009-09-17 Thread Hans Hagen

Andreas Harder wrote:


Am 17.09.2009 um 16:03 schrieb Hans Hagen:


Andreas Harder wrote:

Hi,
with the actual beta the compilation of a simple letter stops with:
Undefined control sequence.
\defineblankmethod[\v!nobreak] {\penalty\plustenthousand}
(in default.nli, line 707
\usemodule[letter]
\starttext
\startletter
 Hello World
\stopletter
\stoptext


\let\defineblankmethod\definevspacingamount


Thanks! I was close to it …

By the way, please look at

\setuplayout[grid=yes]
\starttext  \showgrid
\dorecurse{100}{\input tufte \par }
\stoptext

Page one seems okay, but then the grid try to escape … ;)


grid typesetting will be reimplmented so i'm not going to repair old 
grid code


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-07-03 Thread Henning Hraban Ramm

Am 2009-07-02 um 15:56 schrieb Wolfgang Schuster:

I'd like to change the reference table of alternative e a little  
bit to fit my logo:


voffset=130mm, % absolute coordinates
hoffset=40mm,
width=20mm, % width of label

It doesn't work in \setupletterstyle[reference][].
Where must I put it?
Or should I define my own alternative, like yours in default.nli ?


The alternatives a–e are not so easy to move to the place you prefer  
because
the start of the bodytext depends on the position (I try to keep  
always two lines
between them) but you can copy the layout of one element to another  
one with


 \copyletterlement[element][new alternative][old alternative]

which looks for you

 \copyletterelement[reference][hraban][e]

You can now place the reference line with

 \setupletterstyle
   [reference]
   [hoffset=...,
voffset=...]

and the width of the elements in the reference line with

 \setupletter
   [phone,street,...]
   [width=20mm]


Thank you! Offset works, width doesn't (i.e. stays automatical).

BTW: I'm using your simplefonts module for the first time in the  
same project - works great, thank you!
(I had to refresh my font database several times, until LuaTeX  
could find all faces of my font family, but that's not your  
module's fault.)


mtxrun --script fonts --list --pattern=... helps to find the right  
name.


I know, it's in the wiki (Fonts_in_LuaTeX). Thanks anyway.


BTW: You can another example for the use of the simplefonts module
in the source of the correspondence manual (correspondence- 
environment.tex).


Just wanted to ask if you published the source anywhere - didn't check  
the source tree before...

Now I have enough examples for the moment, I think ;-)



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-07-03 Thread Wolfgang Schuster


Am 02.07.2009 um 15:56 schrieb Wolfgang Schuster:


I'm only writing letters in one language at a time, so will others.
It was only a suggestion to take the key as label as a fallback -  
mostly it will be easy enough, and you don't need to define a  
proper label.


I have to check if this can be done (in a good way) and if I like  
this fallback method.


I had now time to think about and my answer is I won't support
keys in \setupletter as label names because it did not produce
the output I expect but what I can do is to modify the \setlettervalue
command in the following way.

\usemodule[letter]

\def\setlettervalue#1{\dodoubleempty\dosetlettervalue[#1]}

\unprotected\def\dosetlettervalue[#1][#2]#3%
  {\ifsecondargument
 \setuplabeltext[\currentmainlanguage][letter:#1=#2]%
   %\else
   %  \setuplabeltext[\currentmainlanguage][letter:#1=#1]%
   \fi
   \setvalue{\ld#1}{#3}}

% \setlettervalue{key}{value}
% \setlettervalue{key}[labeltext]{value}

\starttext

\setupletterstyle[reference][list={durchwahl,raum,misc,date}]

\setlettervalue{durchwahl}[Durchwahl]{/123456789}
\setlettervalue{raum}{1. Stock Zimmer 21}
\setlettervalue{misc}[]{another entry}

\startletter
\input ward
\stopletter

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-07-03 Thread Wolfgang Schuster


Am 03.07.2009 um 13:07 schrieb Henning Hraban Ramm:


Am 2009-07-02 um 15:56 schrieb Wolfgang Schuster:

I'd like to change the reference table of alternative e a little  
bit to fit my logo:


[...]


Thank you! Offset works, width doesn't (i.e. stays automatical).


Do you want to change the width of the complete reference line  
(\setupletterstyle)

or the width of the entries (\setupletter)?

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-07-02 Thread Wolfgang Schuster


Am 01.07.2009 um 22:33 schrieb Henning Hraban Ramm:


Am 2009-06-29 um 18:38 schrieb Wolfgang Schuster:

I don't think line is documented in your manual.

You're right but it's so boring to write documentation.


;-)
You don't need to write it step by step like in your manual, but a  
reference of options would be really helpful!


The step by step method is only used to know how to write a simple  
letter,
I won't use this to explain the option etc., what I want there are  
examples

for predefined and user created element alternatives.

I wrote: You need need to define all possible labels yourself, as  
long it's comprehensible how to add your own.


I will add a section for this but if a label is useful I want to add  
it to the core.



I'm only writing letters in one language at a time, so will others.
It was only a suggestion to take the key as label as a fallback -  
mostly it will be easy enough, and you don't need to define a proper  
label.


I have to check if this can be done (in a good way) and if I like this  
fallback method.



So, here we are:
I'd like to change the reference table of alternative e a little  
bit to fit my logo:


voffset=130mm, % absolute coordinates
hoffset=40mm,
width=20mm, % width of label

It doesn't work in \setupletterstyle[reference][].
Where must I put it?
Or should I define my own alternative, like yours in default.nli ?


The alternatives a–e are not so easy to move to the place you prefer  
because
the start of the bodytext depends on the position (I try to keep  
always two lines
between them) but you can copy the layout of one element to another  
one with


  \copyletterlement[element][new alternative][old alternative]

which looks for you

  \copyletterelement[reference][hraban][e]

You can now place the reference line with

  \setupletterstyle
[reference]
[hoffset=...,
 voffset=...]

and the width of the elements in the reference line with

  \setupletter
[phone,street,...]
[width=20mm]

BTW: I'm using your simplefonts module for the first time in the  
same project - works great, thank you!
(I had to refresh my font database several times, until LuaTeX could  
find all faces of my font family, but that's not your module's fault.)


mtxrun --script fonts --list --pattern=... helps to find the right name.

BTW: You can another example for the use of the simplefonts module
in the source of the correspondence manual (correspondence- 
environment.tex).


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-07-01 Thread Henning Hraban Ramm

Am 2009-06-29 um 18:38 schrieb Wolfgang Schuster:

I don't think line is documented in your manual.

You're right but it's so boring to write documentation.


;-)
You don't need to write it step by step like in your manual, but a  
reference of options would be really helpful!



Id wouldbe great if you'd also add the label stuff below!

The keys street, city and skype aren't defined in your module.
There is *no* predefined keys (except line in the reference line)  
for \setupletter in my module.

Ok, in the manual it looks like.

You mean because I use always the same keys and all of them work?


Indeed.

I don't think it would make sense to add my personal preferences to  
the module, just please document this.


E.g. there are just too much IM services to provide them all; I  
myself use Address as label for the street and add the city  
without label, Web instead of URL as label for my homepage etc.


I added the missing label from your example to my module, let me  
know what you think

about the labels but 'Address' as label for 'street' is a no go.


As I wrote: You need need to define all possible labels yourself, as  
long it's comprehensible how to add your own.


BTW: Most of the previous labels are taken from scrlttr2, when you  
want always your
own texts you can make a file with the name 'user.nls' and change  
the label text

to your own style.


Of course. At the moment I'm happy with defining it in my environment.

Ok; I wrote the capital intentionally for my suggestion of using  
the key as label.

Makes no sense because you need then different keys for each language,
e.g. telefonnumer=...


I'm only writing letters in one language at a time, so will others.
It was only a suggestion to take the key as label as a fallback -  
mostly it will be easy enough, and you don't need to define a proper  
label.


More questions will follow... I'll try to get my logo at the  
right place by myself before...


The module provides a few layers you can use to position your  
graphic.


I saw that in the manual and wanted to try it on my own first - but  
thank you very much!


The problem is the module use hard coded background layers and the  
only option

to place logos etc. is to use them.


So, here we are:
I'd like to change the reference table of alternative e a little bit  
to fit my logo:


voffset=130mm, % absolute coordinates
hoffset=40mm,
width=20mm, % width of label

It doesn't work in \setupletterstyle[reference][].
Where must I put it?
Or should I define my own alternative, like yours in default.nli ?

BTW I tried to come up with measures for Swiss business letters,  
but only found some advise for secretaries how to write addresses: http://home.intergga.ch/beck/wg/awi/schreibregeln/4_Briefe.pdf

My typographical literature is only about Germany.
Most swiss business letters are sent in B5 envelopes with a window  
on the right side - I could meter some right looking Swiss  
letters if you'd like.

Sounds good.


Isn't forgotten.


BTW: I'm using your simplefonts module for the first time in the same  
project - works great, thank you!
(I had to refresh my font database several times, until LuaTeX could  
find all faces of my font family, but that's not your module's fault.)



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-07-01 Thread Henning Hraban Ramm

Am 2009-07-01 um 22:33 schrieb Henning Hraban Ramm:

As I wrote: You need need to define all possible labels yourself, as  
long it's comprehensible how to add your own.


Sorry, I meant: You DON'T need to...

Greetlings, Hraban

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-06-29 Thread Henning Hraban Ramm

Am 2009-06-28 um 23:12 schrieb Henning Hraban Ramm:

I guess it would be interesting how to define your own keys, maybe  
some IM adresses etc., also for other users.

Would it be possible to use unknown keys just unchanged? I.e. if I say

\setupletter[
Skype={fiee.visuelle}
]

to get just Skype: fiee.visuelle?


More questions will follow... I'll try to get my logo at the right  
place by myself before...



I found a simple workaround (but would prefer a clean general solution):

\setupletter[skype][
separator={Skype:}
]



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-06-29 Thread Wolfgang Schuster


Am 28.06.2009 um 23:12 schrieb Henning Hraban Ramm:


Hallo Wolfgang! ;-)

Since my old letter and CV environment doesn't work anymore in MkIV,  
I'm trying to reproduce it with t-letter.


At the moment I struggle with the reference keys:

\setupletterstyle[reference][
alternative=d,
list={name,street,city,,phone,skype,email,,date},
]


Interesting way to insert empty lines, I never thought about this method
and use myself the special key 'line' to insert a empty line.


\setupletter[name,street,phone,date,skype,email][
separator={: },
titlestyle={\ss\tfxx},
]

The keys street, city and skype aren't defined in your module.


There is *no* predefined keys (except line in the reference line) for  
\setupletter in my module.


I found where the other keys are defined (and I guess I could mine  
in or use a similar approach in my environment), but I'm clueless,  
where the translation comes from - I grepped eg. after Telefon  
without results, and I think I looked into every file of your module.


I guess it would be interesting how to define your own keys, maybe  
some IM adresses etc., also for other users.

Would it be possible to use unknown keys just unchanged? I.e. if I say


I don't define keys in my module, I set only labels for the text in  
the left column
which can be find in the file 'label.nle', to get a text for skype,  
street etc. put
the following lines in your document (or add them to label.nle and  
send me the extended

list):

\setuplabeltext[de][letter:skype=Skype]
\setuplabeltext[de][letter:street=Stra\ssharp e]
\setuplabeltext[de][letter:city=Ort] % or Stadt ...
...


\setupletter[
Skype={fiee.visuelle}
]

to get just Skype: fiee.visuelle?


TeX is case sensitive, write 'skype=fiee.visuelle.

More questions will follow... I'll try to get my logo at the right  
place by myself before...


The module provides a few layers you can use to position your graphic.

\setupletterstyle
  [lettermain]
  [hoffset=..cm,
   voffset=..cm,
   symbol={\externalfigure[...]},
   state=repeat] % repeat=place on each page, start=only on first  
page, ...


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-06-29 Thread Henning Hraban Ramm

Am 2009-06-29 um 11:51 schrieb Wolfgang Schuster:

\setupletterstyle[reference][
alternative=d,
list={name,street,city,,phone,skype,email,,date},
]


Interesting way to insert empty lines, I never thought about this  
method

and use myself the special key 'line' to insert a empty line.


Woo, I found an accidental feature! ;-)
I don't think line is documented in your manual.
Id wouldbe great if you'd also add the label stuff below!


The keys street, city and skype aren't defined in your module.
There is *no* predefined keys (except line in the reference line)  
for \setupletter in my module.


Ok, in the manual it looks like.

the following lines in your document (or add them to label.nle and  
send me the extended

list):

\setuplabeltext[de][letter:skype=Skype]
\setuplabeltext[de][letter:street=Stra\ssharp e]
\setuplabeltext[de][letter:city=Ort] % or Stadt ...
...


Thank you!
I don't think it would make sense to add my personal preferences to  
the module, just please document this.


E.g. there are just too much IM services to provide them all; I myself  
use Address as label for the street and add the city without label,  
Web instead of URL as label for my homepage etc.



\setupletter[
Skype={fiee.visuelle}
]

to get just Skype: fiee.visuelle?


TeX is case sensitive, write 'skype=fiee.visuelle.


Ok; I wrote the capital intentionally for my suggestion of using the  
key as label.


More questions will follow... I'll try to get my logo at the right  
place by myself before...


The module provides a few layers you can use to position your graphic.


I saw that in the manual and wanted to try it on my own first - but  
thank you very much!



BTW I tried to come up with measures for Swiss business letters, but  
only found some advise for secretaries how to write addresses: http://home.intergga.ch/beck/wg/awi/schreibregeln/4_Briefe.pdf

My typographical literature is only about Germany.
Most swiss business letters are sent in B5 envelopes with a window on  
the right side - I could meter some right looking Swiss letters if  
you'd like.



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)



PGP.sig
Description: Signierter Teil der Nachricht
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter/correspondence module

2009-06-29 Thread Wolfgang Schuster


Am 29.06.2009 um 17:31 schrieb Henning Hraban Ramm:


Am 2009-06-29 um 11:51 schrieb Wolfgang Schuster:

\setupletterstyle[reference][
alternative=d,
list={name,street,city,,phone,skype,email,,date},
]


Interesting way to insert empty lines, I never thought about this  
method

and use myself the special key 'line' to insert a empty line.


Woo, I found an accidental feature! ;-)


I would consider this as a ConTeXt feature.


I don't think line is documented in your manual.


You're right but it's so boring to write documentation.


Id wouldbe great if you'd also add the label stuff below!

The keys street, city and skype aren't defined in your module.
There is *no* predefined keys (except line in the reference line)  
for \setupletter in my module.


Ok, in the manual it looks like.


You mean because I use always the same keys and all of them work?

the following lines in your document (or add them to label.nle and  
send me the extended

list):

\setuplabeltext[de][letter:skype=Skype]
\setuplabeltext[de][letter:street=Stra\ssharp e]
\setuplabeltext[de][letter:city=Ort] % or Stadt ...
...


Thank you!
I don't think it would make sense to add my personal preferences to  
the module, just please document this.


E.g. there are just too much IM services to provide them all; I  
myself use Address as label for the street and add the city  
without label, Web instead of URL as label for my homepage etc.


I added the missing label from your example to my module, let me know  
what you think

about the labels but 'Address' as label for 'street' is a no go.

BTW: Most of the previous labels are taken from scrlttr2, when you  
want always your
own texts you can make a file with the name 'user.nls' and change the  
label text

to your own style.


\setupletter[
Skype={fiee.visuelle}
]

to get just Skype: fiee.visuelle?


TeX is case sensitive, write 'skype=fiee.visuelle.


Ok; I wrote the capital intentionally for my suggestion of using the  
key as label.


Makes no sense because you need then different keys for each language,
e.g. telefonnumer=...

More questions will follow... I'll try to get my logo at the right  
place by myself before...


The module provides a few layers you can use to position your  
graphic.


I saw that in the manual and wanted to try it on my own first - but  
thank you very much!


The problem is the module use hard coded background layers and the  
only option

to place logos etc. is to use them.

BTW I tried to come up with measures for Swiss business letters, but  
only found some advise for secretaries how to write addresses: http://home.intergga.ch/beck/wg/awi/schreibregeln/4_Briefe.pdf

My typographical literature is only about Germany.
Most swiss business letters are sent in B5 envelopes with a window  
on the right side - I could meter some right looking Swiss letters  
if you'd like.


Sounds good.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter module - appendices

2009-02-17 Thread Peter Münster
On Sun, 15 Feb 2009, Wolfgang Schuster wrote:

 \CC{...} % or \copy{...}
 \PS{...} % or \postscript{...}

No problem for me neither, but be careful with name-clashes: perhaps, Hans
will add macros \copy or \postscript in the future.
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter module - appendices

2009-02-17 Thread Willi Egger

Dear Wolfgang,

I use your module voor an association. I have no problem if you  
change the CC and PS part.


Kind regards

Willi
On Feb 15, 2009, at 10:30 PM, Wolfgang Schuster wrote:


Hi,

I know at least a few people use my letter module and I want to ask
them if they have a problem when I change the handling of appendices
like CC and postscript.

The current way to write them is

\startletter
  [copy=...,
   postscript=...]
...
\stopletter

and I want to change this in

\startletter
...
\CC{...} % or \copy{...}
\PS{...} % or \postscript{...}
\stopletter

As positive side effect of the new method would be to write

\startletter
\opening{...}
...
\closing{...}
\stopletter

as a alternative way to write the opening and closing text (the old  
keyval

works too) but the appendices can be only handled in one way.

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  : https://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter module - appendices

2009-02-17 Thread Wolfgang Schuster


Am 17.02.2009 um 11:24 schrieb Peter Münster:


\CC{...} % or \copy{...}
\PS{...} % or \postscript{...}


No problem for me neither, but be careful with name-clashes:  
perhaps, Hans

will add macros \copy or \postscript in the future.
Cheers, Peter


I will use now \ps, \cc and \encl. I already dropped \copy because TeX
has a \copy primitive and both conflict with longer letter (1 pages).

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter module - appendices

2009-02-17 Thread Wolfgang Schuster

Hi,

I uploaded a new version with the appendices handling, here is a  
example how
to use them. All of them are optional and will appear in the output in  
the

order you write them in the text.

\usemodule[letter]

\starttext

\startletter

\input knuth

% To get a prefix for the postscript write 'PS:' in the text
% or use a labeltext, e.g. \setuplabeltext[en][letter:postscript=PS: ]

\ps{Postscript}

\cc{List of recipients}

\encl{Enclosed documents}

\stopletter

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module: no linebreak in signature

2008-11-19 Thread Wolfgang Schuster

Am 19.11.2008 um 02:54 schrieb Michael Green:

 \setuppapersize[letter][letter]

 Do you need lettersize for all your letters?


 Yes, I have to use US lettersize paper (8.5 inches x 11 inches) for
 the physical paper on which my letters are printed. For long letters,
 I use a narrower textarea, but I don't think that's what you're
 asking me.

You can write the setting for the paper size in a new file with
the namer user.nls and put it somewhere in your TeX directory
where ConTeXt could find it. It's similiar to cont-usr.tex because
my module loads for every letter you write.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module: no linebreak in signature

2008-11-19 Thread Michael Green
Wolfgang Schuster wrote:

 You can write the setting for the paper size in a new file with
 the namer user.nls and put it somewhere in your TeX directory
 where ConTeXt could find it. It's similiar to cont-usr.tex because
 my module loads for every letter you write.


Ah, I see. That's an interesting feature. Thanks!

Michael

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module: no linebreak in signature

2008-11-18 Thread Wolfgang Schuster

Am 18.11.2008 um 17:47 schrieb Michael Green:

 Using Wolfgang Schuster's wonderful letter module, I enter my
 signature with my name and title like so:

 \setupletter[signature={Michael Green \\ Assistant Professor of
 Philosophy}]

 This used to produce a line break between Green and Assistant so
 the output would look like this:

 Michael Green
 Assistant Professor of Philosophy

 But it no longer does. Now it comes out like this:

 Michael Green  Assistant Professor of Philosophy

 Is there a preferred way to accomplish the effect I want?

I uploaded a new version, if you have no time update for
the moment use \crlf as replacement.

 Thanks!

 Michael

 --  Example  

 ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/
 english

 \setuppapersize[letter][letter]

Do you need lettersize for all your letters?

 \usemodule[letter][style=semiblock]
 \setupletter[%
  closing={Sincerely yours,},
  signature={Michael Green \\ Assistant Professor of Philosophy},
  date=\currentdate
 ]

 \setupletter[%
  opening={To the Addressee,},
 ]

 \starttext

 \startletter

 Here is the content of the letter.
 \stopletter
 \stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module: no linebreak in signature

2008-11-18 Thread Michael Green

On Nov 18, 2008, at 10:46 AM, Wolfgang Schuster wrote:


 Am 18.11.2008 um 17:47 schrieb Michael Green:

 Using Wolfgang Schuster's wonderful letter module, I enter my
 signature with my name and title like so:

 \setupletter[signature={Michael Green \\ Assistant Professor of
 Philosophy}]

 This used to produce a line break between Green and Assistant so
 the output would look like this:

 Michael Green
 Assistant Professor of Philosophy

 But it no longer does. Now it comes out like this:

 Michael Green  Assistant Professor of Philosophy

 Is there a preferred way to accomplish the effect I want?

 I uploaded a new version, if you have no time update for
 the moment use \crlf as replacement.


Wow, that was incredibly fast. Thank you very much! The new version  
works as I expected.


 --  Example  

 ConTeXt  ver: 2008.11.10 21:40 MKIV  fmt: 2008.11.17  int: english/
 english

 \setuppapersize[letter][letter]

 Do you need lettersize for all your letters?


Yes, I have to use US lettersize paper (8.5 inches x 11 inches) for  
the physical paper on which my letters are printed. For long letters,  
I use a narrower textarea, but I don't think that's what you're  
asking me.

Thanks again.

Michael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter module béta

2008-10-14 Thread Wolfgang Schuster
On Sat, Oct 11, 2008 at 8:27 PM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Hello everybody, hello Wolfgang,

 Since I've needed to typeset some letters I'd test the last béta letter 
 module.
 The result is realy great (the signature is a the right place).

 I'd just need to use
 \setuplabeltext[fr][letter:enclosure={P.J.\,:\kern\spaceamount},letter:subject=Objet\,:
 ]
 in order to have the right traductions for « subject ».

You could save private settings you need in every letter in the file user.nls
(I included user.ori as example) and save it in your TeX directory where
ConTeXt could find the file.

 Some small things :
 — changing the interligne space dont change it in the « fromaddress »

\setupletterstyle[head][top={\setupinterlinespace[line=...]}]

or

\startsetups head:interlinespace

\setupinterlinespace[line=...]
% more settings

\stopsetups

\setupletterstyle[head][setups={head:interlinespace}]

 — why can't I put all the \setupletter in the same section ? for exemple :
 \setupletter
  [place=Paris]
  [place]
  [separator={, le }]

 don't work, and I need to use :

 \setupletter
  [place=Paris]

 \setupletter
  [place]
  [separator={, le }]

\setupletter
 [place=Paris,
  placeseparator={, le }]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module

2008-08-14 Thread Roger Mason
Hi Wolfgang,

Wolfgang Schuster [EMAIL PROTECTED] writes:

 On Wed, Aug 13, 2008 at 3:34 PM, Roger Mason [EMAIL PROTECTED] wrote:
 Hello,

 I just downloaded the letter module and installed it by unzipping the
 t-letter.zip file into /usr/local/context_minimal/.

 When I try a test letter:

 \usemodule[letter]

 \starttext
 \startletter
  It is raining again.
 \stopletter
 \stoptext

 context fails with:

 systems : system commands are enabled
 system  : module letter not found
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.tex
 loading : Context Sorting Macros (languages)
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.mkii))
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/pdfr-def.tex)
 systems : begin file ltrtest at line 3
 ! Undefined control sequence.
 l.4 \startletter

 ?

 The log file tells me

 ConTeXt ver: 2007.08.08 14:35 MKII fmt: 2008.5.6 int:
 english/english

 This is on a Gentoo Linux system.

 Update the file database with 'mktexlsr' or 'texhash'.


texhash: Updating /usr/local/context_minimal/tex/texmf/ls-R... 
texhash: Updating /usr/local/context_minimal/tex/texmf-extra/ls-R... 
texhash: Updating /usr/local/context_minimal/tex/texmf-fonts/ls-R... 
texhash: Updating /usr/local/context_minimal/tex/texmf-linux/ls-R... 
texhash: Updating /usr/local/context_minimal/tex/texmf-local/ls-R... 
texhash: Done.

Unfortunately that did not fix it.  I get the exact same error.

Thanks for your help.

Roger
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module

2008-08-14 Thread Wolfgang Schuster
On Thu, Aug 14, 2008 at 12:02 PM, Roger Mason [EMAIL PROTECTED] wrote:
 Hi Wolfgang,

 Wolfgang Schuster [EMAIL PROTECTED] writes:

 On Wed, Aug 13, 2008 at 3:34 PM, Roger Mason [EMAIL PROTECTED] wrote:
 Hello,

 I just downloaded the letter module and installed it by unzipping the
 t-letter.zip file into /usr/local/context_minimal/.

 When I try a test letter:

 \usemodule[letter]

 \starttext
 \startletter
  It is raining again.
 \stopletter
 \stoptext

 context fails with:

 systems : system commands are enabled
 system  : module letter not found
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.tex
 loading : Context Sorting Macros (languages)
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.mkii))
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/pdfr-def.tex)
 systems : begin file ltrtest at line 3
 ! Undefined control sequence.
 l.4 \startletter

 ?

 The log file tells me

 ConTeXt ver: 2007.08.08 14:35 MKII fmt: 2008.5.6 int:
 english/english

 This is on a Gentoo Linux system.

 Update the file database with 'mktexlsr' or 'texhash'.


 texhash: Updating /usr/local/context_minimal/tex/texmf/ls-R...
 texhash: Updating /usr/local/context_minimal/tex/texmf-extra/ls-R...
 texhash: Updating /usr/local/context_minimal/tex/texmf-fonts/ls-R...
 texhash: Updating /usr/local/context_minimal/tex/texmf-linux/ls-R...
 texhash: Updating /usr/local/context_minimal/tex/texmf-local/ls-R...
 texhash: Done.

 Unfortunately that did not fix it.  I get the exact same error.

Unzip the archive either in '/usr/local/context_minimal/tex/texmf-local/'
or in in the local TeX tree in your home folder.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module

2008-08-14 Thread Roger Mason
Hi Wolfgang  Mojca,

Wolfgang Schuster [EMAIL PROTECTED] writes:

and

Mojca Miklavec [EMAIL PROTECTED] writes:

 On Wed, Aug 13, 2008 at 3:34 PM, Roger Mason [EMAIL PROTECTED] wrote:
 Hello,

 I just downloaded the letter module and installed it by unzipping the
 t-letter.zip file into /usr/local/context_minimal/.


 Unzip the archive either in '/usr/local/context_minimal/tex/texmf-local/'
 or in in the local TeX tree in your home folder.

Thank you both very much.  It is working now.  I should learn to read
log files more attentively.

Best wishes,
Roger
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] letter module

2008-08-13 Thread Wolfgang Schuster
On Wed, Aug 13, 2008 at 3:34 PM, Roger Mason [EMAIL PROTECTED] wrote:
 Hello,

 I just downloaded the letter module and installed it by unzipping the
 t-letter.zip file into /usr/local/context_minimal/.

 When I try a test letter:

 \usemodule[letter]

 \starttext
 \startletter
  It is raining again.
 \stopletter
 \stoptext

 context fails with:

 systems : system commands are enabled
 system  : module letter not found
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.tex
 loading : Context Sorting Macros (languages)
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/sort-lan.mkii))
 (/usr/local/context_minimal/tex/texmf-local/tex/context/base/pdfr-def.tex)
 systems : begin file ltrtest at line 3
 ! Undefined control sequence.
 l.4 \startletter

 ?

 The log file tells me

 ConTeXt ver: 2007.08.08 14:35 MKII fmt: 2008.5.6 int:
 english/english

 This is on a Gentoo Linux system.

Update the file database with 'mktexlsr' or 'texhash'.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter backaddress

2008-07-09 Thread Wolfgang Schuster
On Fri, Jul 4, 2008 at 9:02 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Thu, Jul 3, 2008 at 5:12 PM, Oliver Buerschaper
 [EMAIL PROTECTED] wrote:
 I could support name=yes and alike but I can't drop the
 \setupletter[list=...] because you need it to define your own
 reference
 line with personalized elements, e.g. your working in a company
 a put a sign for the letter there plus the number of the office etc.

 I'm sorry, didn't think of that. It makes sense, of course.


 Another possibility would be removing the backaddress=yes switch
 completely. Then if backaddress data is supplied it's printed along
 with the line below and if not, well, then leave out the separator
 line.

 What do you think?

 Have you tried what will happen with a enabled backaddress and
 no value for backaddress, fromname and fromaddress are shown
 as backaddress but I don't rely on this feature and change it to
 waht you suggested.

 I've just tried this quickly and this seems even better … then what
 about removing the option backaddress=yes from \setupletterstyle
 and provide a key auto for backaddress in \setupletter? Thus:

 I don't remove backaddress from \setupletterstyle because each layer
 has a boolean switch and I don't want a backaddress on my letters.

 1. No backaddress line

 \setupletter
[fromname={Arthur Thor},
 fromaddress={Hidden Street 2\\57895 Mysterytown}]

 2. backaddress line generated from sender information

 \setupletter
[fromname={Arthur Thor},
 fromaddress={Hidden Street 2\\57895 Mysterytown},
 backaddress=auto]

 3. Custom backaddress

 \setupletter
[fromname={Arthur Thor},
 fromaddress={Hidden Street 2\\57895 Mysterytown},
 backaddress={Thor Inc., Mystery Street 5, 59875 Hidden Town}]

 I uploaded a new release with the option yes, auto and no for the
 backaddress key, yes and auto use fromname and fromaddress,
 no sets no backaddress and you can write a cutomized backaddress
 with anything else as content for the backaddress key.

I will move this option in the next relase from \setupletter[backaddress=...]
to \setupletterstyle[backaddress][option][alternative=...] because it works
also with normal text as argument for \setupletter[backaddress=...].

Regards
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter: address field

2008-07-09 Thread Wolfgang Schuster
On Tue, Jul 8, 2008 at 3:29 PM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Tue, Jul 8, 2008 at 2:49 PM, Oliver Buerschaper
 [EMAIL PROTECTED] wrote:
 Dear Wolfgang,

 is it possible to centre the text block in the address field
 vertically? At the moment the address is typeset with a constant
 vertical offset (measured from the top) which causes lengthy address
 data to look slightly off balance …

 Try the following settings. The names can change.

 \setupletterstyle
  [address][dispatch]
  [height=0pt]

 \setupletterstyle
  [address][content]
  [location=normal,
   align={right,lohi},
   height=\vsize]

I put a new version online and names changed, the setups is now:

\setupletterstyle
  [dispatch]
  [height=0pt]

or

\setupletterstyle
  [option]
  [dispatch=no]

and

\setupletterstyle
  [addressee]
  [location=normal,
   align={right,lohi},
   height=\vsize]

Regards
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter backaddress

2008-07-09 Thread Olivier Guéry
Hello,
Sorry for this « silly » question but where can I download the last
version of the letter module ?
The contextgarden page¹ is empty… and I can't find anything on pragma.ade

Olivier (another one still searching for true rules for french letter
style, I'll add them on the frenchpunctuation² page…)

[1] http://wiki.contextgarden.net/Letter
[2] http://wiki.contextgarden.net/frenchpunctuation

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter backaddress

2008-07-09 Thread Wolfgang Schuster
On Wed, Jul 9, 2008 at 9:51 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Hello,
 Sorry for this « silly » question but where can I download the last
 version of the letter module ?
 The contextgarden page¹ is empty… and I can't find anything on pragma.ade

http://modules.contextgarden.net/letter
http://wolfgang.schuster.googlepages.com/letter

 Olivier (another one still searching for true rules for french letter
 style, I'll add them on the frenchpunctuation² page…)

You can add your information to [1].

AFAIK there is no official letter style in france. I started to write I style
a  based on the lettre class for LaTeX but it's no finished and it's better
to let user decide what layout thex want.

 [1] http://wiki.contextgarden.net/Letter
 [2] http://wiki.contextgarden.net/frenchpunctuation

I tried myself to find information about letter in france.

http://www.anglaisfacile.com/pages/mie/1lettre.php
http://www.mdeduchinonais.fr/contenu.php?id_noeud=57id=11
http://www.aide-emploi.net/moti.htm
http://french.about.com/library/weekly/aa111000.htm
http://www.ctan.org/tex-archive/macros/latex/contrib/lettre/
http://www.la-lettre.com/

Regards,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter backaddress

2008-07-09 Thread Olivier Guéry
2008/7/9 Wolfgang Schuster [EMAIL PROTECTED]:
 On Wed, Jul 9, 2008 at 9:51 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Hello,
 Sorry for this « silly » question but where can I download the last
 version of the letter module ?
 The contextgarden page¹ is empty… and I can't find anything on pragma.ade

 http://modules.contextgarden.net/letter
 http://wolfgang.schuster.googlepages.com/letter

Thank's. I put this links to the « garden » with a warning. Are you ok
with this ?
http://wiki.contextgarden.net/Letter

O.


-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter backaddress

2008-07-09 Thread Wolfgang Schuster
On Wed, Jul 9, 2008 at 10:18 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
 2008/7/9 Wolfgang Schuster [EMAIL PROTECTED]:
 On Wed, Jul 9, 2008 at 9:51 AM, Olivier Guéry [EMAIL PROTECTED] wrote:
 Hello,
 Sorry for this « silly » question but where can I download the last
 version of the letter module ?
 The contextgarden page¹ is empty… and I can't find anything on pragma.ade

 http://modules.contextgarden.net/letter
 http://wolfgang.schuster.googlepages.com/letter

 Thank's. I put this links to the « garden » with a warning. Are you ok
 with this ?
 http://wiki.contextgarden.net/Letter

Accepted.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter: address field

2008-07-08 Thread Wolfgang Schuster
On Tue, Jul 8, 2008 at 2:49 PM, Oliver Buerschaper
[EMAIL PROTECTED] wrote:
 Dear Wolfgang,

 is it possible to centre the text block in the address field
 vertically? At the moment the address is typeset with a constant
 vertical offset (measured from the top) which causes lengthy address
 data to look slightly off balance …

Try the following settings. The names can change.

\setupletterstyle
  [address][dispatch]
  [height=0pt]

\setupletterstyle
  [address][content]
  [location=normal,
   align={right,lohi},
   height=\vsize]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Letter backaddress

2008-07-04 Thread Wolfgang Schuster
On Thu, Jul 3, 2008 at 5:19 PM, Oliver Buerschaper
[EMAIL PROTECTED] wrote:
 Have you tried what will happen with a enabled backaddress and
 no value for backaddress, fromname and fromaddress are shown
 as backaddress but I don't rely on this feature and change it to
 waht you suggested.


 I've just tried this quickly and this seems even better … then what
 about removing the option backaddress=yes from \setupletterstyle
 and provide a key auto for backaddress in \setupletter? Thus:

 1. No backaddress line

 \setupletter
   [fromname={Arthur Thor},
fromaddress={Hidden Street 2\\57895 Mysterytown}]

 2. backaddress line generated from sender information

 \setupletter
   [fromname={Arthur Thor},
fromaddress={Hidden Street 2\\57895 Mysterytown},
backaddress=auto]

 3. Custom backaddress

 \setupletter
   [fromname={Arthur Thor},
fromaddress={Hidden Street 2\\57895 Mysterytown},
backaddress={Thor Inc., Mystery Street 5, 59875 Hidden Town}]

 In this case there would be no need for name=yes etc.

\usemodule[letter]

\starttext

\setupletter
  [list={name,date},
   name={Oliver Buerschaper}]

\startletter
\input knuth
\stopletter

\stoptext

Regards,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   >