ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Green <merely.ridiculous@gmail.com>
To: ntg-context@ntg.nl
Subject: subpagenumber starts at 2
Date: Thu, 24 Dec 2009 10:58:25 -0800	[thread overview]
Message-ID: <70D3BD12-F13B-43A5-8FFB-A39B6EF490E4@gmail.com> (raw)
In-Reply-To: <mailman.33.1261603299.4207.ntg-context@ntg.nl>

On Dec 23, 2009, at 1:21 PM, Hans Hagen wrote:

>
> On 23-12-2009 19:04, Wolfgang Schuster wrote:
>>> \setupheadertexts[\subpagenumber\ -- \nofsubpages]
>>>>
>>>> \setupsubpagenumber[way=bytext,state=start]
>> \setupsubpagenumber[way=bytext,state=start,number=1]
>
> fixed in next beta (hopefully)
>
> --  


It's not quite there yet (though it now does what I need it to do --  
thanks!)

Using LuaTeX, Version beta-0.47.0-2009121822
ConTeXt  ver: 2009.12.24 17:55 MKIV  fmt: 2009.12.24  int: english/ 
english

1. If I include number=1, the sequence goes like this:

subpage 1, realpage 1: <blank> - 3
subpage 2, realpage 2: 1 - 3
subpage 3, realpage 3: 2 - 3
subpage 1, realpage 4: <blank> - 3
subpage 2, realpage 5: 1 - 3
subpage 3, realpage 6: 2 - 3
subpage 1, realpage 7: <blank> - 3
subpage 2, realpage 8: 1 - 3
subpage 3, realpage 9: 2 - 3


\setupheadertexts[\subpagenumber\ -- \nofsubpages]

\setupsubpagenumber[way=bytext,state=start,number=1]

\def\MakeThreePages{This is the first of three subpages.\page This is  
the second of three subpages.\page This is the third of three subpages. 
\page \resetsubpagenumber}

\starttext

\dorecurse{3}{\MakeThreePages}

\stoptext

2. If I take number=1 out, it goes like this:

subpage 1, realpage 1: 1 - 4
subpage 2, realpage 2: 2 - 4
subpage 3, realpage 3: 3 - 4
subpage 1, realpage 4: 1 - 4
subpage 2, realpage 5: 2 - 4
subpage 3, realpage 6: 3 - 4
subpage 1, realpage 7: 1 - 4
subpage 2, realpage 8: 2 - 4
subpage 3, realpage 9: 3 - 4

\setupheadertexts[\subpagenumber\ -- \nofsubpages]

\setupsubpagenumber[way=bytext,state=start]

\def\MakeThreePages{This is the first of three subpages.\page This is  
the second of three subpages.\page This is the third of three subpages. 
\page \resetsubpagenumber}

\starttext

\dorecurse{3}{\MakeThreePages}

\stoptext


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


       reply	other threads:[~2009-12-24 18:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.33.1261603299.4207.ntg-context@ntg.nl>
2009-12-24 18:58 ` Michael Green [this message]
2009-12-23 17:46 Michael Green
2009-12-23 18:04 ` Wolfgang Schuster
2009-12-23 21:02   ` Hans Hagen

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=70D3BD12-F13B-43A5-8FFB-A39B6EF490E4@gmail.com \
    --to=merely.ridiculous@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).