Remove redundant \lbrack and \rbrack (#1416)

* Remove redundant \lbrack and \rbrack

* Revert macros. Remove redundant code.

* Revert symbols
This commit is contained in:
Ron Kok
2018-06-09 09:51:59 -07:00
committed by Erik Demaine
parent f929f0a683
commit 690285ad4b
2 changed files with 4 additions and 4 deletions

View File

@@ -219,12 +219,12 @@ const makeStackedDelim = function(
top = "\\Uparrow";
repeat = "\u2016";
bottom = "\\Downarrow";
} else if (delim === "[" || delim === "\\lbrack") {
} else if (delim === "[") {
top = "\u23a1";
repeat = "\u23a2";
bottom = "\u23a3";
font = "Size4-Regular";
} else if (delim === "]" || delim === "\\rbrack") {
} else if (delim === "]") {
top = "\u23a4";
repeat = "\u23a5";
bottom = "\u23a6";
@@ -480,7 +480,7 @@ const makeSqrtImage = function(
// There are three kinds of delimiters, delimiters that stack when they become
// too large
const stackLargeDelimiters = [
"(", ")", "[", "\\lbrack", "]", "\\rbrack",
"(", ")", "[", "]",
"\\{", "\\lbrace", "\\}", "\\rbrace",
"\\lfloor", "\\rfloor", "\u230a", "\u230b",
"\\lceil", "\\rceil", "\u2308", "\u2309",

View File

@@ -35,7 +35,7 @@ const delimiterSizes = {
};
const delimiters = [
"(", ")", "[", "\\lbrack", "]", "\\rbrack",
"(", ")", "[", "]",
"\\{", "\\lbrace", "\\}", "\\rbrace",
"\\lfloor", "\\rfloor", "\u230a", "\u230b",
"\\lceil", "\\rceil", "\u2308", "\u2309",