* Letterhead Usage
@ 2015-04-30 18:46 henman
2015-05-01 9:09 ` Pablo Rodriguez
2015-05-01 9:24 ` Wolfgang Schuster
0 siblings, 2 replies; 3+ messages in thread
From: henman @ 2015-04-30 18:46 UTC (permalink / raw)
To: ConTeXt Typesetting
I have created a letterhead for correspondence, but it is too unfriendly
to have to include it in every time.
I would like to use it as a package, but don't know if it's possible.
The problem I see is that the command \setlayer must be done after the
\starttext command.
If it doesn't then formatting commands such as \sc will not take affect
and I believe a different font is also applied.
What would be a user friendly way to implement letterheads (made up
using the layers functionality of context?
Thanks
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Letterhead Usage
2015-04-30 18:46 Letterhead Usage henman
@ 2015-05-01 9:09 ` Pablo Rodriguez
2015-05-01 9:24 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2015-05-01 9:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 04/30/2015 08:46 PM, henman wrote:
> I have created a letterhead for correspondence, but it is too unfriendly
> to have to include it in every time.
>
> I would like to use it as a package, but don't know if it's possible.
>
> The problem I see is that the command \setlayer must be done after the
> \starttext command.
> If it doesn't then formatting commands such as \sc will not take affect
> and I believe a different font is also applied.
>
> What would be a user friendly way to implement letterheads (made up
> using the layers functionality of context?
Hi,
could you provide a minimal sample that shows the issues you’re
experiencing?
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Letterhead Usage
2015-04-30 18:46 Letterhead Usage henman
2015-05-01 9:09 ` Pablo Rodriguez
@ 2015-05-01 9:24 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2015-05-01 9:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 30.04.2015 um 20:46 schrieb henman <dhenman@gmail.com>:
>
>
> I have created a letterhead for correspondence, but it is too unfriendly to have to include it in every time.
>
> I would like to use it as a package, but don't know if it's possible.
>
> The problem I see is that the command \setlayer must be done after the \starttext command.
> If it doesn't then formatting commands such as \sc will not take affect and I believe a different font is also applied.
>
> What would be a user friendly way to implement letterheads (made up using the layers functionality of context?
You can put the layer settings in a setups environment and flush the content when the page backgrounds are applied
with the setups key for \setupbackground.
\definelayer[letterhead][width=\paperwidth,height=\paperheight]
\startsetups[letterhead]
\ifnum\rawcountervalue[userpage]=1
\setlayerframed[letterhead][x=\backspace,y=1cm][width=\textwidth,height=2cm,align={middle,lohi}]{First page}
\else
\setlayerframed[letterhead][x=\backspace,y=1cm][width=\textwidth,height=2cm,align={middle,lohi}]{Second page}
\fi
\stopsetups
\setupbackgrounds[page][background=letterhead,setups=letterhead]
\starttext
\dorecurse{3}{\page[empty]}
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-01 9:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-30 18:46 Letterhead Usage henman
2015-05-01 9:09 ` Pablo Rodriguez
2015-05-01 9:24 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).