Support \mkern as an alias for \kern.

This commit is contained in:
Eddie Kohler 2016-12-08 15:04:11 -05:00
parent d5cedc55c9
commit 81bc24808b

View File

@ -205,7 +205,9 @@ defineFunction("\\rule", {
};
});
defineFunction("\\kern", {
// TODO: In TeX, \mkern only accepts mu-units, and \kern does not accept
// mu-units. In current KaTeX we relax this; both commands accept any unit.
defineFunction(["\\kern", "\\mkern"], {
numArgs: 1,
argTypes: ["size"],
}, function(context, args) {