Added \! (negative thin space)

Test Plan: Parses and renders locally. \!\, and \,\! are now no-ops.

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D6395
This commit is contained in:
Alex Lopatin 2014-01-28 16:20:14 -08:00
parent 8c179252c5
commit 50c1242147
3 changed files with 7 additions and 1 deletions

View File

@ -289,6 +289,7 @@ var copyFuncs = {
"\\nleq"
],
"spacing": [
"\\!",
"\\ ",
"\\,",
"\\:",

View File

@ -287,7 +287,8 @@ var groupTypes = {
"\\quad": "quad",
"\\;": "thickspace",
"\\:": "mediumspace",
"\\,": "thinspace"
"\\,": "thinspace",
"\\!": "negativethinspace"
};
return makeSpan(["mord", "mspace", spacingClassMap[group.value]]);

View File

@ -232,6 +232,10 @@ big parens
.mspace {
display: inline-block;
&.negativethinspace {
margin-left: -@thinspace;
}
&.thinspace {
width: @thinspace;
}