From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90167 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Disappearing backgrounds/pagenumbers with \page[none] Date: Mon, 9 Feb 2015 00:19:08 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/mixed; boundary="===============1468126693==" X-Trace: ger.gmane.org 1423437588 16771 80.91.229.3 (8 Feb 2015 23:19:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2015 23:19:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 09 00:19:46 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YKb8i-0001Ki-4g for gctc-ntg-context-518@m.gmane.org; Mon, 09 Feb 2015 00:19:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A234E10420 for ; Mon, 9 Feb 2015 00:19:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yqZ7awX7nSPk for ; Mon, 9 Feb 2015 00:19:42 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D06FA10236 for ; Mon, 9 Feb 2015 00:19:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 04D7A101FD for ; Mon, 9 Feb 2015 00:19:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id C8KyWgNyYI1N for ; Mon, 9 Feb 2015 00:19:13 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 0A02B101FB for ; Mon, 9 Feb 2015 00:19:12 +0100 (CET) Original-Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t18NJ9AY015485 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 9 Feb 2015 00:19:10 +0100 Original-Received: by mail-wg0-f46.google.com with SMTP id a1so2146321wgh.5 for ; Sun, 08 Feb 2015 15:19:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=XpdymG8Q3ctTX9DaC5LbxkZraeCVLPqWy351vnbwOkc=; b=Y6FETbPOoNEXefg5FKx9smfHMj3eJ4UEyD8SZcje1Y6VLUuq6ADCBZAYc6iHslM586 qG1U0Qe+a5N3Gtk+7Ih64UFqaAWDYwEzcI7O8nIwgf1lcI0ZDpiEx49Hav50bBv0R0Al lUX9HjWlHP78MK1tALlloN88k2z5x5Qxl2jmRrmeFntVw5E83j6Dfhg0c9lDb++lbwiJ lLrCizkdT3kRsIaAcvQQUt2s22JHA20URS85bpE1+vOnw5/4pg3m9fZ2euZaQInXQ3so VvLdAlpX5vrkzaV1TX6sNQ3WlpObAWwNnsVNUeOBIxiZGkZGU0erpapqo4A/GMKt5Xx4 nnfA== X-Received: by 10.180.206.14 with SMTP id lk14mr28919919wic.71.1423437552086; Sun, 08 Feb 2015 15:19:12 -0800 (PST) Original-Received: from keima.localdomain (x2f35780.dyn.telefonica.de. [2.243.87.128]) by mx.google.com with ESMTPSA id u7sm11900780wiy.18.2015.02.08.15.19.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 08 Feb 2015 15:19:11 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.2070.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07NNXjaA6 - 7620806eb4a3 - 20150209 (trained as not-spam) Received-SPF: pass (filter1-utr.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c00::22e as permitted sender) receiver=filter1-utr.mf.surf.net; client-ip=2a00:1450:400c:c00::22e; envelope-from=; helo=mail-wg0-x22e.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:90167 Archived-At: --===============1468126693== Content-Type: multipart/alternative; boundary="Apple-Mail=_793E0D85-5C8B-48D9-B6A8-1F95D409E80D" --Apple-Mail=_793E0D85-5C8B-48D9-B6A8-1F95D409E80D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 09.02.2015 um 00:10 schrieb Wolfgang Schuster = : >=20 > Hi, >=20 > there was a problem on TeX SE [1] where page numbers disappear for a = whole chapter when \page[none] is used to hide the numbers on empty left = pages in a double sided document. >=20 > As can be seen in the following example the page numbers and = background on the last two pages disappear when =E2=80=9Cmissing=E2=80=9D = mode is enabled. This happens when the =E2=80=9Cblank=E2=80=9D option = for \page is used without a change in the page number (we are already at = page 3 when \page[yes,blank,right] is expanded). >=20 > %%%% begin example > \setupbackgrounds[page][background=3Dcolor,backgroundcolor=3Dgray] >=20 > %\enablemode[missing] >=20 > \starttext >=20 > \dorecurse{6}{\input knuth\par} >=20 > % End the current page before \page[blank] is called > \doifmode{missing}{\page} >=20 > \page[yes,blank,right] >=20 > \dorecurse{6}{\input knuth\par} >=20 > \stoptext > %%%% end example >=20 > [1] = http://tex.stackexchange.com/questions/225603/missing-page-numbers-first-c= hapter-only-context = BTW: Shouldn=E2=80=99t the following assignment in page-ini.miv be = global? \appendtoks \ifcase\pageornamentstate \or \pageornamentstate\zerocount \fi \to \everyaftershipout Wolfgang --Apple-Mail=_793E0D85-5C8B-48D9-B6A8-1F95D409E80D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 09.02.2015 um 00:10 schrieb Wolfgang Schuster <schuster.wolfgang@gmail.com>:

Hi,

there was a problem on = TeX SE [1]  where page numbers disappear for a whole chapter when = \page[none] is used to hide the numbers on empty left pages in a double = sided document.

As can be seen in the following example the page numbers and = background on the last two pages disappear when =E2=80=9Cmissing=E2=80=9D = mode is enabled. This happens when the =E2=80=9Cblank=E2=80=9D option = for \page is used without a change in the page number (we are already at = page 3 when \page[yes,blank,right] is expanded).

%%%% begin example
\setupbackgrounds[page][background=3Dcolor,backgroundcolor=3Dgr= ay]

%\enablemode[missing]

\starttext

\dorecurse{6}{\input = knuth\par}

% = End the current page before \page[blank] is called
\doifmode{missing}{\page}

\page[yes,blank,right]

\dorecurse{6}{\input = knuth\par}

\stoptext
%%%% end = example


BTW: Shouldn=E2=80=99t the following assignment in = page-ini.miv be global?

\appendtoks
    = \ifcase\pageornamentstate \or
        = \pageornamentstate\zerocount
    \fi
\to = \everyaftershipout

Wolfgang

= --Apple-Mail=_793E0D85-5C8B-48D9-B6A8-1F95D409E80D-- --===============1468126693== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1468126693==--