ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bruce Horrocks <ntg@scorecrow.com>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Re: Placing extra bookmarks?
Date: Wed, 2 Dec 2020 22:33:17 +0000	[thread overview]
Message-ID: <DE366B9D-C983-4644-A67C-B1347B69EE61@scorecrow.com> (raw)
In-Reply-To: <59a3f509-3615-6630-d28c-60d4315083fc@xs4all.nl>



> On 2 Dec 2020, at 18:42, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 12/2/2020 12:10 AM, Bruce Horrocks wrote:
>> On 1 Dec 2020, at 16:37, Henning Hraban Ramm <texml@fiee.net> wrote:
>>> 
>>>> Am 01.12.2020 um 15:36 schrieb Bruce Horrocks <ntg@scorecrow.com>:
>>>> 
>>>> I have \placebookmarks[chapter] in my doc and all is fine except that I'd like to force an extra bookmark at the top of the list that jumps to the cover page. However there is no chapter title, or other built in style on the cover.
>>>> 
>>>> I tried inserting \bookmark[chapter]{The Cover} but nothing happened - no error, no bookmark.
>>>> 
>>>> Any suggestions please? There's no need to bookmark to a specific point - just going to page 1 would be enough.
>>> 
>>> Did you enable interactions? \setupinteractions[state=start]
>>> 
>>> But when I recently tried to manually set some bookmarks instead of visible chapter titles, I also didn’t get any; didn’t investigate further yet.
> there are some examples in the test suite (sections/bookmarks-*.tex)
> 
> You can specify bookmarks when you use \startsection etc an dalso add them any place to named lists.

Thanks Hans - I never thought to look in the test cases (d'oh!).

For the benefit of those searching the archives in the future, here is an MWE adapted from one of the test cases that places one bookmark via a chapter heading and one manually that is not linked to any document section.

\enabletrackers[references.bookmarks,backend.resources] % For debug only

\setupinteraction
  [state=start]

\setupinteractionscreen
  [option=bookmark]

\definelist
  [mylist]
  
\placebookmarks[chapter,mylist]

\starttext
    \input zapf
    \bookmark[mylist]{Bookmark not linked to a section heading}
    \input zapf
	
    \page[yes]
    \startchapter[title=Tufte]
        \input tufte
    \stopchapter
\stoptext

I shall add it to the Wiki.
--
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2020-12-02 22:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-01 14:36 Bruce Horrocks
2020-12-01 16:37 ` Henning Hraban Ramm
2020-12-01 23:10   ` Bruce Horrocks
2020-12-02 18:42     ` Hans Hagen
2020-12-02 22:33       ` Bruce Horrocks [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DE366B9D-C983-4644-A67C-B1347B69EE61@scorecrow.com \
    --to=ntg@scorecrow.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).