Changes

Jump to navigation Jump to search
474 bytes added ,  10:54, 18 November 2021
m
no edit summary
\placebookmarks[chapter,section,subsection][chapter,section]
\setupinteractionscreen[option=bookmark]
% expand macros in bookmarks
\enabledirectives[references.bookmarks.preroll]
\starttext
\startchapter[title=The beginning]
This will open the document with the bookmarks for chapters and sections visible (read as: and open up the chapter bookmarks)
 
If your titles contain TeX commands or braces, you can choose to expand macros in bookmarks:
 
<texcode>
\enabledirectives[references.bookmarks.preroll]
</texcode>
 
If you want the same document metadata, you can expand macros here, too:
 
<texcode>
\def\title{Some \emph{title}!}
\setupinteraction[title=\title, subtitle=..., author=...]
\enabledirectives[interaction.identity.preroll]
</texcode>
The [[Titles|unnumbered headings]] ({{cmd|title}}, {{cmd|subject}} etc.) do '''not''' create bookmarks, even when listed in {{cmd|placebookmarks}}.
56

edits

Navigation menu