[NTG-context] Dynamic Elements on Layer

2007-01-14 Thread Helin Gai
Hi,

I'm still trying to place my running heads into the margin, 5 cm away
from the top. My new attempt is to use layer:

\definelayer[colin][width=\paperwidth,height=\paperheight,x=0mm,y=0mm]
\setlayer[colin][x=5cm,y=3cm]{\framed{\getmarking[chapter][current]}}
\setupbackgrounds[page][background=colin]

But it doesn't seem to work either. Does anyone know why it is?
Many thanks!

Sincerely,
Helin


-- 
Helin (Colin) Gai
Class of 2009, Duke University
Box 96332
Durham, NC 27708
Phone:  919-943-6302
helin.gai at gmail.com
hg9 at duke.edu
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Dynamic Elements on Layer

2007-01-14 Thread Aditya Mahajan
On Sun, 14 Jan 2007, Helin Gai wrote:

 Hi,
 
 I'm still trying to place my running heads into the margin, 5 cm away
 from the top. My new attempt is to use layer:
 
 \definelayer[colin][width=\paperwidth,height=\paperheight,x=0mm,y=0mm]
 \setlayer[colin][x=5cm,y=3cm]{\framed{\getmarking[chapter][current]}}
 \setupbackgrounds[page][background=colin]
 
 But it doesn't seem to work either. Does anyone know why it is?

Maybe because the layer is not evaluated for each page. You can try 
putting the \setlayer stuff inside \setupheadertexts or append them to 
beforeeverypage or aftereverypage, like

\appendtoks \setlayer[...] \to \aftereverypage

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Dynamic Elements on Layer

2007-01-14 Thread Hans Hagen
Helin Gai wrote:
 Hi,

 I'm still trying to place my running heads into the margin, 5 cm away
 from the top. My new attempt is to use layer:

 \definelayer[colin][width=\paperwidth,height=\paperheight,x=0mm,y=0mm]
 \setlayer[colin][x=5cm,y=3cm]{\framed{\getmarking[chapter][current]}}
 \setupbackgrounds[page][background=colin]

 But it doesn't seem to work either. Does anyone know why it is?
 Many thanks!
   
\startsetups make:headers  
 \setlayer[colin][x=5cm,y=3cm]{\framed{\getmarking[chapter][current]}}
\stopsetups  

\setupbackgrounds[page][setups=make:headers,background=colin]

you need to postpone/repeat the action 

H 


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Dynamic Elements on Layer

2007-01-14 Thread Helin Gai
Thanks Hans. This works beautifully!

Helin

On 1/14/07, Hans Hagen [EMAIL PROTECTED] wrote:
 Helin Gai wrote:
  Hi,
 
  I'm still trying to place my running heads into the margin, 5 cm away
  from the top. My new attempt is to use layer:
 
  \definelayer[colin][width=\paperwidth,height=\paperheight,x=0mm,y=0mm]
  \setlayer[colin][x=5cm,y=3cm]{\framed{\getmarking[chapter][current]}}
  \setupbackgrounds[page][background=colin]
 
  But it doesn't seem to work either. Does anyone know why it is?
  Many thanks!
 
 \startsetups make:headers
  \setlayer[colin][x=5cm,y=3cm]{\framed{\getmarking[chapter][current]}}
 \stopsetups

 \setupbackgrounds[page][setups=make:headers,background=colin]

 you need to postpone/repeat the action

 H


 -
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
 -

 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context



-- 
Helin (Colin) Gai
Class of 2009, Duke University
Box 96332
Durham, NC 27708
Phone:  919-943-6302
helin.gai at gmail.com
hg9 at duke.edu
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context