mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-12 22:48:41 +00:00
Add \iff, \implies, \impliedby support. Fix #190.
* Based on @ronkok's code, but without \mathrel as it's absent from amstex.sty. * Add toBuild tests to ensure these operators expand.
This commit is contained in:
@@ -21,3 +21,12 @@ defineMacro("\\endgroup", "}");
|
||||
// \def\overset#1#2{\binrel@{#2}\binrel@@{\mathop{\kern\z@#2}\limits^{#1}}}
|
||||
defineMacro("\\overset", "\\mathop{#2}\\limits^{#1}");
|
||||
defineMacro("\\underset", "\\mathop{#2}\\limits_{#1}");
|
||||
|
||||
//TODO: When implementing \dots, should ideally add the \DOTSB indicator
|
||||
// into the macro, to indicate these are binary operators.
|
||||
// \def\iff{\DOTSB\;\Longleftrightarrow\;}
|
||||
// \def\implies{\DOTSB\;\Longrightarrow\;}
|
||||
// \def\impliedby{\DOTSB\;\Longleftarrow\;}
|
||||
defineMacro("\\iff", "\\;\\Longleftrightarrow\\;");
|
||||
defineMacro("\\implies", "\\;\\Longrightarrow\\;");
|
||||
defineMacro("\\impliedby", "\\;\\Longleftarrow\\;");
|
||||
|
Reference in New Issue
Block a user