Layers for absolute positioning
Hi, I have been trying to learn the best way to position text on a page.
From the messages it appears that a good way to do so, is to use layers. But it seems that to activate them I need to set them as background of the page. However, that removes the background color. How can I get both layers and a background color?
I have given a minimal example below. Thanks, Bharat This is the minimal example I am working with: \setupcolors[state=start] \setupcolor[xwi] \setupbackgrounds[page][background=color, backgroundcolor=linen] \starttext \definelayer [windows] [x=3in, y=3in, width=3in, height=4in] \setlayer [windows] [hoffset=1cm, voffset=1cm] {Windows 7} \setupbackgrounds[page][background=windows] \page[empty] \stoptext
Am 07.03.2011 um 20:51 schrieb Curiouslearn:
Hi,
I have been trying to learn the best way to position text on a page. From the messages it appears that a good way to do so, is to use layers. But it seems that to activate them I need to set them as background of the page. However, that removes the background color. How can I get both layers and a background color?
\setupbackgrounds[page][background={color,windows}] Wolfgang
Thanks, Wolfgang! That works great.
Another related question...can I add a different background color to
the layer (a color different than rest of the page).
Thanks.
On Mon, Mar 7, 2011 at 3:34 PM, Wolfgang Schuster
Am 07.03.2011 um 20:51 schrieb Curiouslearn:
Hi,
I have been trying to learn the best way to position text on a page. From the messages it appears that a good way to do so, is to use layers. But it seems that to activate them I need to set them as background of the page. However, that removes the background color. How can I get both layers and a background color?
\setupbackgrounds[page][background={color,windows}]
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 ___________________________________________________________________________________
participants (2)
-
Curiouslearn
-
Wolfgang Schuster