From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95515 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Go to odd page, use an empty page eventually? Date: Wed, 20 Jul 2016 10:37:04 +0200 Message-ID: <578F3830.5060302@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1982513918992754054==" X-Trace: ger.gmane.org 1469003867 5983 80.91.229.3 (20 Jul 2016 08:37:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Jul 2016 08:37:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 20 10:37:32 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 1bPn0T-0004dC-IV for gctc-ntg-context-518@m.gmane.org; Wed, 20 Jul 2016 10:37:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 38AAE12807; Wed, 20 Jul 2016 10:37:18 +0200 (CEST) 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 POdEuu2NWthl; Wed, 20 Jul 2016 10:37:17 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 7966E12828; Wed, 20 Jul 2016 10:37:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6712E12807 for ; Wed, 20 Jul 2016 10:37:16 +0200 (CEST) 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 LkpGBlG0GGvs for ; Wed, 20 Jul 2016 10:37:15 +0200 (CEST) Original-Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) (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 CC44012801 for ; Wed, 20 Jul 2016 10:37:05 +0200 (CEST) Original-Received: by mail-wm0-f47.google.com with SMTP id f65so165935958wmi.0 for ; Wed, 20 Jul 2016 01:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=8pBTGTQlAwo5zm6M5nMtPNBCBRppcj/GRlaKWkE8/1Y=; b=lqIJvX3T8dW3OIlVNhgDXzq0iMAsIH810JBfcKQKi5YEn62clClFXEJ+CP7Gghs2B9 h0ms2+7DEXFEOpqJfuqFJtgfdAsZOrRtQgI6mRMfey7GNNA8kYes7vN9+df0BkRAvf4i l8OTnM3elhSftIjqDN1aZpAGJDFkEHvt3VKsAiPRcPwjxjGLO8osMaFS4nLS/JSaa09B eIjPYORuPLsh6A1t8RuIComBhoRhN96opRD1coMSBv8pIbWk0J1wrP5xK/ypGairZ8DB Q6Yt5ERQKK+b+5d8PBxbC1xFv9x6MD5JQOgjQVdW9mW6to6WlpWny21HvOMuGjsimv2r cL1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=8pBTGTQlAwo5zm6M5nMtPNBCBRppcj/GRlaKWkE8/1Y=; b=N6TbH2hRMeFR2TU2yE2SPQc6EWhE8/J8oyzouhW/DBpjfnjMLdONpOzp9OLdS2A2H9 Rd77TYriV5opdoyX5DkBZYFnhHekAFwMZgOCSASrACmwM5DbCLDpe8vH4Vj+OlcfJL60 Veiamngtt//wNwEz6QbQYmiftCAgZpCCnaACxM8CGP9uEE20ky2/3RhkJZiTR9j3ZIQY 7z+JNgc3/NMAwcoQlafNGGLn2l5Vbpc3b2yk8JeHGV+XP2NLiEoYo4BczOXHLTwuKCzo xxHoSOus8JqzGv66ZT0QMKq2Bhn3evgMJLyO/HvPyWlXJOaK/vJfkfHWz6KzCW90msVn U6OA== X-Gm-Message-State: ALyK8tK4aJ0VUJJ4nfMPwFjzlbvUosaWzuXom1LNNZ/Jc6fB1v5YmyqAevtW2lu2RE41Pw== X-Received: by 10.28.63.21 with SMTP id m21mr10523532wma.77.1469003825005; Wed, 20 Jul 2016 01:37:05 -0700 (PDT) Original-Received: from keima.localdomain (x2f29d2f.dyn.telefonica.de. [2.242.157.47]) by smtp.gmail.com with ESMTPSA id x62sm30286956wmf.13.2016.07.20.01.37.04 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jul 2016 01:37:04 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: 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:95515 Archived-At: This is a multi-part message in MIME format. --===============1982513918992754054== Content-Type: multipart/alternative; boundary="------------020506000000070301030009" This is a multi-part message in MIME format. --------------020506000000070301030009 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Proch=C3=A1zka Luk=C3=A1=C5=A1 Ing. > 20. Juli 2016 um 09:37 > Hello, > > is there a way to tell ConTeXt "go to odd page, insert empty page to=20 > reach the next odd page" eventually? > > (IOW: > When currently on odd page, break page and insert one empty=20 > (blank) (=3D even) page; continue on the next (=3D odd) page. > When currently on even page, break page (and do nothing more) (and=20 > continue on the next (=3D odd) page). > ) > > In the following example: > > ---- > \starttext > Page 1 > \page[odd] > %\page[odd,empty] > %\page[odd,header,footer] > Page 3 > \stoptext > ---- > > - \page[odd]: page 2 holds header and footer (unwanted) > - \page[odd,empty]: adds one page with header and footer (unwanted),=20 > then inserts an empty page (unwanted) > - \page[odd,header,footer] =3D \page[odd] You need "\page[yes,header,footer,odd]". \starttext Page 1\page[yes,header,footer,odd] %Page 2 Page 3\page Page 4\page[yes,header,footer,odd] Page 5 \stoptext The keywords have the following effect: - yes: force a page break - header: sets \setupheader[state=3Demty] on the following page - footer: sets \setupfooter[state=3Dempty] on the following page - odd: forces another pagebreak if the current page is even and=20 resets the header/footer states Wolfgang --------------020506000000070301030009 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
20= .=20 Juli 2016 um 09:37
Hello,

is there a way to tell ConTeXt "go to odd page, insert empty page to reach the next odd page" eventually?

(IOW:
=C2=A0=C2=A0=C2=A0=C2=A0When currently on odd page, break page and in= sert one empty=20 (blank) (=3D even) page; continue on the next (=3D odd) page.
=C2=A0=C2=A0=C2=A0=C2=A0When currently on even page, break page (and = do nothing more)=20 (and continue on the next (=3D odd) page).
)

In the following example:

----
\starttext
=C2=A0 Page 1
=C2=A0 \page[odd]
=C2=A0 %\page[odd,empty]
=C2=A0 %\page[odd,header,footer]
=C2=A0 Page 3
\stoptext
----

- \page[odd]: page 2 holds header and footer (unwanted)
- \page[odd,empty]: adds one page with header and footer (unwanted), then inserts an empty page (unwanted)
- \page[odd,header,footer] =3D \page[odd]
You need "\page[yes,header,footer,odd]".

\starttext
=C2=A0 Page 1\page[yes,header,footer,odd]
=C2=A0%Page 2
=C2=A0 Page 3\page
=C2=A0 Page 4\page[yes,header,footer,odd]
=C2=A0 Page 5
\stoptext

The keywords have the following effect:

=C2=A0 - yes: force a page break
=C2=A0 - header: sets \setupheader[state=3Demty] on the following page =C2=A0 - footer: sets \setupfooter[state=3Dempty] on the following page =C2=A0 - odd: forces another pagebreak if the current page is even and re= sets the header/footer states

Wolfgang
--------------020506000000070301030009-- --===============1982513918992754054== 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= --===============1982513918992754054==--