From: "Paul Jones" <shagreel@gmail.com>
Subject: Re: afterpage
Date: Mon, 28 Aug 2006 17:46:50 -0400 [thread overview]
Message-ID: <f35545860608281446m5878daafhdccf405bbba6f07@mail.gmail.com> (raw)
In-Reply-To: <44F35837.2010306@wxs.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1349 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1951 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
prev parent reply other threads:[~2006-08-28 21:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-28 17:19 afterpage Paul Jones
2006-08-28 20:35 ` afterpage Peter Rolf
2006-08-28 20:55 ` afterpage Hans Hagen
2006-08-28 21:17 ` afterpage Peter Rolf
2006-08-28 21:46 ` Paul Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f35545860608281446m5878daafhdccf405bbba6f07@mail.gmail.com \
--to=shagreel@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).