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