Skip to content

Commit

Permalink
Replace named space with numeric em values for \pmod
Browse files Browse the repository at this point in the history
See #60
  • Loading branch information
fred-wang committed Mar 23, 2019
1 parent fcce5a0 commit f5b1388
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion TeXZilla.jison
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,9 @@ closedTerm
$$ = newTag("mrow", newMo("(") + $$ + newMo(")"));
}
| PMOD closedTerm {
$$ = "<mrow><mo lspace=\"mediummathspace\">(</mo><mo rspace=\"thinmathspace\">mod</mo>" + $2 + "<mo rspace=\"mediummathspace\">)</mo></mrow>";
$$ = newTag("mrow", newMo("(", namedSpaceToEm("mediummathspace")) +
newMo("mod", undefined, namedSpaceToEm("thinmathspace")) + $2 +
newMo(")", undefined, namedSpaceToEm("mediummathspace")));
}
| UNDERBRACE closedTerm { $$ = newTag("munder", $2 + newMo("\u23DF")); }
| UNDERLINE closedTerm { $$ = newTag("munder", $2 + newMo("_")); }
Expand Down
2 changes: 1 addition & 1 deletion unit-tests.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5b1388

Please sign in to comment.