Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: None | XeTeX: None |
textmacros | MathJax: Full | KaTeX: None | XeTeX: None |
Syntax#
\mspacem:L{1em}dimensionArgspec m:L — one mandatory argument. Same argspec in base and textmacros. Reading argspecs
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | m:L | math | Explicit math spacing with a manually chosen width. |
textmacros | m:L | text | Used to insert explicit horizontal space by giving a dimension directly. |
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Equivalent forms#
\mskip #1exactMathJax maps both names to the same parse method with no extra unit check.
\mskip #1exact
See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\mspace{1pt} | Positive · baseline | Pass | Fail | Fail |
\mspace 1pt | Positive · bare[0] | Pass | Fail | Fail |
\mspace{a} | Negative · neg:L[0] | Fail | Fail | Fail |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\mspace{1pt} | Positive · baseline | Pass | Fail | Fail |
\mspace 1pt | Positive · bare[0] | Pass | Fail | Fail |
\mspace{a} | Negative · neg:L[0] | Fail | Fail | Fail |