* Layers for absolute positioning
@ 2011-03-07 19:51 Curiouslearn
2011-03-07 20:34 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Curiouslearn @ 2011-03-07 19:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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: Layers for absolute positioning
2011-03-07 19:51 Layers for absolute positioning Curiouslearn
@ 2011-03-07 20:34 ` Wolfgang Schuster
2011-03-07 21:35 ` Curiouslearn
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-03-07 20:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Layers for absolute positioning
2011-03-07 20:34 ` Wolfgang Schuster
@ 2011-03-07 21:35 ` Curiouslearn
0 siblings, 0 replies; 3+ messages in thread
From: Curiouslearn @ 2011-03-07 21:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
<schuster.wolfgang@googlemail.com> wrote:
>
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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:[~2011-03-07 21:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-07 19:51 Layers for absolute positioning Curiouslearn
2011-03-07 20:34 ` Wolfgang Schuster
2011-03-07 21:35 ` Curiouslearn
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).