diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/strc-usr.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/strc-usr.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/strc-usr.lua b/Master/texmf-dist/tex/context/base/mkiv/strc-usr.lua new file mode 100644 index 00000000000..f121fe296a7 --- /dev/null +++ b/Master/texmf-dist/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 |