Multiple smaller bugs

This commit is contained in:
Marcel Fabian Krüger 2021-04-25 15:25:35 +02:00
parent 933545a64a
commit 8843b99ece

View File

@ -13,6 +13,7 @@ lua.get_functions_table()[funcid] = function()
assert(startmath.id == node.id"math") assert(startmath.id == node.id"math")
local props = assert(properties[startmath]) local props = assert(properties[startmath])
local mml = assert(props.saved_mathml_table) local mml = assert(props.saved_mathml_table)
props.saved_mathml_table = nil
table.insert(mml, 1, {[0] = 'maligngroup'}) table.insert(mml, 1, {[0] = 'maligngroup'})
if mml[0] == 'mstyle' and mml.displaystyle == true then if mml[0] == 'mstyle' and mml.displaystyle == true then
mml[0], mml.displaystyle, mml.scriptlevel = 'mtd', nil, nil mml[0], mml.displaystyle, mml.scriptlevel = 'mtd', nil, nil
@ -46,6 +47,7 @@ lua.get_functions_table()[funcid] = function()
if not props then return end if not props then return end
if not props.mathml_row then return end if not props.mathml_row then return end
mml_row = props.mathml_row mml_row = props.mathml_row
props.mathml_row = nil
props = properties[tex.lists.align_head] props = properties[tex.lists.align_head]
if not props then if not props then
props = {} props = {}
@ -66,8 +68,9 @@ lua.get_functions_table()[funcid] = function()
local props = properties[tex.lists.align_head] local props = properties[tex.lists.align_head]
if not props then return end if not props then return end
local mml_table = props.mathml_table_node_table local mml_table = props.mathml_table_node_table
props.mathml_table_node_table = nil
if not mml_table then return end if not mml_table then return end
print(write_xml(make_root(mml_table, 2))) print(write_xml(make_root(mml_table, 0)))
end end
funcid = luatexbase.new_luafunction'luamml_last_math_alignmark:' funcid = luatexbase.new_luafunction'luamml_last_math_alignmark:'