Re: [NTG-context] A question about layers

2011-07-14 Thread Hans Hagen

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
___


Re: [NTG-context] A question about layers

2011-07-14 Thread Wolfgang Schuster

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
___


Re: [NTG-context] A question about layers

2011-07-14 Thread Marcin Borkowski
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
___

Re: [NTG-context] A question about layers

2011-07-14 Thread luigi scarso
On Thu, Jul 14, 2011 at 4:59 PM, Marcin Borkowski mb...@wmi.amu.edu.pl wrote:
 So are layers always used as a background?  This seems strange, since
 I want my document to consist *only* from layers;)...

http://www.ntg.nl/pipermail/ntg-context/2009/042134.html


-- 
luigi
___
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
___