From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115591 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: cryo shock via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Unwanted blank page before page figures when using non-placed (hidden) heads Date: Sat, 30 Jul 2022 04:16:09 +0200 Message-ID: References: <7ba929b6-6d9b-6c19-4b2f-d240aa4cea9b@freedom.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0463507677851247261==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18442"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cryo shock To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 30 04:17:15 2022 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 1oHc2U-0004Vl-3s for gctc-ntg-context-518@m.gmane-mx.org; Sat, 30 Jul 2022 04:17:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 657DE28A643; Sat, 30 Jul 2022 04:16:30 +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 oQruzuLIwb0F; Sat, 30 Jul 2022 04:16:27 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0BE2A28A647; Sat, 30 Jul 2022 04:16:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2604528A646 for ; Sat, 30 Jul 2022 04:16:25 +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 Qvja9rMfZ_uC for ; Sat, 30 Jul 2022 04:16:23 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.177; helo=mail-qt1-f177.google.com; envelope-from=axteffekt@gmail.com; receiver= Original-Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3895928A643 for ; Sat, 30 Jul 2022 04:16:23 +0200 (CEST) Original-Received: by mail-qt1-f177.google.com with SMTP id c20so4523963qtw.8 for ; Fri, 29 Jul 2022 19:16:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc; bh=BJUhilQg1LrkoLJs64CbmrMmCOgrivXYSEGEjzhea3M=; b=JZyWIIqz5uc6yR5Yep5idNO89fxdhCD4I6PnriKgZiV2Vv0B0P5IaO0Nkiw7H2nw4g ncxUclD+GnJx+7oSz4DROCIIJpWcnB/K8VqcaTRWBBGwLKdEXS5tUzpAfVb21eTw9nAu y1S0k2Jzah7uClL8cGUnCnSY7omdDBvGk8UOTlgXKarIbxsGnYtaUURYbkbiih0z9BSD 77YeDPaJOUD/AWeurWTM4SXbcI40P5lEJqyq1PxnQKy5z0q35QNNhJcUNrKXHl1X1TZG Ny1dFAx46k8zW7Iw9NGg1Qhsz2g92LWn6y2g11sg8+J3JglkTLbCJclDmhopFFeuaT1q Ts9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc; bh=BJUhilQg1LrkoLJs64CbmrMmCOgrivXYSEGEjzhea3M=; b=xcgx4ectfFHydquf6HgJloDpP/3Xcw1lWE15I9FSj525s5cMgtZeH46LISNy7NiPnq zr7ksMyu2aJ03gtOHY120MmghKSBBEvpxQ9L3mBNGsVHH+ozNFAst+cKZpNpdkQMkyRz IlG0CnlmMRK12aD23OLJYzSOKLmJKjpxLCHi8e6mXp+lRsL6d0t4T1WGML6FXIb8Qxux Iq3Kg5+qFy9cRyTyaZfb2XQXSeId9bmeWMui99DsDJjHxSXD3VzGEkrnozQA8bjWjA6F WdV47u7W6gYWcslJNSOiKRLtHEd40fp3CMEeFevP0YIk1FLwtC/1uawvGrVjTx7rEVxP ta1g== X-Gm-Message-State: AJIora8nR3EZ+Pb4egjtFkQgY7p6us75yl2BSiiEtiBUvVrJxBAq3+ab XwHRHQnSn7qsI9r3D+RTmlC4iMA86N8hyuoEENFp2uY= X-Google-Smtp-Source: AGRyM1t9vOXkJ3G6MtRZsWjs6xinR2EMTJ8nWPec/g9L+p9asOxv8x1LQEGl35l6/4A/4c9iIGfneWs4Y9BE2DHWtKg= X-Received: by 2002:ac8:5bd2:0:b0:31e:f083:7e57 with SMTP id b18-20020ac85bd2000000b0031ef0837e57mr5699502qtb.524.1659147379231; Fri, 29 Jul 2022 19:16:19 -0700 (PDT) In-Reply-To: <7ba929b6-6d9b-6c19-4b2f-d240aa4cea9b@freedom.nl> 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:115591 Archived-At: --===============0463507677851247261== Content-Type: multipart/alternative; boundary="0000000000002b504205e4fc5ad6" --0000000000002b504205e4fc5ad6 Content-Type: text/plain; charset="UTF-8" Of course it works, it's the order. For me TeX wouldn't be the same without you. Thank you very much Hans. Hans Hagen via ntg-context schrieb am Mo., 25. Juli 2022, 09:20: > On 7/24/2022 11:35 PM, cryo shock via ntg-context wrote: > > Hey there, > > > > I am having trouble understanding some basic blank page behavior. I hope > > that somebody of you can point me in the right direction. > > > > My primary goal is to create application documents consisting of various > > .tex components and with external PDF pages inserted as well. The second > > part of that goal is to use multiple-level bookmarking as well. > > Bookmarking should look like this: > > > > - Letter > > - Resume > > - Testimonies > > -- Testimony A > > -- Testimony B > > -- Testimony C > > > > In the following MWE you can see my progress along with some notes to > > help understanding. > > > > There are two questions, I'd wish could be answered: > > > > 1. Why does TeX insert a blank page before a pagefigure I enclose within > > a (hidden) head? > > > > 2. Can the \bookmark[list]{text} command be somehow used for multi-level > > bookmarking? > > > > While the first question would make up for a more consistent solution, > > the second question would do the job as well. > > > > I hope some of you can enlighten me. > > > > Cheers, k > > > > > > %%% START of MWE > > > > \definehead[VisiSection][section] > > \setuphead[VisiSection][number=no] > > > > \definehead[InvisiSection][VisiSection] > > \setuphead[InvisiSection][placehead=no] > > > > \definelist[CustomBMarks] > > > > \setupinteraction[state=start] > > \placebookmarks[VisiSection,InvisiSection,CustomBMarks] > > > > \startcomponent * % not a product, no > > \startVisiSection[title={Custom Section A}] > > Text of Custom Section A > > \stopVisiSection > > \page > > \startVisiSection[title={Custom Section B}] > > Text of Custom Section B > > \stopVisiSection > > \startInvisiSection[title={Hidden Custom Section A}] > > Text of Hidden Custom Section A > > \stopInvisiSection > > \page > > \startInvisiSection[title={Hidden Custom Section B}] > > Text of Hidden Custom Section B > > \stopInvisiSection > > \page > > TEST\bookmark[CustomBMarks]{Start of Teststack} \dorecurse{800}{TEST > > }NEEDLE\bookmark[CustomBMarks]{Needle in the Teststack} > > \dorecurse{400}{TEST }TEST.\bookmark[CustomBMarks]{End of Teststack} > > %%% > > %%% So far no problems. > > %%% The following combination does the job, but I see no possibility > > %%% to arrange the "CustomBMarks"-list in multi-levels. > > %%% > > \page > > \startstandardmakeup > > \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]{Pagefigure} > > \stopstandardmakeup > > %%% > > %%% So the following method would be the best choice to work with > > %%% multi-level bookmarks. But as soon as I start working with > > %%% (custom) heads together with pagefigures, CTX places a blank > > %%% page before every figure... > > %%% Note: you don't need a dummy file. The last (unnumbered) page is > > %%% the wanted external PDF. The numbered page before is the unwanted > > one. > > %%% > > \startInvisiSection[title={External Testpage A}] > > \startstandardmakeup > > \filterpages[{test.pdf}][1] > > \stopstandardmakeup > > \stopInvisiSection > > \stopcomponent > because even a hidden head is something (anchor on page), you can try this: > > \startstandardmakeup > \startInvisiSection[title={External Testpage A}] > \filterpages[{test.pdf}][1] > \stopInvisiSection > \stopstandardmakeup > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > --0000000000002b504205e4fc5ad6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Of course it works, it's the order.= =C2=A0
For me TeX wouldn't be the same without you. Thank you very= much Hans.

Hans Hagen via ntg-context <ntg-context@ntg.nl> schrieb am Mo., 25. Juli 2022, 09:20:
On 7/24/2022 11:35 PM, cryo shock via nt= g-context wrote:
> Hey there,
>
> I am having trouble understanding some basic blank page behavior. I ho= pe
> that somebody of you can point me in the right direction.
>
> My primary goal is to create application documents consisting of vario= us
> .tex components and with external PDF pages inserted as well. The seco= nd
> part of that goal is to use multiple-level bookmarking as well.
> Bookmarking should look like this:
>
> - Letter
> - Resume
> - Testimonies
> -- Testimony A
> -- Testimony B
> -- Testimony C
>
> In the following MWE you can see my progress along with some notes to =
> help understanding.
>
> There are two questions, I'd wish could be answered:
>
> 1. Why does TeX insert a blank page before a pagefigure I enclose with= in
> a (hidden) head?
>
> 2. Can the \bookmark[list]{text} command be somehow used for multi-lev= el
> bookmarking?
>
> While the first question would make up for a more consistent solution,=
> the second question would do the job as well.
>
> I hope some of you can enlighten me.
>
> Cheers, k
>
>
> %%% START of MWE
>
> \definehead[VisiSection][section]
> \setuphead[VisiSection][number=3Dno]
>
> \definehead[InvisiSection][VisiSection]
> \setuphead[InvisiSection][placehead=3Dno]
>
> \definelist[CustomBMarks]
>
> \setupinteraction[state=3Dstart]
> \placebookmarks[VisiSection,InvisiSection,CustomBMarks]
>
> \startcomponent * % not a product, no
>=C2=A0 =C2=A0 \startVisiSection[title=3D{Custom Section A}]
>=C2=A0 =C2=A0 =C2=A0 Text of Custom Section A
>=C2=A0 =C2=A0 \stopVisiSection
>=C2=A0 =C2=A0 \page
>=C2=A0 =C2=A0 \startVisiSection[title=3D{Custom Section B}]
>=C2=A0 =C2=A0 =C2=A0 Text of Custom Section B
>=C2=A0 =C2=A0 \stopVisiSection
>=C2=A0 =C2=A0 \startInvisiSection[title=3D{Hidden Custom Section A}] >=C2=A0 =C2=A0 =C2=A0 Text of Hidden Custom Section A
>=C2=A0 =C2=A0 \stopInvisiSection
>=C2=A0 =C2=A0 \page
>=C2=A0 =C2=A0 \startInvisiSection[title=3D{Hidden Custom Section B}] >=C2=A0 =C2=A0 =C2=A0 Text of Hidden Custom Section B
>=C2=A0 =C2=A0 \stopInvisiSection
>=C2=A0 =C2=A0 \page
>=C2=A0 =C2=A0 TEST\bookmark[CustomBMarks]{Start of Teststack} \dorecurs= e{800}{TEST
> }NEEDLE\bookmark[CustomBMarks]{Needle in the Teststack}
> \dorecurse{400}{TEST }TEST.\bookmark[CustomBMarks]{End of Teststack} >=C2=A0 =C2=A0 %%%
>=C2=A0 =C2=A0 %%% So far no problems.
>=C2=A0 =C2=A0 %%% The following combination does the job, but I see no = possibility
>=C2=A0 =C2=A0 %%% to arrange the "CustomBMarks"-list in multi= -levels.
>=C2=A0 =C2=A0 %%%
>=C2=A0 =C2=A0 \page
>=C2=A0 =C2=A0 \startstandardmakeup
>=C2=A0 =C2=A0 =C2=A0 \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]= {Pagefigure}
>=C2=A0 =C2=A0 \stopstandardmakeup
>=C2=A0 =C2=A0 %%%
>=C2=A0 =C2=A0 %%% So the following method would be the best choice to w= ork with
>=C2=A0 =C2=A0 %%% multi-level bookmarks. But as soon as I start working= with
>=C2=A0 =C2=A0 %%% (custom) heads together with pagefigures, CTX places = a blank
>=C2=A0 =C2=A0 %%% page before every figure...
>=C2=A0 =C2=A0 %%% Note: you don't need a dummy file. The last (unnu= mbered) page is
>=C2=A0 =C2=A0 %%% the wanted external PDF. The numbered page before is = the unwanted
> one.
>=C2=A0 =C2=A0 %%%
>=C2=A0 =C2=A0 \startInvisiSection[title=3D{External Testpage A}]
>=C2=A0 =C2=A0 =C2=A0 \startstandardmakeup
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 \filterpages[{test.pdf}][1]
>=C2=A0 =C2=A0 =C2=A0 \stopstandardmakeup
>=C2=A0 =C2=A0 \stopInvisiSection
> \stopcomponent
because even a hidden head is something (anchor on page), you can try this:=

=C2=A0 =C2=A0 =C2=A0\startstandardmakeup
=C2=A0 =C2=A0\startInvisiSection[title=3D{External Testpage A}]
=C2=A0 =C2=A0 =C2=A0 =C2=A0\filterpages[{test.pdf}][1]
=C2=A0 =C2=A0\stopInvisiSection
=C2=A0 =C2=A0 =C2=A0\stopstandardmakeup

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.n= l | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / https:= //www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : https://www.pragma-ade.nl / http:= //context.aanhet.net
archive=C2=A0 : https://bitbucket.org/ph= g/context-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
___________________________________________________________________________= ________
--0000000000002b504205e4fc5ad6-- --===============0463507677851247261== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0463507677851247261==--