Command/bookmark

From Wiki
< Command
Revision as of 12:53, 16 December 2020 by Taco (talk | contribs) (Created page with "Documentation for \bookmark")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\bookmark

Summary

The command \bookmark creates a pdf bookmark

Settings

\bookmark[...]{...}
[...]section list
{...}text

Description

Creates a PDF bookmark for the current position in the document.

There is a catch: it only works when you a) define your own list, and b) the section header bookmarks are also enabled. Hence the inclusion of 'chapter' in the example below.

The version without the 'optional' argument (or using a 'section' list name) is a remnant of MkII that has since been replaced by the 'bookmark' key in the actual section environments.

Examples

Example 1

\setupinteraction
  [state=start]

\setupinteractionscreen
  [option=bookmark]

\definelist
  [mylist]

\placebookmarks[chapter,mylist]

\starttext
    \input zapf

    \bookmark[mylist]{Bookmark between Zapf and Tufte}
    \input Tufte

    \page[yes]
    \startchapter[title=Tufte]
        \input tufte
    \stopchapter
\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: