summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/math-tag.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-08-09 21:12:52 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-08-09 21:12:52 +0200
commit76a1861b8ff7c2befbc41270833a4a0919c93c30 (patch)
tree0053915db1de56ac3da2a1415b5447bf66acd81f /tex/context/base/mkiv/math-tag.lua
parente92fac1b64f7969cadd8ae60f336c43624250d42 (diff)
downloadcontext-76a1861b8ff7c2befbc41270833a4a0919c93c30.tar.gz
2019-08-09 18:36:00
Diffstat (limited to 'tex/context/base/mkiv/math-tag.lua')
-rw-r--r--tex/context/base/mkiv/math-tag.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/math-tag.lua b/tex/context/base/mkiv/math-tag.lua
index ee59e5f75..b758c1ff5 100644
--- a/tex/context/base/mkiv/math-tag.lua
+++ b/tex/context/base/mkiv/math-tag.lua
@@ -116,10 +116,10 @@ local function processsubsup(start)
-- start_tagged("mrow")
process(nucleus)
-- stop_tagged()
- start_tagged("mrow")
+ start_tagged("mrow", { subscript = true })
process(sub)
stop_tagged()
- start_tagged("mrow")
+ start_tagged("mrow", { superscript = true })
process(sup)
stop_tagged()
stop_tagged()
@@ -204,7 +204,6 @@ process = function(start) -- we cannot use the processor as we have no finalizer
local mtexttag = nil
while start do
local id = getid(start)
--- print("!!!!!!!!!!",nodecodes[id])
-- showtag(start,id,true)
if id == glyph_code or id == disc_code then
if not mtexttag then
@@ -583,9 +582,10 @@ end
function noads.handlers.tags(head,style,penalties)
start_tagged("math", { mode = (getattr(head,a_mathmode) == 1) and "display" or "inline" })
--- start_tagged("mrow")
setattr(head,a_tagged,start_tagged("mrow"))
+-- showtag(head,getid(head),true)
process(head)
+-- showtag(head,getid(head),false)
stop_tagged()
stop_tagged()
end