From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39152 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Subpagenumbers and unwanted last page with MkIV Date: Fri, 15 Feb 2008 08:20:12 +0100 Message-ID: <115224fb0802142320g157577a8mc06cf96ea70ab4c7@mail.gmail.com> References: <20080205095723.ab4806dd.schuster.wolfgang@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203060098 5709 80.91.229.12 (15 Feb 2008 07:21:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2008 07:21:38 +0000 (UTC) Cc: Hans Hagen To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 15 08:22:02 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JPutV-0006n4-31 for gctc-ntg-context-518@m.gmane.org; Fri, 15 Feb 2008 08:22:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7DA851FC11; Fri, 15 Feb 2008 08:21:30 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23380-01; Fri, 15 Feb 2008 08:20:51 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C392D1FC20; Fri, 15 Feb 2008 08:20:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 90D911FC20 for ; Fri, 15 Feb 2008 08:20:48 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20765-03-3 for ; Fri, 15 Feb 2008 08:20:13 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by ronja.ntg.nl (Postfix) with ESMTP id C4F2C1FC11 for ; Fri, 15 Feb 2008 08:20:12 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id q2so1540839uge.50 for ; Thu, 14 Feb 2008 23:20:12 -0800 (PST) Original-Received: by 10.67.115.6 with SMTP id s6mr687349ugm.71.1203060012227; Thu, 14 Feb 2008 23:20:12 -0800 (PST) Original-Received: by 10.66.236.18 with HTTP; Thu, 14 Feb 2008 23:20:12 -0800 (PST) In-Reply-To: <20080205095723.ab4806dd.schuster.wolfgang@googlemail.com> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:39152 Archived-At: On Tue, Feb 5, 2008 at 9:57 AM, Wolfgang Schuster 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 ___________________________________________________________________________________