mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 05:58:40 +00:00
Add symbol double square brackets (#1947)
* Add symbol double square brackets * Update name for double square brackets, add macros and documentation
This commit is contained in:
@@ -834,13 +834,20 @@ defineMacro("\\varsupsetneq", "\\html@mathml{\\@varsupsetneq}{⊋}");
|
||||
defineMacro("\\varsupsetneqq", "\\html@mathml{\\@varsupsetneqq}{⫌}");
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// semantic
|
||||
// stmaryrd and semantic
|
||||
|
||||
// The semantic package renders the next two items by calling a glyph from the
|
||||
// bbold package. Those glyphs do not exist in the KaTeX fonts. Hence the macros.
|
||||
// The stmaryrd and semantic packages render the next four items by calling a
|
||||
// glyph. Those glyphs do not exist in the KaTeX fonts. Hence the macros.
|
||||
|
||||
defineMacro("\u27e6", "\\mathopen{[\\mkern-3.2mu[}"); // blackboard bold [
|
||||
defineMacro("\u27e7", "\\mathclose{]\\mkern-3.2mu]}"); // blackboard bold ]
|
||||
defineMacro("\\llbracket", "\\html@mathml{" +
|
||||
"\\mathopen{[\\mkern-3.2mu[}}" +
|
||||
"{\\mathopen{\\char`\u27e6}}");
|
||||
defineMacro("\\rrbracket", "\\html@mathml{" +
|
||||
"\\mathclose{]\\mkern-3.2mu]}}" +
|
||||
"{\\mathclose{\\char`\u27e7}}");
|
||||
|
||||
defineMacro("\u27e6", "\\llbracket"); // blackboard bold [
|
||||
defineMacro("\u27e7", "\\rrbracket"); // blackboard bold ]
|
||||
|
||||
// TODO: Create variable sized versions of the last two items. I believe that
|
||||
// will require new font glyphs.
|
||||
|
@@ -625,6 +625,8 @@ defineSymbol(math, main, open, "[", "\\lbrack");
|
||||
defineSymbol(text, main, textord, "[", "\\lbrack");
|
||||
defineSymbol(math, main, close, "]", "\\rbrack");
|
||||
defineSymbol(text, main, textord, "]", "\\rbrack");
|
||||
defineSymbol(math, main, open, "\u27e6", "\\llbracket", true);
|
||||
defineSymbol(math, main, close, "\u27e7", "\\rrbracket", true);
|
||||
defineSymbol(math, main, open, "(", "\\lparen");
|
||||
defineSymbol(math, main, close, ")", "\\rparen");
|
||||
defineSymbol(text, main, textord, "<", "\\textless"); // in T1 fontenc
|
||||
|
Reference in New Issue
Block a user