Thomas A. Schmitz wrote:
> Thanks for your suggestion, but I didn't get it to work. In the end,  I
> had recourse to some low-level stuff (caution, ugly code ahead!):
>
:))


this time tested:

% interface=en output=pdftex
% Time-stamp: <Mittwoch, 05 Oktober 2005 15:41:00; layer.tex>
%

\definelayer[markings][width=\paperwidth, height=\paperheight, repeat=yes]

\setupbackgrounds[page][background={markings}]


\starttext

\setlayer[markings][x=.5\paperwidth, y=20mm, location=c]%
  {\tt \txx "\jobname" - \currentdate [y,/,mm,/,dd]\ - \currenttime\ -
\realfolio\ of \lastpage}

\hbox{}% dummy; else no output

\stoptext

%%% Local Variables:
%%% mode: context
%%% TeX-master: ""
%%% End:


See details.pdf for layer usage :)

Peter

> \defineoverlay[info][{\getbuffer[info]}]
> 
> \setupbackgrounds[page][background={info}]
> 
> 
> \startbuffer[info]
> \vbox to \paperheight \bgroup
>   \vskip -1 cm
>    \framed[frame=off,align=high]{\tt \txx "\jobname" - \currentdate
> [y,/,mm,/,dd]\ - \currenttime\ - \realfolio\ of \lastpage}
>    \egroup
> \stopbuffer
> 
> (code adapted from construction of Thumb index on the wiki)
> 
> Which seems to be doing exactly what I want.
> 
> Thanks, and best
> 
> Thomas
> 
> 
> On Oct 5, 2005, at 1:12 PM, Peter Rolf wrote:
> 
>> \setuplayer[LAYERNAME][repeat=yes]
>>
>> \setlayer[LAYERNAME][x=??, y=20mm, location=c]{your status line}
>>
>> x should be (CROPLeftX+CROPrightX)/2
>>
>> not tested....
>>
>>
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

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

Reply via email to