feat: support AMS log-like symbols (#2429)

* Support AMS log-like symbols

* Update documentation

* Update \limits info in documentation
This commit is contained in:
Ron Kok
2020-08-17 13:28:42 -07:00
committed by GitHub
parent 221042be86
commit 794dc7a213
4 changed files with 42 additions and 20 deletions

View File

@@ -3439,6 +3439,16 @@ describe("A macro expander", function() {
expect`\liminf`.toParseLike`\operatorname*{lim\,inf}`;
});
it("should expand AMS log-like symbols as expected", () => {
expect`\injlim`.toParseLike`\operatorname*{int\,lim}`;
expect`\projlim`.toParseLike`\operatorname*{proj\,lim}`;
expect`\varlimsup`.toParseLike`\operatorname*{\overline{lim}}`;
expect`\varliminf`.toParseLike`\operatorname*{\underline{lim}}`;
expect`\varinjlim`.toParseLike`\operatorname*{\underrightarrow{lim}}`;
expect`\varinjlim`.toParseLike`\operatorname*{\underrightarrow{lim}}`;
expect`\varprojlim`.toParseLike`\operatorname*{\underleftarrow{lim}}`;
});
it("should expand \\plim as expected", () => {
expect`\plim`.toParseLike`\mathop{\operatorname{plim}}\limits`;
});