ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: Context Mailinglist <ntg-context@ntg.nl>
Subject: Re: fix pages
Date: Sun, 13 May 2001 15:29:34 +0200	[thread overview]
Message-ID: <3.0.6.32.20010513152934.009b7570@server-1> (raw)
In-Reply-To: <3AFCF916.8E97DDBF@elektron.its.tudelft.nl>

At 10:49 AM 5/12/01 +0200, P. van Kranenburg wrote:
>Berend de Boer wrote:
>> 
>> "P. van Kranenburg" <pvk@elektron.its.tudelft.nl> writes:
>> 
>> > But now, when I insert pages before the group, the first page of the
>> > group will get another "realpagenumber". In my case the first page of
>> > the group must be "realpage" 33, because at that page a new gathering
>> > starts.
>> > Just wondering if there is a elegant way to handle this.
>> > If this isn't possible, I'll insert this group of pages when the
>> > preceding text will not change anymore.
>> 
>> I think you  can set the page number with
>> 
>> \setuppagenumber
>>         [number=10]
>> 
>> I'm not sure what you mean with real page?
>> 
>pagenumber  -1 -2 -3 -4 -5  1  2  3  4  5  6  7  8  I  II  III  9  10
>real page    1  2  3  4  5  6  7  8  9  10 11 12 13 14 15  16   17 18
>
>I call it realpage because in ConTeX you can get it with \the\realpage
>To say it in another way: I want a certain page to be the 33th page
>in my output.

given that you know how to handle the numbering [see earlier mails]: 

\def\MyInsert%
  {\ifnum\realpageno=10
     \dorecurse{5}{whow \page}
   \fi}

\appendtoks \MyInsert \to \everyaftershipout

\starttext

\dorecurse{20}{test \page}

\stoptext

don't tell anyone about this hack, should be proper functionality. 

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


  parent reply	other threads:[~2001-05-13 13:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-11 14:20 P. van Kranenburg
2001-05-11 15:54 ` Hans Hagen
2001-05-11 18:07   ` P. van Kranenburg
2001-05-12  7:22     ` Berend de Boer
2001-05-12  8:49       ` P. van Kranenburg
2001-05-12 12:11         ` Berend de Boer
2001-05-13 13:29         ` Hans Hagen [this message]
2001-05-14 23:34           ` P. van Kranenburg

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=3.0.6.32.20010513152934.009b7570@server-1 \
    --to=pragma@wxs.nl \
    --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).