From 81bc24808b40be8901a4540de7131b72be58fb16 Mon Sep 17 00:00:00 2001 From: Eddie Kohler Date: Thu, 8 Dec 2016 15:04:11 -0500 Subject: [PATCH] Support \mkern as an alias for \kern. --- src/functions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/functions.js b/src/functions.js index 121bc99..7e50ccc 100644 --- a/src/functions.js +++ b/src/functions.js @@ -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) {