summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-bkm.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/strc-bkm.mkiv')
-rw-r--r--tex/context/base/strc-bkm.mkiv14
1 files changed, 9 insertions, 5 deletions
diff --git a/tex/context/base/strc-bkm.mkiv b/tex/context/base/strc-bkm.mkiv
index f0cfa2a2f..b7a5bc805 100644
--- a/tex/context/base/strc-bkm.mkiv
+++ b/tex/context/base/strc-bkm.mkiv
@@ -50,7 +50,7 @@
\def\dobookmark[#1]#2%
{\begingroup
\simplifycommands
- \ctxlua{structure.bookmarks.overload("#1",\!!bs\detokenize\expandafter{\normalexpanded{#2}}\!!es)}%
+ \ctxlua{structures.bookmarks.overload("#1",\!!bs\detokenize\expandafter{\normalexpanded{#2}}\!!es)}%
\endgroup}
%D Placement \unknown\ look how simple compared to \MKII:
@@ -66,6 +66,10 @@
\unexpanded\def\placebookmarks
{\dotripleempty\doplacebookmarks}
+% Use force to get titles in the bookmarklist. This is somewhat tricky as one
+% does not want "Contents" in a table of contents but it has to be in the
+% bookmark list.
+
\def\doplacebookmarks[#1][#2][#3]%
{\iflocation
\begingroup
@@ -82,7 +86,7 @@
\else\ifsecondargument
\doifassignmentelse{#2}{\let\askedopened\empty\getparameters[\??bm][#2]}\donothing
\fi\fi
- \ctxlua{structure.bookmarks.register {
+ \ctxlua{structures.bookmarks.register {
names = "\askednames",
opened = "\askedopened",
force = "\bookmarkparameter\c!force",
@@ -96,7 +100,7 @@
\c!number=\v!yes] % might become v!no
\appendtoks
- \ctxlua{structure.bookmarks.setup {
+ \ctxlua{structures.bookmarks.setup {
separatorset = "\bookmarkparameter\c!numberseparatorset",
conversionset = "\bookmarkparameter\c!numberconversionset",
starter = \!!bs\bookmarkparameter\c!numberstarter\!!es,
@@ -105,8 +109,8 @@
}}%
\to \everysetupbookmarks
-% \prependtoks\ctxlua{structure.bookmarks.place()}\to\everystoptext % too late
-% \prependtoks\ctxlua{structure.bookmarks.place()}\to\everylastbackendshipout % okay but not nice
+% \prependtoks\ctxlua{structures.bookmarks.place()}\to\everystoptext % too late
+% \prependtoks\ctxlua{structures.bookmarks.place()}\to\everylastbackendshipout % okay but not nice
\protect \endinput