From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113495 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: Tue, 23 Nov 2021 07:42:44 +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="===============7813059648862126007==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18666"; mail-complaints-to="usenet@ciao.gmane.io" Cc: musa furber To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 23 00:43:38 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 1mpIyI-0004gc-Jo for gctc-ntg-context-518@m.gmane-mx.org; Tue, 23 Nov 2021 00:43:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6096D28966A; Tue, 23 Nov 2021 00:43:02 +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 v0l_G9kL45sx; Tue, 23 Nov 2021 00:43:00 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3BF0C289695; Tue, 23 Nov 2021 00:43:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E6F2028966A for ; Tue, 23 Nov 2021 00:42:58 +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 EmW0YQKf5C5C for ; Tue, 23 Nov 2021 00:42:58 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.52; helo=mail-qv1-f52.google.com; envelope-from=musafurber@gmail.com; receiver= Original-Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 C4F032893C3 for ; Tue, 23 Nov 2021 00:42:57 +0100 (CET) Original-Received: by mail-qv1-f52.google.com with SMTP id bu11so13704208qvb.0 for ; Mon, 22 Nov 2021 15:42:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=So4Sf2ORy+taaiEuZCXpxauKrbh1Vc/BXfMqXT3RTPc=; b=K6CSBtyphx4bQxMwlgpKpTRpku0QjnjsfvpCX86eUkWvQ/Gah9+qDeDfapFWCWGRGN p0CTacmRAlrt7VY/xmyNhdLen9GywgeVyA96C0jbdm1dXgSO1Q7LXUlz2UPysd4byHTN HBT6VcaTPPLww8I778QstIpI0K5PDXjw8ZFUSmkv0+IU6SD+/m/KAGiOOH9nP1+q7NlK sjMUhoeV60QgnOJtRgCvg+/dbPakQXhVTwWPuk3GG1pw5ey4d3d39Zx3w/AQGfVIoPqC HJJ5PxGjTSbU5nh5a2CNdQ62/qFlV5kqMnaNPRJS7xO5naVTExxLBEXikWcm3HupQ88d mPUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=So4Sf2ORy+taaiEuZCXpxauKrbh1Vc/BXfMqXT3RTPc=; b=zPypwo0jkyeVQX0a9hrK99X0tMDeHWBOT+TsZyDhQOX1k2MJ7/ItRd5ZZfMHKuDyim 435LvIiCTAO7jGEbtjtvVMWUUbYYteSWSdeSDvS9bHDhZ6nVnY3kMIkkpE6SFRrr0BzF +84idh16kSCHQFsKTo8JyjbTJPDI18NnKRefuUjcBoIeVR8axqqErkwyghZE1Svv3Kx9 VBfxX0+X7ZbnJe2hXA/iCZFRk2MHk2N6nl8LyWO9vs48wnvRhgPF290ZfvH5WhvyXwxs /36ryHvd+b95AObp7x3UX967M4ThOIvMo7n6XdeWSNs2HZQDIfmJjltFYFIIYmWKcBjZ E6NA== X-Gm-Message-State: AOAM530r7wzQUYz36zlXhcVJiMUA67SnsvZCaIb3KhusUZt3I5Rl5C4w i4h+q238fGdD2koC7oNhauPhJycjvmdvMRhJW6eO3m/qWVAXOA== X-Google-Smtp-Source: ABdhPJwJBanxY7Q5sHFAAz2kJiaXkV2GPq5GhQrHVCpFtJjBeo6wGEbDASmbJb2UjY2Kvi4OVUH428N8h4MJVr9UFdk= X-Received: by 2002:ad4:5cc9:: with SMTP id iu9mr960691qvb.9.1637624575690; Mon, 22 Nov 2021 15:42:55 -0800 (PST) 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:113495 Archived-At: --===============7813059648862126007== Content-Type: multipart/alternative; boundary="0000000000001c090a05d1692fcf" --0000000000001c090a05d1692fcf Content-Type: text/plain; charset="UTF-8" On Mon, Nov 22, 2021 at 6:28 PM 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={...},list={...},bookmark={...}] > ... > \stopsection > Thank you, Hans. This pointer is exactly what I needed. --0000000000001c090a05d1692fcf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Nov 22, 2021 at 6:28 PM Hans Hage= n 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 something that doe= s
> not work as I expected it to based on various documentation and exampl= es.
>
> 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 ba= ck
> 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 <= br> > 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{...}]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ...
\stopsection

Thank you, Hans. This poin= ter is exactly what I needed.
--0000000000001c090a05d1692fcf-- --===============7813059648862126007== 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== --===============7813059648862126007==--