summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-usr.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-08-28 17:36:57 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-08-28 17:36:57 +0200
commit5794d8b0c845aad2ab4cf36dc14201b21ef5a784 (patch)
tree0ed7f952d69e07a2a885f76fcb7f24499dd20768 /tex/context/base/mkiv/strc-usr.lua
parentb098b3973dd4a38184882a4a5b84aad2bdd5835a (diff)
downloadcontext-5794d8b0c845aad2ab4cf36dc14201b21ef5a784.tar.gz
2018-08-28 17:29:00
Diffstat (limited to 'tex/context/base/mkiv/strc-usr.lua')
-rw-r--r--tex/context/base/mkiv/strc-usr.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/strc-usr.lua b/tex/context/base/mkiv/strc-usr.lua
new file mode 100644
index 000000000..f121fe296
--- /dev/null
+++ b/tex/context/base/mkiv/strc-usr.lua
@@ -0,0 +1,29 @@
+if not modules then modules = { } end modules ['strc-usr'] = {
+ version = 1.000,
+ comment = "companion to strc-usr.mkiv",
+ author = "Wolfgang Schuster",
+ copyright = "PRAGMA ADE / ConTeXt Development Team",
+ license = "see context related readme files"
+}
+
+-- The following is copied from \type {tabl-xtb.lua} to make the userdata environment
+-- work with \LUA\ documents.
+
+local context = context
+local ctxcore = context.core
+
+local startuserdata = ctxcore.startuserdata
+local stopuserdata = ctxcore.stopuserdata
+
+local startcollecting = context.startcollecting
+local stopcollecting = context.stopcollecting
+
+function ctxcore.startuserdata(...)
+ startcollecting()
+ startuserdata(...)
+end
+
+function ctxcore.stopuserdata()
+ stopuserdata()
+ stopcollecting()
+end