Support \pmb (#1418)

* Support \pmb

* Fix lint error

* Add phony screenshots

* Screenshots take two

* Screenshots take three

* Simplify copies

* Move determination of mclass from handler to htmlBuilder

* Change to a macro definition

* Update screenshots

* Pick up review comments

* Clean up nesting of braces

* Update screenshot
This commit is contained in:
Ron Kok
2018-07-22 14:46:12 -07:00
committed by Erik Demaine
parent 74fb394bb5
commit b43ed4b645
5 changed files with 21 additions and 0 deletions

View File

@@ -1535,6 +1535,17 @@ describe("A font parser", function() {
});
});
describe("A \\pmb builder", function() {
it("should not fail", function() {
expect("\\pmb{\\mu}").toBuild();
expect("\\pmb{=}").toBuild();
expect("\\pmb{+}").toBuild();
expect("\\pmb{\\frac{x^2}{x_1}}").toBuild();
expect("\\pmb{}").toBuild();
expect("\\def\\x{1}\\pmb{\\x\\def\\x{2}}").toParseLike("\\pmb{1}");
});
});
describe("A comment parser", function() {
it("should parse comments at the end of a line", () => {
expect("a^2 + b^2 = c^2 % Pythagoras' Theorem\n").toParse();