From: Peter Rolf <indiego@gmx.net>
Subject: Re: Anchoring layer
Date: Wed, 05 Oct 2005 15:55:42 +0200 [thread overview]
Message-ID: <4343DB5E.6050805@gmx.net> (raw)
In-Reply-To: <3D1E9732-C5F4-41E3-B119-13D702EEBAE8@uni-bonn.de>
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
>
>
next prev parent reply other threads:[~2005-10-05 13:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-05 10:48 Thomas A. Schmitz
2005-10-05 11:12 ` Peter Rolf
2005-10-05 12:57 ` Thomas A. Schmitz
2005-10-05 13:55 ` Peter Rolf [this message]
2005-10-05 16:17 ` Thomas A. Schmitz
2005-10-06 20:20 ` D R A F T on pages Jilani Khaldi
2005-10-06 20:36 ` Thomas A. Schmitz
2005-10-06 21:49 ` Jilani Khaldi
2005-10-06 23:12 ` Idris Samawi Hamid
2005-10-07 10:03 ` Jilani Khaldi
2005-10-07 17:35 ` Thomas A. Schmitz
2005-10-07 18:34 ` Peter Münster
2005-10-07 19:28 ` Jilani Khaldi
2005-10-07 6:35 ` andrea valle
2005-10-07 7:03 ` ASCII art inclusion andrea valle
2005-10-09 9:38 ` Mojca Miklavec
2005-10-10 10:26 ` andrea valle
2005-10-06 20:47 ` D R A F T on pages Idris Samawi Hamid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4343DB5E.6050805@gmx.net \
--to=indiego@gmx.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).