add \i and \j for text mode (#1029)

This commit is contained in:
Kevin Barabash
2017-12-22 11:57:31 -07:00
committed by Erik Demaine
parent c30edaaf5b
commit 2b2cf73f2e
2 changed files with 8 additions and 0 deletions

View File

@@ -646,6 +646,8 @@ defineSymbol(math, main, accent, "\u20d7", "\\vec");
defineSymbol(math, main, accent, "\u02d9", "\\dot");
defineSymbol(math, main, mathord, "\u0131", "\\imath");
defineSymbol(math, main, mathord, "\u0237", "\\jmath");
defineSymbol(text, main, textord, "\u0131", "\\i");
defineSymbol(text, main, textord, "\u0237", "\\j");
defineSymbol(text, main, accent, "\u02ca", "\\'"); // acute
defineSymbol(text, main, accent, "\u02cb", "\\`"); // grave
defineSymbol(text, main, accent, "\u02c6", "\\^"); // circumflex

View File

@@ -2838,3 +2838,9 @@ describe("The \\mathchoice function", function() {
expect(built).toEqual(plain);
});
});
describe("Symbols", function() {
it("should parse \\text{\\i\\j}", () => {
expect("\\text{\\i\\j}").toParse();
});
});