[LRN] Added to new symbols - circled dot - parallelogram Conflicts: test/unit/latex.test.js
diff --git a/src/commands/math/advancedSymbols.js b/src/commands/math/advancedSymbols.js index adebbdd..77929fa 100644 --- a/src/commands/math/advancedSymbols.js +++ b/src/commands/math/advancedSymbols.js
@@ -123,7 +123,8 @@ LatexCmds.triangleleft = bind(VanillaSymbol, '\\triangleleft ', '⊲'); LatexCmds.sqcup = bind(VanillaSymbol, '\\sqcup ', '⊔'); LatexCmds.triangleright = bind(VanillaSymbol, '\\triangleright ', '⊳'); -LatexCmds.odot = bind(VanillaSymbol, '\\odot ', '⊙'); +//circledot is not a not real LaTex command see https://github.com/mathquill/mathquill/pull/552 for more details +LatexCmds.odot = LatexCmds.circledot = bind(VanillaSymbol, '\\odot ', '⊙'); LatexCmds.bigcirc = bind(VanillaSymbol, '\\bigcirc ', '◯'); LatexCmds.dagger = bind(VanillaSymbol, '\\dagger ', '†'); LatexCmds.ddagger = bind(VanillaSymbol, '\\ddagger ', '‡'); @@ -191,6 +192,8 @@ LatexCmds.diamondsuit = bind(VanillaSymbol, '\\diamondsuit ', '♢'); LatexCmds.heartsuit = bind(VanillaSymbol, '\\heartsuit ', '♡'); LatexCmds.spadesuit = bind(VanillaSymbol, '\\spadesuit ', '♠'); +//not real LaTex command see https://github.com/mathquill/mathquill/pull/552 for more details +LatexCmds.parallelogram = bind(VanillaSymbol, '\\parallelogram ', '▱'); //variable-sized LatexCmds.oint = bind(VanillaSymbol, '\\oint ', '∮'); @@ -215,7 +218,6 @@ LatexCmds.rbrack = bind(VanillaSymbol, ']'); //various symbols - LatexCmds['∫'] = LatexCmds['int'] = LatexCmds.integral = bind(Symbol,'\\int ','<big>∫</big>');
diff --git a/test/unit/latex.test.js b/test/unit/latex.test.js index 007b913..5795b18 100644 --- a/test/unit/latex.test.js +++ b/test/unit/latex.test.js
@@ -102,6 +102,11 @@ '\\text{apples}\\ne \\text{oranges}'); }); + test('not real LaTex commands, but valid symbols', function() { + assertParsesLatex('\\parallelogram '); + assertParsesLatex('\\circledot ', '\\odot '); + }); + suite('public API', function() { var mq; setup(function() {