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
___


[NTG-context] Letter module not found by LMTX

2021-02-24 Thread 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: 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
___

[NTG-context] letter: How to customize reference line?

2018-06-25 Thread Paul Menzel

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/
\usemodule[letter][extension=optimize]

\mainlanguage[de]

\setupletterstyle
  [option]
  [whitespace=line,
   optimize=yes,
   ]

\setupletter
  [toname={Vodafone Kabel Deutschland GmbH},
   toaddress={Kundenservice\\99116 Erfurt}]

\setupletter
  [fromname={Hanna Musterfrau},
   fromaddress={Irgendwostr. 18\\9 Nirgendwo}]

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

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

\starttext

\setupletter
  [subject={Reason},
   opening={Sehr geehrte Damen und Herren,},
   closing={Freundliche Grüße},
   signature={Paul Menzel}]

\startletter\relax
\dorecurse{4}{\input ward\par}
\stopletter

\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://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
___

[NTG-context] Letter module: Subject below opening

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

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

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

Best,

Parchd.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Letter module and letterhead

2016-09-28 Thread Roger Mason
Hello,

Is it possible to use the letter module with letterhead?  If so, is
there an exaple somewhere?

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
___

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
___

[NTG-context] letter booklet

2015-01-25 Thread John Kitzmiller
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?

Thanks, John

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

[NTG-context] Letter module

2014-06-26 Thread Mo Abrahams
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.

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


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

2014-06-24 Thread Peter Münster
Hi,

With latest context, the T is lost:

\usemodule[letter]
\starttext
\startletter
This is a letter.
\stopletter
\startletter
TThis is a workaround.
\stopletter
\stoptext

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


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

2013-03-04 Thread Peter Münster
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---

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


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

2012-06-07 Thread 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---

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


[NTG-context] letter module: error with comment

2012-02-05 Thread 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:


\stoptext
! File ended while scanning use of \buff_gobble.

system   tex  error on line 0 in file : File ended while  
scanning use of \buff_gobble ...


empty file

inserted text
\par


Minimal failing example:


\usemodule[letter]

\starttext

\startletter[subject={context}]
%\startletter

\input dawkins

\stopletter

\stoptext



Greetlings, 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  : 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
___


[NTG-context] Letter module: new beta

2011-11-15 Thread Wolfgang Schuster
Hi all,

I have a new version of the letter module on my bitbucket site [1],
you can download [2] and test it but it requires mkiv and is not
completely downward compatible with the current version.

Here is a short example to test it:

\usemodule[cor-01] % will change

%\setupletteroptions
%  [bodyfont=calluna]

\setupletter
  [fromname={John Simmons},
   fromaddress={Parkstreet 12\\8257 Green Bay}]

\setupletter
  [toname={Steve Wilson},
   toaddress={Nightstreet 4a\\9183 Cotton Village}]

\setuplettertext
  [copy=cc: ,
   enclosure=encl: ]

\setupletter
  [copy=Copy,
   enclosure=Enclosure,
   postscript=Postscript]

\startletter
  [opening={Dear Mr Wilson,},
   subject={Brand new templates for Word},
   closing={Best regards},
   signature={John Simmons}]

\dorecurse{4}{\input knuth\par}

\stopletter

[1] https://bitbucket.org/wolfs/correspondence/src
[2] https://bitbucket.org/wolfs/correspondence/downloads

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
___


[NTG-context] letter style error

2011-10-03 Thread 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).

:-(((

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
___

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

2011-06-19 Thread Mathieu Dupont


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

\usemodule[letter]
\enableregime[il1]
\setupletterstyle[reference][list=reference]\setupletter[reference=\leftaligned{Montréal}]
\setupletter[   fromname={Montréal},fromaddress={Montréal}, 
toname={Montréal},  toaddress={Montréal},   subject={Montréal}, 
opening={Montréal}, closing={Montréal}, signature={Montréal},   ]
\starttext
Montréal
\startletter
(startletter)
Montréal Montréal Montréal Montréal
(stopletter)
\stopletter
Montréal
\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
___

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
___

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

2011-06-18 Thread Christian

Hello List,

I tried to include a signature (tried pdf, svg, png, shipped pictures) 
in my letter and it always fails.

Example taken from correspondence.pdf Version 2010.08.27:

\usemodule[letter]
\setupletter[signature={\externalfigure[cow][height=2\lineheight]}]
\starttext
\startletter
Thus, I came to the conclusion ...
\stopletter
\stoptext

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

[...]
!  == Fatal error occurred, no output PDF file produced!
mtx-context | fatal error: return code: 1

Latest ConTeXt version, updated today because of the other version too 
old bug in the letter module.


Kind regards
Christian
___
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
___


[NTG-context] Letter module : pdf not created

2011-06-17 Thread Mathieu Dupont


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
___

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
___


[NTG-context] Letter with letterhead

2011-03-01 Thread Roger Mason
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
___


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
___


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

2010-10-31 Thread 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.

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


[NTG-context] letter module, backaddress placement

2010-10-28 Thread Florian Wobbe
Dear Wolfgang,

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

When I change the offset from

 
\c!voffset=\dimexpr\letterstylevalue{\v!address\v!layer}\c!voffset-\letterstylevalue{\v!backaddress\v!frame}\c!height\relax]

to

 
\c!voffset=\dimexpr\letterstylevalue{\v!address\v!layer}\c!voffset+\letterstylevalue{\v!backaddress\v!frame}\c!height\relax]

(addition instead of subtraction) everything is fine.

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


[NTG-context] [letter module][PATCH] README: Small fixes

2010-08-28 Thread Paul Menzel
# HG changeset patch
# User Paul Menzel paulepan...@users.sourceforge.net
# Date 1283005270 -7200
# Node ID 10976ddb02cf82c8f9c0f38f2781b88899ba6f25
# Parent  87eb31149c15526932996b88d3ef34c86b6638a0
README: Small fixes.

• Use full stops to end sentences and do not enumerate them separate them using 
commas.
• Please note that a new line was inserted at the end when I made the 
corrections using GEdit.

diff -r 87eb31149c15 -r 10976ddb02cf files/README
--- a/files/README  Sat Aug 28 15:17:17 2010 +0200
+++ b/files/README  Sat Aug 28 16:21:10 2010 +0200
@@ -6,10 +6,10 @@
 The letter module provides a environment to write private
 and business letters.
 
-Style files are responsible for the layout of the letter,
-the command \setupletterstyle could be used to change the
+Style files are responsible for the layout of the letter.
+The command \setupletterstyle can be used to change the
 default to own preferences.
 
-Besides the default interface another two are include in
-the bundle, you have to load either with the module or in
-the document with \useletterinterface.
\ No newline at end of file
+Besides the default two additional interfaces are included in
+the bundle. You have to load them either with the module or in
+the document with \useletterinterface.



signature.asc
Description: This is a digitally signed message part
___
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
___


[NTG-context] [letter module][PATCH] default.nli: Small corrections of comments of alternatives for references fields

2010-08-28 Thread Paul Menzel
# HG changeset patch
# User Paul Menzel paulepan...@users.sourceforge.net
# Date 1283006290 -7200
# Node ID 939ade0cc0c470135c5103fe75603cfbb25e4476
# Parent  10976ddb02cf82c8f9c0f38f2781b88899ba6f25
default.nli: Small corrections of comments of alternatives for references 
fields.

diff -r 10976ddb02cf -r 939ade0cc0c4 files/default.nli
--- a/files/default.nli Sat Aug 28 16:21:10 2010 +0200
+++ b/files/default.nli Sat Aug 28 16:38:10 2010 +0200
@@ -18,15 +18,15 @@
 \ifdefined\letter!height!reference \else \newdimen\letter!height!reference \fi
 
 %D We come now to the new macros defined in this file, they are meant to place 
the
-%D information about date, phone number and more information. You could select 
on of
+%D information about date, phone number and more information. You can select 
one of
 %D the alternatives with \type{\setupletter[alternative=...]}.
 %D 
 %D I define here only what I need myself but you're free to define your own
-%D alternatives but try to avoid to use the same names as I do. You could also 
send
+%D alternatives but try to avoid to use the same names as I do. You can also 
send
 %D me your alternatives and I will include them.
 %D 
-%D This is the first alternative a, it use the values from the style file 
without any
-%D change, this is the normal layout for a DIN letter.
+%D This is the first alternative a. It uses the values from the style file 
without any
+%D changes. This is the normal layout for a DIN letter.
 
 \long\def\doformatreferencelista#1%
   {\def\\{\egroup\hbox\bgroup}%
@@ -73,9 +73,9 @@
 
 \stopsetups
 
-%D This is the alternative b, you could use it if you want to place the 
information
-%D in a infoblock not just a simple line, it is also better suited if you want 
to
-%D place more infomration.
+%D This is the alternative b, you can use if you want to place the information
+%D in an infoblock and not just in a simple line. It is also better suited if 
you want to
+%D include more information.
 
 \long\def\formatreferencelistb#1%
   {\bgroup
@@ -111,7 +111,7 @@
 
 \stopsetups
 
-%D The third alternative c could used, if you want to place just a single line
+%D The third alternative c can be used, if you want to place just a single line
 %D with text and nothing more, like your place and the date. You need only the
 %D following two lines in your document.
 %D 
@@ -141,7 +141,7 @@
 
 \stopsetups
 
-%D Alternative d, text is placed in a block like alternative bit the text
+%D Alternative d places the text in a block like alternative b, but the text
 %D is put in a table.
 
 \long\def\doformatreferencelistd#1%
@@ -189,7 +189,7 @@
 
 \stopsetups
 
-%D Alternative e, nearly the same as a but you can control the width of the
+%D Alternative e is nearly the same as a but you can control the width of the
 %D fields with the width key for \tex{setupletter}.
 
 \long\def\doformatreferenceliste#1%
@@ -223,7 +223,7 @@
 
 \stopsetups
 
-%D The alternative \mono{none} could be used to disable the reference.
+%D The alternative \mono{none} can be used to disable the reference.
 %D 
 %D The advantage is to change only the list alternative to nothing, another
 %D method to get this result to use alternative c and remove all values from




signature.asc
Description: This is a digitally signed message part
___
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
___


[NTG-context] Letter module and the current beta

2010-06-23 Thread 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?

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


[NTG-context] letter: backaddress

2010-03-26 Thread 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'?

Gruß, 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
___


[NTG-context] letter module not working

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

I have problems compiling this with
ConTeXt  ver: 2010.03.20 22:59 MKIV
--
% coding: utf-8
\usemodule[letter][style=dina]
\mainlanguage[deo]
\enableregime[utf-8]

\setupletter
[fromname={\tfa Wolfgang Werners-Lucchini},
 subject={Blub}]

\starttext
\startletter
bla
\stopletter
\stoptext
-

error message:

system  : module letter loaded
systems : begin file brief2.tex at line 10
! Missing number, treated as zero.
to be read again 
   \relax 
l.6 }
 
\dovspacingyes ...ument #1\else \s!default \fi )}
  \fi 
\dosetcorrespondencesection ... {#2}{#3}\c!after }
   \endgraf \endgroup 

\@@su:letter:place:content ...ection [\v!content ]
  \executeifdefined 
{\v!lett...
\next1 #1,-\doflushlettersection {#1}
  \doprocesscommaitem 
...
l.13 \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-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
___


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

2009-10-09 Thread 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?

Thank you!
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
___


[NTG-context] Letter Module: backaddress

2009-10-08 Thread Andreas Harder

Hi,

now that the foldmarks work … how to set the backaddress?

\usemodule[letter]

\setupletterstyle
  [option]
  [backaddress=yes]

\setupletterstyle
  [backaddress]
  [bottomframe=on]

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


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


[NTG-context] Letter Module: Foldmarks

2009-10-07 Thread Andreas Schneider
Hi,

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

I tried:
\setupletterstyle
  [option]
  [marking=on,
   foldmark=yes,
   cutmark=yes]

All three of them didn't seem to do anything.

How are fold marks supposed to be set? Or is this currently not
possible at all?

Thanks in advance,
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: 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
___


[NTG-context] letter module

2009-09-21 Thread Wolfgang Schuster

Hi all,

I uploaded a new version of the letter module that deals with the recent
changes in the MkIV spacing model, as a result of this you need todays
beta (2009.09.21) or later.

For MkII users this message is unimportant because the changes don't  
affect

them and older installations can be used without problems, if there are
problems report them and I will fix it.

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
___


[NTG-context] letter module: Missing number, treated as zero.

2009-09-20 Thread Peter Münster
Hello,

Here a minimal test file, to reproduce the problem with latest MKIV:

\let\defineblankmethod\definevspacingamount
\usemodule[letter]
\starttext
\startletter
  Test.
\stopletter
\stoptext

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
___


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

2009-09-20 Thread Peter Münster
Hello,

Here a minimal test file, to reproduce the problem with latest MKII:

% engine=pdftex
\usemodule[letter]
\starttext
\startletter
\subject{Test}
hello
\stopletter
\stoptext

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


[NTG-context] letter-module

2009-09-17 Thread Andreas Harder

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


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:

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
___


  1   2   >