From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30546 Path: news.gmane.org!not-for-mail From: "Paul Jones" Newsgroups: gmane.comp.tex.context Subject: Re: afterpage Date: Mon, 28 Aug 2006 17:46:50 -0400 Message-ID: References: <44F35389.3050909@gmx.net> <44F35837.2010306@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0580976776==" X-Trace: sea.gmane.org 1156801636 31372 80.91.229.2 (28 Aug 2006 21:47:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2006 21:47:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 28 23:47:15 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1GHowo-0007eG-Q7 for gctc-ntg-context-518@m.gmane.org; Mon, 28 Aug 2006 23:47:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 22C091FE0D; Mon, 28 Aug 2006 23:47:10 +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 23551-03; Mon, 28 Aug 2006 23:46:59 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0CEE31FE18; Mon, 28 Aug 2006 23:46:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A02FD1FE18 for ; Mon, 28 Aug 2006 23:46:55 +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 23809-03 for ; Mon, 28 Aug 2006 23:46:52 +0200 (CEST) Original-Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.232]) by ronja.ntg.nl (Postfix) with SMTP id E84531FE0D for ; Mon, 28 Aug 2006 23:46:51 +0200 (CEST) Original-Received: by wr-out-0506.google.com with SMTP id i21so410891wra for ; Mon, 28 Aug 2006 14:46:50 -0700 (PDT) Original-Received: by 10.90.120.13 with SMTP id s13mr1328894agc; Mon, 28 Aug 2006 14:46:50 -0700 (PDT) Original-Received: by 10.90.67.7 with HTTP; Mon, 28 Aug 2006 14:46:50 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: <44F35837.2010306@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30546 Archived-At: --===============0580976776== Content-Type: multipart/alternative; boundary="----=_Part_10403_22863618.1156801610140" ------=_Part_10403_22863618.1156801610140 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/28/06, Hans Hagen wrote: > > Peter Rolf wrote: > > Hi Paul, > > > > Paul Jones wrote: > > > >> Hello, > >> > >> I have used Latex in the past and have the following code that inserts > >> information on certain pages using afterpage. Is there some way to do > a > >> similar thing in context? > >> > >> > > > > \setupoutput[pdf] > > \definelayer[info] > > > > \setuplayer[info] > > [height=\paperheight,width=\paperwidth] > > > > \setupbackgrounds[page] > > [background={text,info}]% info layer is above normal text layer > > > > \def\WhichPage#1{% > > \def\docommand##1{\ifnum\pageno=##1\relax > > \setlayerframed[info][x=20mm,y=\dimexpr\paperheight-15mm,location=r] > > [background=color,backgroundcolor=white] > > {\tfb This page is inserted on page \number\pageno}\fi}% > > \rawprocesscommalist[#1]\docommand}% > > > ... > however if one wants to insert something after a specific page, there is > > % \startpostponing [pagenumber] [+pageoffset] > % > % \startpostponing[2] > % PAGE 2 \blank > % \stoppostponing > % > % \startpostponing[+1] > % PAGE +1 \blank > % \stoppostponing > % > % \startpostponing[+2] > % PAGE +2 \blank > % \stoppostponing > % > % \starttext \dorecurse{4}{\input tufte \page} \stoptext > > > Hans > > thank you so much. This is exactly what I was trying to do. paul ------=_Part_10403_22863618.1156801610140 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 8/28/06, Hans Hagen <pragma@wxs.nl> wrote:
Peter Rolf wrote:
> Hi Paul,
>
> Paul Jones wrote:
>
>> Hello,
>>
>> I have used Latex in the past and have the following code that inserts
>> information on certain pages using afterpage.  Is there some way to do a
>> similar thing in context?
>>
>>
>
> \setupoutput[pdf]
> \definelayer[info]
>
> \setuplayer[info]
>   [height=\paperheight,width=\paperwidth]
>
> \setupbackgrounds[page]
>   [background={text,info}]% info layer is above normal text layer
>
> \def\WhichPage#1{%
>   \def\docommand##1{\ifnum\pageno=##1\relax
>     \setlayerframed[info][x=20mm,y=\dimexpr\paperheight-15mm,location=r]
>     [background=color,backgroundcolor=white]
>       {\tfb This page is inserted on page \number\pageno}\fi}%
>     \rawprocesscommalist[#1]\docommand}%
>
...
however if one wants to insert something after a specific page, there is

% \startpostponing [pagenumber] [+pageoffset]
%
% \startpostponing[2]
%   PAGE 2 \blank
% \stoppostponing
%
% \startpostponing[+1]
%   PAGE +1 \blank
% \stoppostponing
%
% \startpostponing[+2]
%   PAGE +2 \blank
% \stoppostponing
%
% \starttext \dorecurse{4}{\input tufte \page} \stoptext


Hans

thank you so much.  This is exactly what I was trying to do.

paul
------=_Part_10403_22863618.1156801610140-- --===============0580976776== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0580976776==--