Spacing\mspace

\mspaceCommand

Explicit math spacing with a manually chosen width.

\mspace 3mu
Topic
Spacing
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
Not measured
Commonality
low
Tags
spacing
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: NoneXeTeX: None
textmacrosMathJax: FullKaTeX: NoneXeTeX: None
About the test scope

Syntax#

\mspacem:L{1em}dimension

Argspec m:L — one mandatory argument. Same argspec in base and textmacros. Reading argspecs

Examples#

base

\mspace{3mu}

textmacros

\text{\mspace 1em}

textmacros

\text{\mspace{1em}}

Package variants#

PackageSignatureAllowed modeNotes
basem:LmathExplicit math spacing with a manually chosen width.
textmacrosm:LtextUsed 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 #1exact

    MathJax maps both names to the same parse method with no extra unit check.

  • \mskip #1exact

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\mspace{1pt}Positive · baselinePassFailFail
\mspace 1ptPositive · bare[0]PassFailFail
\mspace{a}Negative · neg:L[0]FailFailFail
textmacros
InputCaseMathJaxKaTeXXeTeX
\mspace{1pt}Positive · baselinePassFailFail
\mspace 1ptPositive · bare[0]PassFailFail
\mspace{a}Negative · neg:L[0]FailFailFail
All 32 in Spacing