From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22872 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: Anchoring layer Date: Wed, 05 Oct 2005 15:55:42 +0200 Message-ID: <4343DB5E.6050805@gmx.net> References: <16C49C52-2BE0-48FB-AC5E-A1F78A987F8A@uni-bonn.de> <4343B52C.7000108@gmx.net> <3D1E9732-C5F4-41E3-B119-13D702EEBAE8@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1128520641 13728 80.91.229.2 (5 Oct 2005 13:57:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2005 13:57:21 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 05 15:57:12 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EN9io-00034G-TM for gctc-ntg-context-518@m.gmane.org; Wed, 05 Oct 2005 15:54:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3215E127FB; Wed, 5 Oct 2005 15:54:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15036-02; Wed, 5 Oct 2005 15:54:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 52F28127F0; Wed, 5 Oct 2005 15:54:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 027D0127F0 for ; Wed, 5 Oct 2005 15:54:07 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14967-04 for ; Wed, 5 Oct 2005 15:54:05 +0200 (CEST) Original-Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id D3148127EF for ; Wed, 5 Oct 2005 15:54:05 +0200 (CEST) Original-Received: (qmail invoked by alias); 05 Oct 2005 13:54:05 -0000 Original-Received: from i5387DC8A.versanet.de (EHLO [192.168.0.3]) [83.135.220.138] by mail.gmx.net (mp028) with SMTP; 05 Oct 2005 15:54:05 +0200 X-Authenticated: #24293357 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <3D1E9732-C5F4-41E3-B119-13D702EEBAE8@uni-bonn.de> X-Enigmail-Version: 0.93.0.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22872 Archived-At: 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: % \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 > >