[NTG-context] afterpage

Peter Rolf indiego at gmx.net
Mon Aug 28 22:35:21 CEST 2006

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?



  [background={text,info}]% info layer is above normal text layer

      {\tfb This page is inserted on page \number\pageno}\fi}%

% put it in a command that is called for every page


\dorecurse{12}{\input zapf\relax
\input tufte\relax}


I hope this fits your needs.

Greetings, Peter

> \usepackage{afterpage}
> \newcommand{\insertpagea}{\vbox to \textheight{\vfill This page inserted
> on page 3 \vfill}}
> \newcommand{\insertpageb}{\vbox to \textheight{\vfill This page inserted
> on page 4 \vfill}}
> \newcommand{\incpage}{\ifthenelse{\value{page}=3}{\insertpagea}{%
> \ifthenelse{\value{page}=4}{\insertpageb}{%
>                                                 \afterpage{\incpage}}}}
> \afterpage{\incpage}
> \begin{document}
> .
> .
> .
> \end{document}
> I am not sure if this could be done at a different level also, maybe
> with texexec or something.  I basically have a requirement to insert
> content into a document on a specific page.  After doing so the table of
> contents must still be correct. 
> I am still fairly new in the Tex world so any help you can give will be
> very much appreciated.
> Paul
> ------------------------------------------------------------------------
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

More information about the ntg-context mailing list