ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Dynamic Elements on Layer
@ 2007-01-14 15:22 Helin Gai
  2007-01-14 17:19 ` Aditya Mahajan
  2007-01-14 18:15 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Helin Gai @ 2007-01-14 15:22 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dynamic Elements on Layer
  2007-01-14 15:22 Dynamic Elements on Layer Helin Gai
@ 2007-01-14 17:19 ` Aditya Mahajan
  2007-01-14 18:15 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2007-01-14 17:19 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dynamic Elements on Layer
  2007-01-14 15:22 Dynamic Elements on Layer Helin Gai
  2007-01-14 17:19 ` Aditya Mahajan
@ 2007-01-14 18:15 ` Hans Hagen
  2007-01-15  0:26   ` Helin Gai
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2007-01-14 18:15 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dynamic Elements on Layer
  2007-01-14 18:15 ` Hans Hagen
@ 2007-01-15  0:26   ` Helin Gai
  0 siblings, 0 replies; 4+ messages in thread
From: Helin Gai @ 2007-01-15  0:26 UTC (permalink / raw)


Thanks Hans. This works beautifully!

Helin

On 1/14/07, Hans Hagen <pragma@wxs.nl> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-15  0:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-14 15:22 Dynamic Elements on Layer Helin Gai
2007-01-14 17:19 ` Aditya Mahajan
2007-01-14 18:15 ` Hans Hagen
2007-01-15  0:26   ` Helin Gai

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).