mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 06:58:40 +00:00
Support mediawiki (#1558)
* Support mediawiki * Fix lint error * Fix link to deprecated syntax * Change In master to display of functions
This commit is contained in:
@@ -801,3 +801,77 @@ defineMacro("\\approxcoloncolon",
|
||||
defineMacro("\\notni", "\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");
|
||||
defineMacro("\\limsup", "\\DOTSB\\mathop{\\operatorname{lim\\,sup}}\\limits");
|
||||
defineMacro("\\liminf", "\\DOTSB\\mathop{\\operatorname{lim\\,inf}}\\limits");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// texvc.sty
|
||||
|
||||
// The texvc package contains macros available in mediawiki pages.
|
||||
// We omit the functions deprecated at
|
||||
// https://en.wikipedia.org/wiki/Help:Displaying_a_formula#Deprecated_syntax
|
||||
|
||||
// We also omit texvc's \O, which conflicts with \text{\O}
|
||||
|
||||
defineMacro("\\darr", "\\downarrow");
|
||||
defineMacro("\\dArr", "\\Downarrow");
|
||||
defineMacro("\\Darr", "\\Downarrow");
|
||||
defineMacro("\\lang", "\\langle");
|
||||
defineMacro("\\rang", "\\rangle");
|
||||
defineMacro("\\uarr", "\\uparrow");
|
||||
defineMacro("\\uArr", "\\Uparrow");
|
||||
defineMacro("\\Uarr", "\\Uparrow");
|
||||
defineMacro("\\N", "\\mathbb{N}");
|
||||
defineMacro("\\R", "\\mathbb{R}");
|
||||
defineMacro("\\Z", "\\mathbb{Z}");
|
||||
defineMacro("\\alef", "\\aleph");
|
||||
defineMacro("\\alefsym", "\\aleph");
|
||||
defineMacro("\\Alpha", "\\mathrm{A}");
|
||||
defineMacro("\\Beta", "\\mathrm{B}");
|
||||
defineMacro("\\bull", "\\bullet");
|
||||
defineMacro("\\Chi", "\\mathrm{X}");
|
||||
defineMacro("\\clubs", "\\clubsuit");
|
||||
defineMacro("\\cnums", "\\mathbb{C}");
|
||||
defineMacro("\\Complex", "\\mathbb{C}");
|
||||
defineMacro("\\Dagger", "\\ddagger");
|
||||
defineMacro("\\diamonds", "\\diamondsuit");
|
||||
defineMacro("\\empty", "\\emptyset");
|
||||
defineMacro("\\Epsilon", "\\mathrm{E}");
|
||||
defineMacro("\\Eta", "\\mathrm{H}");
|
||||
defineMacro("\\exist", "\\exists");
|
||||
defineMacro("\\harr", "\\leftrightarrow");
|
||||
defineMacro("\\hArr", "\\Leftrightarrow");
|
||||
defineMacro("\\Harr", "\\Leftrightarrow");
|
||||
defineMacro("\\hearts", "\\heartsuit");
|
||||
defineMacro("\\image", "\\Im");
|
||||
defineMacro("\\infin", "\\infty");
|
||||
defineMacro("\\Iota", "\\mathrm{I}");
|
||||
defineMacro("\\isin", "\\in");
|
||||
defineMacro("\\Kappa", "\\mathrm{K}");
|
||||
defineMacro("\\larr", "\\leftarrow");
|
||||
defineMacro("\\lArr", "\\Leftarrow");
|
||||
defineMacro("\\Larr", "\\Leftarrow");
|
||||
defineMacro("\\lrarr", "\\leftrightarrow");
|
||||
defineMacro("\\lrArr", "\\Leftrightarrow");
|
||||
defineMacro("\\Lrarr", "\\Leftrightarrow");
|
||||
defineMacro("\\Mu", "\\mathrm{M}");
|
||||
defineMacro("\\natnums", "\\mathbb{N}");
|
||||
defineMacro("\\Nu", "\\mathrm{N}");
|
||||
defineMacro("\\Omicron", "\\mathrm{O}");
|
||||
defineMacro("\\plusmn", "\\pm");
|
||||
defineMacro("\\rarr", "\\rightarrow");
|
||||
defineMacro("\\rArr", "\\Rightarrow");
|
||||
defineMacro("\\Rarr", "\\Rightarrow");
|
||||
defineMacro("\\real", "\\Re");
|
||||
defineMacro("\\reals", "\\mathbb{R}");
|
||||
defineMacro("\\Reals", "\\mathbb{R}");
|
||||
defineMacro("\\Rho", "\\mathrm{R}");
|
||||
defineMacro("\\sdot", "\\cdot");
|
||||
defineMacro("\\sect", "\\S");
|
||||
defineMacro("\\spades", "\\spadesuit");
|
||||
defineMacro("\\sub", "\\subset");
|
||||
defineMacro("\\sube", "\\subseteq");
|
||||
defineMacro("\\supe", "\\supseteq");
|
||||
defineMacro("\\Tau", "\\mathrm{T}");
|
||||
defineMacro("\\thetasym", "\\vartheta");
|
||||
// TODO: defineMacro("\\varcoppa", "\\\mbox{\\coppa}");
|
||||
defineMacro("\\weierp", "\\wp");
|
||||
defineMacro("\\Zeta", "\\mathrm{Z}");
|
||||
|
Reference in New Issue
Block a user