From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: ConTeXt <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Subpagenumbers and unwanted last page with MkIV
Date: Fri, 15 Feb 2008 08:20:12 +0100 [thread overview]
Message-ID: <115224fb0802142320g157577a8mc06cf96ea70ab4c7@mail.gmail.com> (raw)
In-Reply-To: <20080205095723.ab4806dd.schuster.wolfgang@googlemail.com>
On Tue, Feb 5, 2008 at 9:57 AM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> Hi,
>
> the following example with subpagenumbers works fine with MkII, but
> MkIV produce a extra last page and I try to get rid of this page.
>
> \setupsubpagenumber
> [number=1,
> way=bytext,
> state=start]
>
> \setupheadertexts[\subpagenumber--\numberofsubpages]
>
> \starttext
>
> \dorecurse{8}{\input knuth\par}
>
> \page
>
> \resetsubpagenumber
>
> \dorecurse{8}{\input zapf\par}
>
> \stoptext
After more than a hour research I found the problem for the extra
page in mkiv with subpagenumbering.
The following lines solve it:
\unprotect
% core-two.mkii
\ifx \immediatesavetwopassdata\undefined
\let\immediatesavetwopassdata\savetwopassdata \fi
% page-num.tex
\def\savenofsubpages
{\ifsubpaging
\showmessage\m!layouts6{\newnofsubpages,\the\subpageno}%
%\savetwopassdata{\s!subpage}{\newnofsubpages}{\the\subpageno}%
\immediatesavetwopassdata{\s!subpage}{\newnofsubpages}{\the\subpageno}%
\fi}
\protect
The mkiv definition for \savetwopassdata store the value after the shipout
and not immediately as the mkii version did and this cause another page
in the output to store the information.
Wolfgang
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2008-02-15 7:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-05 8:57 Wolfgang Schuster
2008-02-15 7:20 ` Wolfgang Schuster [this message]
2008-02-15 9:43 ` 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=115224fb0802142320g157577a8mc06cf96ea70ab4c7@mail.gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).