From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115560 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: cryo shock via ntg-context Newsgroups: gmane.comp.tex.context Subject: Unwanted blank page before page figures when using non-placed (hidden) heads Date: Sun, 24 Jul 2022 23:35:47 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2092507571946358776==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17822"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cryo shock To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 24 23:37:00 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 1oFjHX-0004Iv-8a for gctc-ntg-context-518@m.gmane-mx.org; Sun, 24 Jul 2022 23:36:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B54C28A5FE; Sun, 24 Jul 2022 23:36:02 +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 4VWRCgG2fjLO; Sun, 24 Jul 2022 23:35:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ADD9228A530; Sun, 24 Jul 2022 23:35:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9F9DC28A530 for ; Sun, 24 Jul 2022 23:35:57 +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 aV6RGERWmYT7 for ; Sun, 24 Jul 2022 23:35:56 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.173; helo=mail-qk1-f173.google.com; envelope-from=axteffekt@gmail.com; receiver= Original-Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (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 5C11C287971 for ; Sun, 24 Jul 2022 23:35:56 +0200 (CEST) Original-Received: by mail-qk1-f173.google.com with SMTP id z18so7086590qki.2 for ; Sun, 24 Jul 2022 14:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=WMbnP2CPkvgF/MpZvkNZaLeeK5ZwChTcTUEjoK6mRSE=; b=C0q0TLQiRkhsRQn/4V6drcLKW/FJDwomOYRvSXeZZWwKYcyiyBabFpUqlfQ8/HNdg/ MKByuivZa74/qleJOmYPlGIVkEI83yys1Hhfm0ZESYYGldujzP6tIYP2W4zuAuPQtR+c ulo8fkTyNAH5Ayfqz6m0+oe0IUjHWD7GFIi9ekYYsi6g4D03u+he3PdT3HJOX89+J6wx MsJ6omFmKazc94a14hRyT4svJx92WMz8HfC2DUulaCHUZx7YxkwnMlgVAJ773zaBlaXB s56N+l95zKnqngp2c2Mctk2aFhcNUqjCM6kfpHFPfe5Xz7CmVJLbXRBDGjnHpOZj+xiM BF2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WMbnP2CPkvgF/MpZvkNZaLeeK5ZwChTcTUEjoK6mRSE=; b=AWAl545yxOF4Rutonw2sVKbQzNPoZdVTMyNULcOGm+6Qgg0FaxAjNeDCHdFG4CA7J+ dm4BMIdklfd78GCeVRijOyNP5ce1uxcfP63GJRn7srRmmcWexXHJ1CreDWp66jsu8HIt u9O2JUlgHzDhtXsoSZSXbEsZeLPgcFkX2ZczNMnMWKMavkmTnCSBsayP1QKP5ckpXyZh Pct/kEnDnPhuYJJmpNSiMPUPy/OAXXLsAR0AbsxVdsOu0A4LHqeYad00qvCbcM+tK82o wtSlt1D8CzDmY9Mo/JxAuqTK/xl76vbP/g4hMuqS6YhACH5InoR0nTL0SUaSjohpZqbk b+vw== X-Gm-Message-State: AJIora+Fp+R2HlbWlpMQ2mMAiTWojtzv9TYbiQVqQs7B+GeuXnLzysGd N1Nel0Xtfu2hakdLZEUivPARo/FC1uOpYVZ5tW2bgUwLUQ== X-Google-Smtp-Source: AGRyM1uk7Oe952SgQg+/4C6bm4KnLADFkHnXU8AA4R/E1Iq/7ey16ImyFex/DD+EvMR41iIdi0+0i+lSQK+nottDNLc= X-Received: by 2002:a05:620a:2454:b0:6b5:e3b6:d6e8 with SMTP id h20-20020a05620a245400b006b5e3b6d6e8mr7229880qkn.565.1658698553236; Sun, 24 Jul 2022 14:35:53 -0700 (PDT) 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:115560 Archived-At: --===============2092507571946358776== Content-Type: multipart/alternative; boundary="0000000000000e1e2f05e493da23" --0000000000000e1e2f05e493da23 Content-Type: text/plain; charset="UTF-8" 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 %%% END of MWE --0000000000000e1e2f05e493da23 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey there,

I am having trouble understanding some bas= ic blank page behavior. I hope that somebody of you can point me in the rig= ht direction.

My primary= goal is to create application documents consisting of various .tex compone= nts and with external PDF pages inserted as well. The second part of that g= oal is to use multiple-level bookmarking as well. Bookmarking should look l= ike this:

- Letter
=
- Resume
- Testimonies
-- Testimony A
-- Testimony B
-- Testimony C

In the following MWE you can see my progress along with some notes to h= elp understanding.=C2=A0

There are two questions, I'd wish could be answered:

1. Why does TeX insert a blank page befor= e a pagefigure I enclose within a (hidden) head?
2. Can the \bookmark[list]{text} command be someho= w used for multi-level bookmarking?

While the first question would make up for a more consistent so= lution, the second question would do the job as well.

I hope some of you can enlighten me.=C2=A0

Cheers, k


%%% START of MWE

=
\defineh= ead[VisiSection][section]
\setuphead[VisiSection][number=3Dno]

\definehead[I= nvisiSection][VisiSection]
\setuphead[InvisiSection][placehead=3Dno]

\define= list[CustomBMarks]

\setupinteraction[state=3Dstart]
\placebookmarks[VisiSe= ction,InvisiSection,CustomBMarks]

\startcomponent * % not a product, no
=C2= =A0 \startVisiSection[title=3D{Custom Section A}]
=C2=A0 =C2=A0 Text of Custo= m Section A
=C2=A0 \stopVisiSection
=C2=A0 \page
=C2=A0 \startVisiSection[title= =3D{Custom Section B}]
=C2=A0 =C2=A0 Text of Custom Section B
=C2=A0 \stopVisiS= ection
=C2=A0 \startInvisiSection[title=3D{Hidden Custom Section A}]
=C2=A0 =C2= =A0 Text of Hidden Custom Section A
=C2=A0 \stopInvisiSection
=C2=A0 \page
=C2=A0= \startInvisiSection[title=3D{Hidden Custom Section B}]
=C2=A0 =C2=A0 Text of= Hidden Custom Section B
=C2=A0 \stopInvisiSection
=C2=A0 \page
=C2=A0 TEST\bookm= ark[CustomBMarks]{Start of Teststack} \dorecurse{800}{TEST }NEEDLE\bookmark= [CustomBMarks]{Needle in the Teststack} \dorecurse{400}{TEST }TEST.\bookmar= k[CustomBMarks]{End of Teststack}
=C2=A0 %%%
<= font face=3D"monospace" color=3D"#741b47">=C2=A0 %%% So far no problems.
=C2= =A0 %%% The following combination does the job, but I see no possibility
=C2= =A0 %%% to arrange the "CustomBMarks"-list in multi-levels.
=C2=A0 = %%%
=C2=A0 \page
=C2=A0 \startstandardmakeup
=C2=A0 =C2=A0 \filterpages[{test.pdf= }][1]\bookmark[CustomBMarks]{Pagefigure}
=C2=A0 \stopstandardmakeup
=C2=A0 %%%<= /font>
= =C2=A0 %%% So the following method would be the best choice to work with
=C2= =A0 %%% multi-level bookmarks. But as soon as I start working with
=C2=A0 %%%= (custom) heads together with pagefigures, CTX places a blank
<= div dir=3D"auto">=C2=A0 %%% page= before every figure...
=C2=A0 %%% Note: you don't need a dummy file. The= last (unnumbered) page is
=C2=A0 %%% the wanted external PDF. The numbered p= age before is the unwanted one.
=C2=A0 %%%
=C2=A0 \startInvisiSection[title=3D{= External Testpage A}]
=C2=A0 =C2=A0 \startstandardmakeup
=C2=A0 =C2=A0 =C2=A0 \= filterpages[{test.pdf}][1]
=C2=A0 =C2=A0 \stopstandardmakeup
=C2=A0 \stopInvisi= Section
\stopcomponent

%%% END of MWE
--0000000000000e1e2f05e493da23-- --===============2092507571946358776== 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== --===============2092507571946358776==--