diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/modules/mkiv/x-asciimath.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/modules/mkiv/x-asciimath.lua | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/context/modules/mkiv/x-asciimath.lua b/Master/texmf-dist/tex/context/modules/mkiv/x-asciimath.lua index 677ab0ce562..b0d45659e30 100644 --- a/Master/texmf-dist/tex/context/modules/mkiv/x-asciimath.lua +++ b/Master/texmf-dist/tex/context/modules/mkiv/x-asciimath.lua @@ -132,12 +132,6 @@ local reserved = { ["overbar"] = { false, "\\overline", "unary" }, ["overline"] = { false, "\\overline", "unary" }, ["underline"] = { false, "\\underline", "unary" }, - ["overbrace"] = { false, "\\overbrace", "unary" }, - ["underbrace"]= { false, "\\underbrace", "unary" }, - ["overset"] = { false, "\\overset", "unary" }, - ["underset"] = { false, "\\underset", "unary" }, - ["obrace"] = { false, "\\overbrace", "unary" }, - ["ubrace"] = { false, "\\underbrace", "unary" }, ["ul"] = { false, "\\underline", "unary" }, ["vec"] = { false, "\\overrightarrow", "unary" }, ["dot"] = { false, "\\dot", "unary" }, -- 0x2D9 @@ -149,7 +143,6 @@ local reserved = { ["-"] = { true, "-" }, ["*"] = { true, "⋅" }, ["**"] = { true, "⋆" }, - ["////"] = { true, "⁄⁄" }, -- crap ["//"] = { true, "⁄" }, -- \slash ["\\"] = { true, "\\" }, ["xx"] = { true, "×" }, @@ -756,14 +749,11 @@ end reserved.P = nil reserved.S = nil - local isbinary = { ["\\frac"] = true, ["\\root"] = true, ["\\asciimathroot"] = true, ["\\asciimathstackrel"] = true, - ["\\overset"] = true, - ["\\underset"] = true, } local isunary = { -- can be taken from reserved @@ -782,10 +772,6 @@ local isunary = { -- can be taken from reserved ["\\dot"] = true, -- ["\\ddot"] = true, -- - ["\\overbrace"] = true, - ["\\underbrace"] = true, - ["\\obrace"] = true, - ["\\ubrace"] = true, } local isfunny = { @@ -1729,14 +1715,8 @@ local function collapse_fractions_2(t) while i < n do local current = t[i] if current == "⁄" and i > 1 then -- \slash - if i < n and t[i+1] == "⁄" then - -- crap for - t[m] = "{" .. s_left .. t[i-1] .. s_mslash .. s_mslash .. t[i+2] .. s_right .. "}" - i = i + 3 - else - t[m] = "{" .. s_left .. t[i-1] .. s_mslash .. t[i+1] .. s_right .. "}" - i = i + 2 - end + t[m] = "{" .. s_left .. t[i-1] .. s_mslash .. t[i+1] .. s_right .. "}" + i = i + 2 if i < n then m = m + 1 t[m] = t[i] |