From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113490 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Musa Furber via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Confusing interaction between \writetolist and bookmarks (bug?) Date: Mon, 22 Nov 2021 02:44:24 -0800 Message-ID: References: <9d246c8a-93d4-1577-06c4-bd2be1a68356@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4048194270161012315==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4434"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Musa Furber To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 22 11:44:56 2021 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 1mp6oh-0000zD-W3 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 22 Nov 2021 11:44:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B50F3289631; Mon, 22 Nov 2021 11:44:30 +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 NyTBhjXMglmm; Mon, 22 Nov 2021 11:44:29 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9AA1B2896A5; Mon, 22 Nov 2021 11:44:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 74F1928969D for ; Mon, 22 Nov 2021 11:44:27 +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 wY62Dw4onwNw for ; Mon, 22 Nov 2021 11:44:26 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.173; helo=mail-qk1-f173.google.com; envelope-from=musafurber@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 70278289631 for ; Mon, 22 Nov 2021 11:44:26 +0100 (CET) Original-Received: by mail-qk1-f173.google.com with SMTP id q64so17612006qkd.5 for ; Mon, 22 Nov 2021 02:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to; bh=b2oaNS8+WStGNYwZjT87w3gT9O+3Xzx2eHWGEew5xPk=; b=o/sgHYUXMNLnlGOCekDYq+DoLbjh+Hw63a1bBYC56NPdvRsPslj+2CKN0u9t+PRxSw 8REPM8fWV2aDfy0fBDXuDYfmWqTBObKFyGj+pvf2w1x0CJYCIc3h/7nTe2d5G/vCla5G vB7XdwAs8fncRnLOZ4A+utJn2kNyxvylmAZWVsck5Erjd7xHRxLmdAAUZVvEcbR0+DD8 lfH6RX/gxpLHYE+WYJPZmFkl7VApTLx/BIBMreXJEag09JwCT/B9kEV2vmGioxOFMOBi EFMKEgqHuMj3Ykj9el+Izm7uNL6X4Yd/OWtoblbOYnPTBf8Iy17xR3X760Sz4e9m7ovf ayYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=b2oaNS8+WStGNYwZjT87w3gT9O+3Xzx2eHWGEew5xPk=; b=46miBhmxtvGNygCFgw/phVoglS4paI2sr0ZWOvV29p5a/p6G4PA+ktSsozAo41oN+L 3I6ZLwFXd6fwsaki1BSR9QzpTddMmSEA1ohskwwx9RebukoiputSogUaeGCM8sKXSkG0 mrRLklplTfS1J5bNn6uBjYNLmQwCyEd4XexxuOJydqXc8BJYZfJUS3qfCDog/fdp7y5e ULz+XGZfvdHlyxZxB9BeUMciyYzXt+f0FrB2qNdIe69R+SDSDPSgJRh7BzHFEH0B3bF1 5qezu9WptNGlo2oJbTOf23rzGtuqWTfqYvCOVekGUe4+wUAPekMJGlY1BUeTJ/dexv6u 8HAw== X-Gm-Message-State: AOAM531a0KpNODUaz4VEty/gvv58g+NZmYiuCCUd2W5rugMl2BvbXu5w S6G1K5lkse3rfeYotK7o9GiqYzPe87oaZQ1BVDe7RNQwAQzJxg== X-Google-Smtp-Source: ABdhPJzt3RQhV5eUoQMRjZdeu6fNxjABM4jT7SKUfO5mCQZns1jS4N/oosinvsPOW01OZjpVaMa1HR8BcSIkGifRbVo= X-Received: by 2002:a05:620a:1029:: with SMTP id a9mr46712568qkk.186.1637577864828; Mon, 22 Nov 2021 02:44:24 -0800 (PST) Original-Received: from 1058052472880 named unknown by gmailapi.google.com with HTTPREST; Mon, 22 Nov 2021 02:44:24 -0800 In-Reply-To: <9d246c8a-93d4-1577-06c4-bd2be1a68356@xs4all.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:113490 Archived-At: --===============4048194270161012315== Content-Type: multipart/alternative; boundary="000000000000ecdba405d15e4e02" --000000000000ecdba405d15e4e02 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 22 November 2021 at 18:28:44, Hans Hagen via ntg-context ( ntg-context@ntg.nl) wrote: On 11/22/2021 10:49 AM, musa furber via ntg-context wrote: > I am relatively new to ConTeXt and have encountered something that does > not work as I expected it to based on various documentation and examples. > > My book design requires the front matter to contain an abridged table of > contents just for chapters, and a detailed table of contents in the back > matter. > > Everything worked fine -- including the PDF bookmarks and table of > contents -- until I started using \writetolist to manually inject > additional sections and subsections into their respective lists. The > manually injected entries do show up (as I expected), but their > corresponding PDF bookmarks get repeated (not what I expected). you can probably best use \startsection[title=3D{...},list=3D{...},bookmark=3D{...}] ... \stopsection I do not think that is an option for me. The book is bilingual, with Arabic and English. There are places where I want the chapter, section, and subsection titles to be bilingual as well, with English on the left and Arabic on the right. I accomplish this using the following=E2=80=A6 \defineparagraphs[BilingualTitle][n=3D3,before=3D{\blank[2*line]},after=3D,= ] \setupparagraphs[BilingualTitle][1][width=3D.4\textwidth] \setupparagraphs[BilingualTitle][2][width=3D.12\textwidth] \setupparagraphs[BilingualTitle][3][width=3D.4\textwidth] \define[2]\BilingualChapter {\expanded{\writetolist[chapter]{}{#1}} \startBilingualTitle \noindentation\setlatin{}\tfd\setupinterlinespace\feature[+][smallcaps]\wo= rd{#1}\feature[<] \nextBilingualTitle \hfill\nextBilingualTitle \noindentation\setarabic{}\tfd\setupinterlinespace{#2} \stopBilingualTitle } =E2=80=A6with variants for section, subsection, and subsection. Regards, Musa --000000000000ecdba405d15e4e02 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =
On 2= 2 November 2021 at 18:28:44, Hans Hagen via ntg-context (ntg-context@ntg.nl) wrote:
On 11/22/2021 10:49 AM, musa furber via ntg-c= ontext wrote:
> I am relatively new to ConTeXt and have encountered s= omething that does=C2=A0
&g= t; not work as I expected it to based on various documentation and examples= .
>=C2=A0
> My boo= k design requires the front matter to contain an abridged table of=C2=A0
> contents just for chapte= rs, and a detailed table of contents in the back=C2=A0
> matter.
>=C2=A0
> Everything worked fine -- including the PD= F bookmarks and table of=C2=A0=
> contents -- until I started using \writetolist to manually inject<= span class=3D"Apple-converted-space">=C2=A0
> additional secti= ons and subsections into their respective lists. The=C2=A0
> manually injected entries do show up (= as I expected), but their=C2=A0
> corresponding PDF bookmarks get repeated (not what I expected).you can probably best use

\startsection[title=3D{...},list=3D{...}= ,bookmark=3D{...}]
...
\stopsection


I do not think that is an option for me.

The book i= s bilingual, with Arabic and English. There are places where I want the cha= pter, section, and subsection titles to be bilingual as well, with English = on the left and Arabic on the right. I accomplish this using the following= =E2=80=A6


\defineparagraphs[BilingualTitle][n=3D3,before= =3D{\blank[2*line]},after=3D,]

\setupparagraphs[BilingualTitle][1][wi= dth=3D.4\textwidth]

\setupparagraphs[BilingualTitle][2][width=3D.12\t= extwidth]

\setupparagraphs[BilingualTitle][3][width=3D.4\textwidth]


\define[2]\BilingualChapter

=C2=A0 =C2=A0{\expanded{\= writetolist[chapter]{}{#1}}

=C2=A0 =C2=A0\startBilingualTitle

= =C2=A0 =C2=A0\noindentation\setlatin{}\tfd\setupinterlinespace\feature[+][s= mallcaps]\word{#1}\feature[<]

=C2=A0 =C2=A0\nextBilingualTitle

=

=C2=A0 =C2=A0\hfill\nextBilingualTitle

=C2=A0 =C2=A0\noindentation= \setarabic{}\tfd\setupinterlinespace{#2}

=C2=A0 =C2=A0\stopBilingualT= itle

=C2=A0 }


=E2=80=A6with variants for section, su= bsection, and subsection.


Regards,

Musa

--000000000000ecdba405d15e4e02-- --===============4048194270161012315== 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== --===============4048194270161012315==--