* A question about layers
@ 2011-07-14 14:25 Marcin Borkowski
2011-07-14 14:29 ` Hans Hagen
2011-07-14 14:35 ` Wolfgang Schuster
0 siblings, 2 replies; 5+ messages in thread
From: Marcin Borkowski @ 2011-07-14 14:25 UTC (permalink / raw)
To: ConTeXt mailing list
OK,
after a pm from Mojca concerning my previous question I decided to look
into the "layers" mechanism.
It won't work for me - just nothing shows up.
What am I doing wrong?
Here's a minimal example:
\starttext
\definelayer[title][x=105mm,y=20mm]
\setlayer[title]{This is the title.}
\stoptext
(I'd also like to be able to "anchor" the title so that (105mm,20mm) are
the coordinates of the center, not the lower-left corner etc. How to do
that?)
TIA
--
Marcin Borkowski
http://mbork.pl
___________________________________________________________________________________
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] 5+ messages in thread
* Re: A question about layers
2011-07-14 14:25 A question about layers Marcin Borkowski
@ 2011-07-14 14:29 ` Hans Hagen
2011-07-14 14:35 ` Wolfgang Schuster
1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2011-07-14 14:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 14-7-2011 4:25, Marcin Borkowski wrote:
> OK,
>
> after a pm from Mojca concerning my previous question I decided to look
> into the "layers" mechanism.
>
> It won't work for me - just nothing shows up.
>
> What am I doing wrong?
>
> Here's a minimal example:
>
> \starttext
> \definelayer[title][x=105mm,y=20mm]
> \setlayer[title]{This is the title.}
> \stoptext
>
> (I'd also like to be able to "anchor" the title so that (105mm,20mm) are
> the coordinates of the center, not the lower-left corner etc. How to do
> that?)
\flushlayer[title]
etc (some styles in the distributions have examples)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 5+ messages in thread
* Re: A question about layers
2011-07-14 14:25 A question about layers Marcin Borkowski
2011-07-14 14:29 ` Hans Hagen
@ 2011-07-14 14:35 ` Wolfgang Schuster
2011-07-14 14:59 ` Marcin Borkowski
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-07-14 14:35 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 14.07.2011 um 16:25 schrieb Marcin Borkowski:
> OK,
>
> after a pm from Mojca concerning my previous question I decided to look
> into the "layers" mechanism.
>
> It won't work for me - just nothing shows up.
>
> What am I doing wrong?
>
> Here's a minimal example:
>
> \starttext
> \definelayer[title][x=105mm,y=20mm]
> \setlayer[title]{This is the title.}
> \stoptext
>
> (I'd also like to be able to "anchor" the title so that (105mm,20mm) are
> the coordinates of the center, not the lower-left corner etc. How to do
> that?)
\definelayer[title][x=105mm,y=20mm,preset=middle]
\setupbackgrounds[page][background=title]
\starttext
\setlayer[title]{This is the title.}
…
\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] 5+ messages in thread
* Re: A question about layers
2011-07-14 14:35 ` Wolfgang Schuster
@ 2011-07-14 14:59 ` Marcin Borkowski
2011-07-14 15:03 ` luigi scarso
0 siblings, 1 reply; 5+ messages in thread
From: Marcin Borkowski @ 2011-07-14 14:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dnia 2011-07-14, czw o godzinie 16:35 +0200, Wolfgang Schuster pisze:
> Am 14.07.2011 um 16:25 schrieb Marcin Borkowski:
>
> > OK,
> >
> > after a pm from Mojca concerning my previous question I decided to look
> > into the "layers" mechanism.
> >
> > It won't work for me - just nothing shows up.
> >
> > What am I doing wrong?
> >
> > Here's a minimal example:
> >
> > \starttext
> > \definelayer[title][x=105mm,y=20mm]
> > \setlayer[title]{This is the title.}
> > \stoptext
> >
> > (I'd also like to be able to "anchor" the title so that (105mm,20mm) are
> > the coordinates of the center, not the lower-left corner etc. How to do
> > that?)
>
> \definelayer[title][x=105mm,y=20mm,preset=middle]
Thanks; and what exactly does "preset" do?
>
> \setupbackgrounds[page][background=title]
So are layers always used as a "background"? This seems strange, since
I want my document to consist *only* from layers;)...
>
> \starttext
>
> \setlayer[title]{This is the title.}
>
> …
>
> \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
> ___________________________________________________________________________________
--
Marcin Borkowski
http://mbork.pl
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2011-07-14 15:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-14 14:25 A question about layers Marcin Borkowski
2011-07-14 14:29 ` Hans Hagen
2011-07-14 14:35 ` Wolfgang Schuster
2011-07-14 14:59 ` Marcin Borkowski
2011-07-14 15:03 ` luigi scarso
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).