mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-09 13:08:40 +00:00
Implement \neq and \notin via macros like LaTeX's (#1400)
* Implement \neq and \notin via macros like LaTeX's * Fix test
This commit is contained in:
committed by
Kevin Barabash
parent
97d6229e9b
commit
3d5826c1da
@@ -223,6 +223,17 @@ defineMacro("\\llap", "\\mathllap{\\textrm{#1}}");
|
||||
defineMacro("\\rlap", "\\mathrlap{\\textrm{#1}}");
|
||||
defineMacro("\\clap", "\\mathclap{\\textrm{#1}}");
|
||||
|
||||
// Negated symbols from base/fontmath.ltx:
|
||||
// \def\neq{\not=} \let\ne=\neq
|
||||
// \DeclareRobustCommand
|
||||
// \notin{\mathrel{\m@th\mathpalette\c@ncel\in}}
|
||||
// \def\c@ncel#1#2{\m@th\ooalign{$\hfil#1\mkern1mu/\hfil$\crcr$#1#2$}}
|
||||
defineMacro("\\neq", "\\not=");
|
||||
defineMacro("\\ne", "\\neq");
|
||||
defineMacro("\u2260", "\\neq");
|
||||
defineMacro("\\notin", "\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}");
|
||||
defineMacro("\u2209", "\\notin");
|
||||
|
||||
// Unicode stacked relations
|
||||
defineMacro("\u2258",
|
||||
"\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}");
|
||||
|
Reference in New Issue
Block a user