Layout and breaks\Space

\SpaceCommand

Used to insert an explicit blank box/space with specified width, height, and depth in math mode.

\Space{1em} 2pt {3pt}
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
Not measured
Commonality
low
Tags
spacing, mathjax-extension
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: NoneXeTeX: None
textmacrosMathJax: FullKaTeX: NoneXeTeX: None
About the test scope

Syntax#

\Spacem:L{1em}dimensionm:L{1em}dimensionm:L{1em}dimension

Argspec m:L m:L m:L — three mandatory arguments. Same argspec in base and textmacros. Reading argspecs

Examples#

textmacros

\text{\Space{1em}{.5em}{0em}}

textmacros

\text{\Space 1em .5em 0em}

Package variants#

PackageSignatureAllowed modeNotes
basem:L m:L m:LmathUsed to insert an explicit blank box/space with specified width, height, and depth in math mode.
textmacrosm:L m:L m:LtextUsed to reserve blank space with explicit width, height, and depth in text fragments or legacy MathJax TeX input.

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\Space{1pt}{1pt}{1pt}Positive · baselinePassFailFail
\Space 1pt{1pt}{1pt}Positive · bare[0]PassFailFail
\Space{1pt}1pt{1pt}Positive · bare[1]PassFailFail
\Space{1pt}{1pt}1ptPositive · bare[2]PassFailFail
\Space{a}{1pt}{1pt}Negative · neg:L[0]FailFailFail
\Space{1pt}{a}{1pt}Negative · neg:L[1]FailFailFail
\Space{1pt}{1pt}{a}Negative · neg:L[2]FailFailFail
textmacros
InputCaseMathJaxKaTeXXeTeX
\Space{1pt}{1pt}{1pt}Positive · baselinePassFailFail
\Space 1pt{1pt}{1pt}Positive · bare[0]PassFailFail
\Space{1pt}1pt{1pt}Positive · bare[1]PassFailFail
\Space{1pt}{1pt}1ptPositive · bare[2]PassFailFail
\Space{a}{1pt}{1pt}Negative · neg:L[0]FailFailFail
\Space{1pt}{a}{1pt}Negative · neg:L[1]FailFailFail
\Space{1pt}{1pt}{a}Negative · neg:L[2]FailFailFail
All 24 in Layout and breaks