From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93920 Path: news.gmane.org!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: Re: problem with page number on last page Date: Mon, 29 Feb 2016 09:37:30 -0500 Message-ID: References: <56D3600C.8040400@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0027783582007347436==" X-Trace: ger.gmane.org 1456756704 13854 80.91.229.3 (29 Feb 2016 14:38:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 14:38:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 29 15:38:14 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aaOxg-0002ZJ-QU for gctc-ntg-context-518@m.gmane.org; Mon, 29 Feb 2016 15:38:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B3E447734; Mon, 29 Feb 2016 15:37:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2HSGTXgF_l5W; Mon, 29 Feb 2016 15:37:44 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 4A5257730; Mon, 29 Feb 2016 15:37:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 32337772E for ; Mon, 29 Feb 2016 15:37:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XZxFKwNuaoSX for ; Mon, 29 Feb 2016 15:37:42 +0100 (CET) Original-Received: from mail-ig0-f179.google.com (mail-ig0-f179.google.com [209.85.213.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F3780772D for ; Mon, 29 Feb 2016 15:37:31 +0100 (CET) Original-Received: by mail-ig0-f179.google.com with SMTP id z8so79110471ige.0 for ; Mon, 29 Feb 2016 06:37:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=3jJFkU5VjaURmtEGMx+1JZ0lpj01xth4y90ShIYhL4M=; b=V8wOWhLO8NnhItxOCa4cyt4O/TodLlAyRm1Riwzg2eSctXVAWf46AGsBgQyu9mQxXY 8XU9J69zp79I00AAFQW+8C3UQiusUlRfs5Vn3arRFsMHJaFmHG5IeldGLGkSHMrbmpAh WwUGN0/Plmue336trHrJvPcKDDjT4NyOOt38WvYzKpiQrDmvakKAdG3J4jDUre7e7X54 aIoAkgoo//cz5tBQoL4XZABilPQsua5yixnnOqD/Gsyh/H+15najSHS1vbDA9rUK73iq q6qhTfD0N5Uig0anUJOQpkqd5v+5HV+jXJoMZUQ75TspBlyXTrsIFDKPIeg5BXOJKrls 3opg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=3jJFkU5VjaURmtEGMx+1JZ0lpj01xth4y90ShIYhL4M=; b=VXALois7tFbxteThYSYtSzXpZBrEnnVibCjWn66bR6NFRW54srMRifjzrvIits1IKN gqHsVzyLfjB9DIHaJQbuIhoEwmmzFIiXKVITIhrOxV/VAmBT6RevA2FXBQBXdGMGj11y p8aR/kVQw7AcIf0NvGeN/CbjCjjPaBBIzCjzGHYIZ90v1SrXgymRe8u2xrkUPPzAzePs 9wzqqkGRii1yTVKJPy7Xw38QRyIqy37EzGdmYgXLkaNx0COpbRin3OZX9IAkJ2bzMBGk 4K923dtomdxhSjhMyFng51YCLJTKimEgpRGCFStV7+kg1Y0CPLe1ibRZ29TQxl1VNu4v I0DA== X-Gm-Message-State: AD7BkJLM9Ko35MCtjnQK0HPXtZCTZPeCI3XpiIVdMvFs3YAd/CVZTQqscLpmIllPbVsx6+CnMko11cwYaf7UeA== X-Received: by 10.50.155.40 with SMTP id vt8mr9393354igb.56.1456756650382; Mon, 29 Feb 2016 06:37:30 -0800 (PST) Original-Received: by 10.36.109.199 with HTTP; Mon, 29 Feb 2016 06:37:30 -0800 (PST) In-Reply-To: <56D3600C.8040400@gmail.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:93920 Archived-At: --===============0027783582007347436== Content-Type: multipart/alternative; boundary=001a11c2c79eab9d98052ce99657 --001a11c2c79eab9d98052ce99657 Content-Type: text/plain; charset=UTF-8 Thanks, Wolfgang. This does solve the problem but is not so good for a chapter in a book, where headers with pagenumbers are the norm. So, is there a solution that prints the correct page number? Alan On Sun, Feb 28, 2016 at 4:01 PM, Wolfgang Schuster < schuster.wolfgang@gmail.com> wrote: > Alan Bowen > 28. Februar 2016 um 20:27 > To prevent empty pages in a double-sided page environment, I have been > using > \setuppagenumbering[page=]. > > This does not work as it should, however, when there is no body text but > only a continuing footnote on the last page. Then, though there are still > no empty pages, the pagenumber on the last page is the same as that on the > preceding page. > > Consider > \setuppagenumbering[alternative=doublesided] > \setuppagenumbering[page=] > > \starttext > \dorecurse{3}{\input knuth}\footnote{\dorecurse{3}{\input knuth}} > %\input knuth > \stoptext > > with and without the line currently commented out. > > You can add the following lines at the begin of your document. > > \appendtoks > \noheaderandfooterlines > \to \everystoptext > > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --001a11c2c79eab9d98052ce99657 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks, Wolfgang. This does solve the problem but is not s= o good for a chapter in a book, where headers with pagenumbers are the norm= . So, is there a solution that prints the correct page number?

Alan=C2=A0

On Sun, Feb 28, 2016 at 4:01 PM, Wolfgang Schuster <schu= ster.wolfgang@gmail.com> wrote:
28.=20 Februar 2016 um 20:27
To=20 prevent empty pages in a double-sided page environment, I have been=20 using
\setuppagenumbering[page= =3D].=C2=A0

This does=20 not work as it should, however, when there is no body text but only a=20 continuing footnote on the last page. Then, though there are still no=20 empty pages, the pagenumber on the last page is the same as that on the=20 preceding page. =C2=A0

Consider
\setuppagenumbering[alternative=3Ddoublesided]
<= div class=3D"gmail_default">\setuppagenumbering[page=3D]

\starttext
\dorecurse{3}{\input=20 knuth}\footnote{\dorecurse{3}{\input knuth}}
%\input knuth
\stoptext

with and=20 without the line currently commented out.
You can add the following lines at the begin of your document.

\appendtoks
=C2=A0 \noheaderandfooterlines
\to \everystoptext

Wolfgang

_______________________________________________________________________= ____________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--001a11c2c79eab9d98052ce99657-- --===============0027783582007347436== 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= --===============0027783582007347436==--