From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107547 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: juh Newsgroups: gmane.comp.tex.context Subject: Let chapter start on odd page and make the even page before show an image Date: Fri, 29 May 2020 10:29:49 +0200 Message-ID: <20200529082949.GA10475@sokrates> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8443108053805694891==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="20490"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 29 10:30:21 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jeaPD-0005IE-W1 for gctc-ntg-context-518@m.gmane-mx.org; Fri, 29 May 2020 10:30:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 85CA91827FE; Fri, 29 May 2020 10:29:58 +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 KNLg8kt9dZ3t; Fri, 29 May 2020 10:29:57 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 87C49184562; Fri, 29 May 2020 10:29:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BC7161843F3 for ; Fri, 29 May 2020 10:29:56 +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 AiMCKYQixNps for ; Fri, 29 May 2020 10:29:55 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=80.241.56.172; helo=mout-p-202.mailbox.org; envelope-from=juh+ntg-context@mailbox.org; receiver= Original-Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 665981827FE for ; Fri, 29 May 2020 10:29:55 +0200 (CEST) Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 49YHmy6w88zQlJg for ; Fri, 29 May 2020 10:29:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-disposition:content-type:content-type:mime-version :message-id:subject:subject:from:from:date:date:received; s= mail20150812; t=1590740991; bh=blpvOHbTAqH6EGIL5KZ8Q3t0povSpqxDT wdLHtZEvT0=; b=gF3DlLEW+HRB/Xw4YYfX6Bnbc377fe3EwFgdV1G8kXql2ZTtf YqKDQmQume7cRz75mM9ntl6k5HYBeGmI6N35m6/BOl6rnM78HnjbQroAkUU6G9Zt nQg1/v2bKKKhRV2XK6daWWwCph5U12Hu7t2jvC9462A2F++UhWfiimXF066HLGTs y92LxYn8uYaFSVR0VRTThwi+Pm+Qd/SdNvgGob0wDdHPplvsCinjdbwpBECe21kw DMnqiqbRq7+R3ayzxsqh0uR4vhuWv1kwj5EHAHmZmllt3U07RcpT3oajq6qDqxK+ Eui9017g05xjiI/kBFrvhsHoySlyTuycyfOkA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1590740992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=mzsq+1J/Lfu2De+Ht+fUCPIZcBeL84UxaJWazxtUmmE=; b=hEIWTVgVX/Cwvu2sDl/leAVPfXK/dQSrqkTekT8Llrovi9xYpFEUXy4atGgIpUgJ0EssJz tP9I7YEFmAt3jl8AZnEu1RULfxfT7lVFctlMVcW9RsZB8hPbEl3gr11yp6VAZ/5ahEivKq 3o9sWuJ8KicLlK2q/uQPwimyKfwOzAQbUblOTYvShyEwf1/scnkJW+qNdI4F99eZt6L/Wa b5wjlSsITi731B8xJ7lcgCK428V89fyP/Evr2MzNcIOWflQnZW+oc1YDhsT7hpFt3AW57U lKyVP1cCCWzS50B3a3F1LM79GkftyR0Tb/7Ct4p6d8Gg8JtEXIGiKobvTJjwdw== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id 0TwSEnfMw7Gt for ; Fri, 29 May 2020 10:29:51 +0200 (CEST) Mail-Followup-To: juh , mailing list for ConTeXt users X-Rspamd-Queue-Id: B3E17175E X-Rspamd-Score: -3.30 / 15.00 / 15.00 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:107547 Archived-At: --===============8443108053805694891== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear all, with your help I can colorize the empty even page right before a chapter st= arts on the odd page. The mwe below shows it. Now I would like to redefine the contents of the left page on the fly in th= e text so that I could place images on this page. I thought that I could get a simple solution by inserting a TEXpage as even page, but this does not work for several reasons. First a TEXpage is not co= unted correctly like a normal page. And secondly I found now way to put it on the even page. So what I really want to achieve is a way to redefine this setups at some p= oint in the text to insert eg. a picture on the even page before a chapter. \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=3Dcolor,backgroundcolor=3Dblue,] \page[empty,right] \popbackground} \stopsetups Here comes the not so mwe: %% start mwe \setuplayout [ location=3Ddoublesided ] \setuppagenumbering[alternative=3Ddoublesided] \definepagebreak [chapter] [footer,yes,header,footer,right] \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=3Dcolor,backgroundcolor=3Dblue,] \page[empty,right] \popbackground} \stopsetups \setuphead=20 [chapter]=20 [ page=3Dyes, before=3D\directsetup{chapter:before}, ] \setupexternalfigure[location=3Ddefault] \starttext \startchapter [title=3D{foo}] \dorecurse{2}{\input tufte \par} \stopchapter \startchapter [title=3D{foo2}] \dorecurse{6}{\input tufte \par} \stopchapter \startchapter [title=3D{bar}] \input knuth \startTEXpage \externalfigure[cow.pdf][height=3D\paperheight,width=3D\paperwidth] \stopTEXpage \stopchapter \startchapter [title=3D{baz}] \input knuth \stopchapter \stoptext %% stop mwe=20 As you see the image is not in the right place and of course the pagenumber= ing is wrong.=20 I want that one of these blue pages shows an image. Is this possible? Thanks for your help. juh =20 --=20 Autoren-Homepage: ......... http://literatur.hasecke.com Satiren & Essays: ......... http://www.sudelbuch.de Privater Blog: ............ http://www.hasecke.eu Netzliteratur-Projekt: .... http://www.generationenprojekt.de --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE9pEda910q7j+RYbgOz1ziuYU0i0FAl7Qx/QACgkQOz1ziuYU 0i0vyQ//bx9qpsXD7zkLUA28kcVVAyxv7fq5QXuMUkUMI1ysqMHb5Uk9c0nH/iEA EDMl2LzubwGEylB6aZoTIbraW1QKMnkqSV6gQ+ghYSherwmKes3xv0FHlm+s4FUy kRt4fOToproG3GXJeWTjcwH2uQf0B9allc7IlAfbMSv81IcUr6b3iX0tNMgbPeRv vgOhsQlGgOisEgIztkw3faVBB6PemEZj38cDHltXolwdOf8jFsFCJZwslyMOrTUR OOYvwzCmym3ZYY8PNQTvunWhWVNfvcOh5Lj8jkrvX0raNNjGZlGwtoLTnv2GdVAz WrJBSWx1v+A/+Hob/c+EavaF83/Tl5bpQm6g/VTQpFXHhvmjDwb626JHy37xiOpD CDkiuJmosxfOkCQ7x2h5SIkxYM/BuRf5xdwuP0HBEGzxRdUFFSR6pA+06IookBen s1H0GkHzUuz3haHKQT2t/HL1XEhaEwuIllbqalWipcCawzTI9+C41ZXL08Z8j3ra RWH+I3JYyLR+utIVKxfuLwZ+WNpOU4BLdxGULhpz2/o6iKXIw7rN48o6Z8Tzeo6B GvoQn6su9FhwEbezzF1dda5/1UTVvKlXiZ6bEHsTkieuFseO8xsbIoF15EfHK1p/ kuDMvtH2COAzJ2CU2vLF9LbVLRGzXomZX8KQKPqIbPMuY0FbEI0= =coEp -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j-- --===============8443108053805694891== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8443108053805694891==--