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
___________________________________________________________________________________

Reply via email to