Fix nested \tfrac (#1370)

Fixes issue #1352.
This commit is contained in:
Ron Kok
2018-05-27 18:59:24 -07:00
committed by ylemkimon
parent e3fb2f95ae
commit d41b0b010a

View File

@@ -75,7 +75,9 @@ defineFunction({
let style = options.style;
if (group.value.size === "display") {
style = Style.DISPLAY;
} else if (group.value.size === "text") {
} else if (group.value.size === "text" &&
style.size === Style.DISPLAY.size) {
// We're in a \tfrac but incoming style is displaystyle, so:
style = Style.TEXT;
}