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
On Tue, Feb 5, 2008 at 9:57 AM, Wolfgang Schuster
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
Wolfgang Schuster wrote:
On Tue, Feb 5, 2008 at 9:57 AM, Wolfgang Schuster
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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster