* Subpagenumbers and unwanted last page with MkIV
@ 2008-02-05 8:57 Wolfgang Schuster
2008-02-15 7:20 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2008-02-05 8:57 UTC (permalink / raw)
To: ConTeXt
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
Greetings,
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Subpagenumbers and unwanted last page with MkIV
2008-02-05 8:57 Subpagenumbers and unwanted last page with MkIV Wolfgang Schuster
@ 2008-02-15 7:20 ` Wolfgang Schuster
2008-02-15 9:43 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2008-02-15 7:20 UTC (permalink / raw)
To: ConTeXt; +Cc: Hans Hagen
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Subpagenumbers and unwanted last page with MkIV
2008-02-15 7:20 ` Wolfgang Schuster
@ 2008-02-15 9:43 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2008-02-15 9:43 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: ConTeXt
Wolfgang Schuster wrote:
> On Tue, Feb 5, 2008 at 9:57 AM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
>> Hi,
> \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.
ok, patched, thanks
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-15 9:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-05 8:57 Subpagenumbers and unwanted last page with MkIV Wolfgang Schuster
2008-02-15 7:20 ` Wolfgang Schuster
2008-02-15 9:43 ` Hans Hagen
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).