From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30535 Path: news.gmane.org!not-for-mail From: "Paul Jones" Newsgroups: gmane.comp.tex.context Subject: afterpage Date: Mon, 28 Aug 2006 13:19:47 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1051687312==" X-Trace: sea.gmane.org 1156785607 8653 80.91.229.2 (28 Aug 2006 17:20:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Aug 2006 17:20:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 28 19:20:05 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 1GHkmI-000591-H8 for gctc-ntg-context-518@m.gmane.org; Mon, 28 Aug 2006 19:20:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5DD781FE0C; Mon, 28 Aug 2006 19:20:01 +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 30618-05; Mon, 28 Aug 2006 19:19:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7C2CE1FE06; Mon, 28 Aug 2006 19:19:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 81D3B1FE06 for ; Mon, 28 Aug 2006 19:19:52 +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 00374-01 for ; Mon, 28 Aug 2006 19:19:49 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by ronja.ntg.nl (Postfix) with SMTP id 561521FCD0 for ; Mon, 28 Aug 2006 19:19:48 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id s12so1746332wxc for ; Mon, 28 Aug 2006 10:19:47 -0700 (PDT) Original-Received: by 10.90.56.14 with SMTP id e14mr1151982aga; Mon, 28 Aug 2006 10:19:47 -0700 (PDT) Original-Received: by 10.90.67.7 with HTTP; Mon, 28 Aug 2006 10:19:47 -0700 (PDT) Original-To: ntg-context@ntg.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:30535 Archived-At: --===============1051687312== Content-Type: multipart/alternative; boundary="----=_Part_7509_13431247.1156785587654" ------=_Part_7509_13431247.1156785587654 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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? \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 ------=_Part_7509_13431247.1156785587654 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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?

\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
------=_Part_7509_13431247.1156785587654-- --===============1051687312== 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 --===============1051687312==--