[NTG-context] Anchoring layer

Peter Rolf indiego at gmx.net
Wed Oct 5 13:12:44 CEST 2005


Hi Thomas,

Thomas A. Schmitz wrote:
> I'm trying to write a module that will mimick the behavior of  crop.sty
> in LaTeX (providing fancier cropmarks than the ones given by  the
> ConTeXt \setuplayout command). I'm done with the code for the 
> cropmarks, and this is working fine. Now I want to have a status line 
> in between the two top marks. How can I give an absolute position for  a
> layer that will put this line midaligned and exactly, say 0.5cm  above
> the level of the upper corners of the page? What I tried so far  is:
> \composedlayer and something like \setlayer[y=2cm] - will only be on 
> the first page, not repeated;

\setuplayer[LAYERNAME][repeat=yes]

\setlayer[LAYERNAME][x=??, y=20mm, location=c]{your status line}

x should be (CROPLeftX+CROPrightX)/2

not tested....


Greetings, Peter


> \framed - I can give the frame a height like 1.3\textheight, but then 
> the position will not be fixed, but change with the textheight
> 
> I guess there must be a trivial solution, but I haven't found it yet...
> 
> Best
> 
> Thomas
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 



More information about the ntg-context mailing list