mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-14 07:18:39 +00:00
Add support for \aa, \AA, \lq, \rq, \lbrack, \rbrack (#1069)
* Add support for \aa, \AA, \lq, \rq, \lbrack, \rbrack The lack of \aa and \AA was reported in #1066. Added these via simple macros, with supporting tests. Also add \lq, \rq, \lbrack, \rbrack as aliases for "`", "'", "[", "]" which were in the same area of latex.ltx. * removed duplicate comment
This commit is contained in:
committed by
Kevin Barabash
parent
0599e09a2d
commit
a32f82a8ea
@@ -96,12 +96,27 @@ defineMacro("\\TextOrMath", function(context) {
|
||||
});
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// basics
|
||||
// Grouping
|
||||
// \let\bgroup={ \let\egroup=}
|
||||
defineMacro("\\bgroup", "{");
|
||||
defineMacro("\\egroup", "}");
|
||||
defineMacro("\\begingroup", "{");
|
||||
defineMacro("\\endgroup", "}");
|
||||
|
||||
// Symbols from latex.ltx:
|
||||
// \def\lq{`}
|
||||
// \def\rq{'}
|
||||
// \def\lbrack{[}
|
||||
// \def\rbrack{]}
|
||||
// \def \aa {\r a}
|
||||
// \def \AA {\r A}
|
||||
defineMacro("\\lq", "`");
|
||||
defineMacro("\\rq", "'");
|
||||
defineMacro("\\lbrack", "[");
|
||||
defineMacro("\\rbrack", "]");
|
||||
defineMacro("\\aa", "\\r a");
|
||||
defineMacro("\\AA", "\\r A");
|
||||
|
||||
// Unicode double-struck letters
|
||||
defineMacro("\u2102", "\\mathbb{C}");
|
||||
defineMacro("\u210D", "\\mathbb{H}");
|
||||
|
Reference in New Issue
Block a user