mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 21:48:41 +00:00
Improve MathML for corners (#1922)
This commit is contained in:
@@ -405,6 +405,13 @@ defineMacro("\u00A9", "\\copyright");
|
||||
defineMacro("\u00AE", "\\textregistered");
|
||||
defineMacro("\uFE0F", "\\textregistered");
|
||||
|
||||
// The KaTeX fonts have corners at codepoints that don't match Unicode.
|
||||
// For MathML purposes, use the Unicode code point.
|
||||
defineMacro("\\ulcorner", "\\html@mathml{\\@ulcorner}{\\mathop{\\char\"231c}}");
|
||||
defineMacro("\\urcorner", "\\html@mathml{\\@urcorner}{\\mathop{\\char\"231d}}");
|
||||
defineMacro("\\llcorner", "\\html@mathml{\\@llcorner}{\\mathop{\\char\"231e}}");
|
||||
defineMacro("\\lrcorner", "\\html@mathml{\\@lrcorner}{\\mathop{\\char\"231f}}");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// LaTeX_2ε
|
||||
|
||||
|
@@ -310,10 +310,10 @@ defineSymbol(math, ams, textord, "\u03dd", "\\digamma", true);
|
||||
defineSymbol(math, ams, textord, "\u03f0", "\\varkappa");
|
||||
|
||||
// AMS Delimiters
|
||||
defineSymbol(math, ams, open, "\u250c", "\\ulcorner", true);
|
||||
defineSymbol(math, ams, close, "\u2510", "\\urcorner", true);
|
||||
defineSymbol(math, ams, open, "\u2514", "\\llcorner", true);
|
||||
defineSymbol(math, ams, close, "\u2518", "\\lrcorner", true);
|
||||
defineSymbol(math, ams, open, "\u250c", "\\@ulcorner", true);
|
||||
defineSymbol(math, ams, close, "\u2510", "\\@urcorner", true);
|
||||
defineSymbol(math, ams, open, "\u2514", "\\@llcorner", true);
|
||||
defineSymbol(math, ams, close, "\u2518", "\\@lrcorner", true);
|
||||
|
||||
// AMS Binary Relations
|
||||
defineSymbol(math, ams, rel, "\u2266", "\\leqq", true);
|
||||
|
Reference in New Issue
Block a user