Add \enspace (0.5em space)

Summary:
TeX spacing is complicated - there's \enskip and \enspace and the two are
subtly different in some weird way. But \enspace seems to be the preferred
half em space in LaTeX, and the only one which MathJax supports.

Test Plan: Parsed and rendered correctly.

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D6437
This commit is contained in:
Alex Lopatin 2014-01-29 18:14:12 -08:00
parent a3663ce17c
commit ba84964d6f
3 changed files with 6 additions and 0 deletions

View File

@ -294,6 +294,7 @@ var copyFuncs = {
"\\,", "\\,",
"\\:", "\\:",
"\\;", "\\;",
"\\enspace",
"\\qquad", "\\qquad",
"\\quad", "\\quad",
"\\space" "\\space"

View File

@ -285,6 +285,7 @@ var groupTypes = {
var spacingClassMap = { var spacingClassMap = {
"\\qquad": "qquad", "\\qquad": "qquad",
"\\quad": "quad", "\\quad": "quad",
"\\enspace": "enspace",
"\\;": "thickspace", "\\;": "thickspace",
"\\:": "mediumspace", "\\:": "mediumspace",
"\\,": "thinspace", "\\,": "thinspace",

View File

@ -248,6 +248,10 @@ big parens
width: @thickspace; width: @thickspace;
} }
&.enspace {
width: 0.5em;
}
&.quad { &.quad {
width: 1em; width: 1em;
} }