mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 11:48:41 +00:00
feat: support AMS log-like symbols (#2429)
* Support AMS log-like symbols * Update documentation * Update \limits info in documentation
This commit is contained in:
@@ -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`;
|
||||
});
|
||||
|
Reference in New Issue
Block a user