* Fix \fbox

* Fix lint errors

* Change negative space test from \fbox to \boxed
This commit is contained in:
Ron Kok
2018-08-04 20:32:06 -07:00
committed by GitHub
parent aef9256419
commit b2d38104cd
4 changed files with 30 additions and 3 deletions

View File

@@ -195,7 +195,28 @@ defineFunction({
defineFunction({
type: "enclose",
names: ["\\cancel", "\\bcancel", "\\xcancel", "\\sout", "\\fbox"],
names: ["\\fbox"],
props: {
numArgs: 1,
argTypes: ["text"],
allowedInText: true,
},
handler({parser}, args) {
return {
type: "enclose",
mode: parser.mode,
value: {
type: "enclose",
label: "\\fbox",
body: args[0],
},
};
},
});
defineFunction({
type: "enclose",
names: ["\\cancel", "\\bcancel", "\\xcancel", "\\sout"],
props: {
numArgs: 1,
},

View File

@@ -441,7 +441,7 @@ defineMacro("\\colon", "\\nobreak\\mskip2mu\\mathpunct{}" +
"\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu");
// \newcommand{\boxed}[1]{\fbox{\m@th$\displaystyle#1$}}
defineMacro("\\boxed", "\\fbox{\\displaystyle{#1}}");
defineMacro("\\boxed", "\\fbox{$\\displaystyle{#1}$}");
// \def\iff{\DOTSB\;\Longleftrightarrow\;}
// \def\implies{\DOTSB\;\Longrightarrow\;}