summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-res.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/node-res.lua')
-rw-r--r--tex/context/base/mkiv/node-res.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/node-res.lua b/tex/context/base/mkiv/node-res.lua
index a27f5c4e5..1832a0d1e 100644
--- a/tex/context/base/mkiv/node-res.lua
+++ b/tex/context/base/mkiv/node-res.lua
@@ -176,8 +176,15 @@ if CONTEXTLMTXMODE == 0 then
setfield(user_node,"type",usercodes.number)
end
-local left_margin_kern = register_nut(new_nut(nodecodes.marginkern,0))
-local right_margin_kern = register_nut(new_nut(nodecodes.marginkern,1))
+local left_margin_kern, right_margin_kern
+
+if CONTEXTLMTXMODE > 0 then
+ left_margin_kern = register_nut(new_nut(kern_code,kerncodes.leftmargincode))
+ right_margin_kern = register_nut(new_nut(kern_code,kerncodes.rightmargincode))
+else
+ left_margin_kern = register_nut(new_nut(nodecodes.marginkern,0))
+ right_margin_kern = register_nut(new_nut(nodecodes.marginkern,1))
+end
local lineskip = register_nut(new_nut(glue_code,gluecodes.lineskip))
local baselineskip = register_nut(new_nut(glue_code,gluecodes.baselineskip))