summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-bkm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/strc-bkm.lua')
-rw-r--r--tex/context/base/mkiv/strc-bkm.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/strc-bkm.lua b/tex/context/base/mkiv/strc-bkm.lua
index ee9233a9a..41a128333 100644
--- a/tex/context/base/mkiv/strc-bkm.lua
+++ b/tex/context/base/mkiv/strc-bkm.lua
@@ -42,6 +42,19 @@ local opened = { }
local forced = { }
local numbered = { }
+function bookmarks.setopened(key,value)
+ if value == nil then
+ value = true
+ end
+ if type(key) == "table" then
+ for i=1,#key do
+ opened[key[i]] = value
+ end
+ else
+ opened[key] = value
+ end
+end
+
function bookmarks.register(settings)
local force = settings.force == variables.yes
local number = settings.number == variables.yes