Fix units for height and width in mspace
This commit is contained in:
parent
7a52f5580b
commit
89f8e2a79a
@ -462,13 +462,13 @@ local function rule_to_table(rule, sub, cur_style)
|
|||||||
if height == running_length then
|
if height == running_length then
|
||||||
height = '0.8em'
|
height = '0.8em'
|
||||||
else
|
else
|
||||||
height = height
|
height = string.format("%.3fpt", height/65781.76)
|
||||||
end
|
end
|
||||||
local depth = rule.depth
|
local depth = rule.depth
|
||||||
if depth == running_length then
|
if depth == running_length then
|
||||||
depth = '0.2em'
|
depth = '0.2em'
|
||||||
else
|
else
|
||||||
depth = depth
|
depth = string.format("%.3fpt", depth/65781.76)
|
||||||
end
|
end
|
||||||
return {[0] = 'mspace', mathbackground = 'currentColor', width = width, height = height, depth = depth}, space_like
|
return {[0] = 'mspace', mathbackground = 'currentColor', width = width, height = height, depth = depth}, space_like
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user