mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 14:08:42 +00:00
Implement \colon as amsmath does (#1410)
* Implement \colon as amsmath does * Remove \colon from symbols.js * Update screenshots * Pick up comments * Replace screenshots
This commit is contained in:
@@ -289,6 +289,11 @@ defineMacro("\\varPhi", "\\mathit{\\Phi}");
|
||||
defineMacro("\\varPsi", "\\mathit{\\Psi}");
|
||||
defineMacro("\\varOmega", "\\mathit{\\Omega}");
|
||||
|
||||
// \renewcommand{\colon}{\nobreak\mskip2mu\mathpunct{}\nonscript
|
||||
// \mkern-\thinmuskip{:}\mskip6muplus1mu\relax}
|
||||
defineMacro("\\colon", "\\nobreak\\mskip2mu\\mathpunct{}" +
|
||||
"\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu");
|
||||
|
||||
// \newcommand{\boxed}[1]{\fbox{\m@th$\displaystyle#1$}}
|
||||
defineMacro("\\boxed", "\\fbox{\\displaystyle{#1}}");
|
||||
|
||||
|
@@ -592,7 +592,6 @@ defineSymbol(math, main, spacing, null, "\\nobreak");
|
||||
defineSymbol(math, main, spacing, null, "\\allowbreak");
|
||||
defineSymbol(math, main, punct, ",", ",");
|
||||
defineSymbol(math, main, punct, ";", ";");
|
||||
defineSymbol(math, main, punct, ":", "\\colon");
|
||||
defineSymbol(math, ams, bin, "\u22bc", "\\barwedge", true);
|
||||
defineSymbol(math, ams, bin, "\u22bb", "\\veebar", true);
|
||||
defineSymbol(math, main, bin, "\u2299", "\\odot", true);
|
||||
|
Reference in New Issue
Block a user