Changes

Jump to navigation Jump to search
2,007 bytes added ,  12:53, 16 December 2020
Created page with "Documentation for \bookmark"
<cd:commandgroup name="bookmark" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\bookmark</tt> creates a pdf bookmark
</cd:shortdesc>
<cd:variants>
<cd:command category="pdf" file="strc-bkm.mkiv" interfacedate="2020-06-19T13:41" interfacefile="i-bookmark.xml" level="document" name="bookmark" variantnumber="1">
<cd:arguments>
<cd:keywords optional="yes" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:section"></cd:constant>
<cd:constant type="cd:list"></cd:constant>
</cd:keywords>
<cd:keywords delimiters="braces" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd: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.</cd:description>
<cd:examples><cd:example title=""><texcode>
\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
</texcode></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="strc-bkm.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Pdf"></cd:wikipage>
<cd:wikipage page="Interaction#PDF_Bookmarks">PDF Bookmarks and Headers</cd:wikipage>
<cd:commandref name="_startsection"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu