* top layer / numbered layers?
@ 2010-07-02 8:35 Henning Hraban Ramm
2010-07-02 8:42 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Henning Hraban Ramm @ 2010-07-02 8:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
While I wait for a solution of the mtxrun error, another question:
I know how to use layers or overlays as backgrounds. How can I get a
layer *above* the "normal" text plane?
say...
\definelayer[PageTop][x=0mm,y=0mm,width=\paperwidth,height=
\paperheight,repeat=yes]
\setupforegrounds[page][background=PageTop]
\setlayer[PageTop][hoffset=10mm, voffset=10mm]{%
\externalfigure[koe][with=40mm]}
I just found that \framed knows "foreground=", but as far as I could
find there's nothing like \setupforegrounds or \setuplayers.
An idea:
It would be nice if we just could use some number defining above or
below main text like in:
\definelayer[PageTop][x=0mm,y=0mm,width=\paperwidth,height=
\paperheight,repeat=yes,layer=1]
positive numbers would be above main text, layer=-1 would be below; 0
is reserved for main text.
This way we could stack layers more easily, similar to z-index in CSS.
What do you 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: top layer / numbered layers?
2010-07-02 8:35 top layer / numbered layers? Henning Hraban Ramm
@ 2010-07-02 8:42 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2010-07-02 8:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 02.07.10 10:35, schrieb Henning Hraban Ramm:
> While I wait for a solution of the mtxrun error, another question:
>
> I know how to use layers or overlays as backgrounds. How can I get a
> layer *above* the "normal" text plane?
>
> say...
>
> \definelayer[PageTop][x=0mm,y=0mm,width=\paperwidth,height=\paperheight,repeat=yes]
>
> \setupforegrounds[page][background=PageTop]
>
> \setlayer[PageTop][hoffset=10mm, voffset=10mm]{%
> \externalfigure[koe][with=40mm]}
>
> I just found that \framed knows "foreground=", but as far as I could
> find there's nothing like \setupforegrounds or \setuplayers.
You can use the 'foreground' value:
\setup...[...,background={<behind the text>,foreground,<before the
text>},...]
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] 2+ messages in thread
end of thread, other threads:[~2010-07-02 8:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-02 8:35 top layer / numbered layers? Henning Hraban Ramm
2010-07-02 8:42 ` 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).