Spacing\hskip

\hskipCommand

Low-level manual horizontal spacing in math expressions or macro definitions.

\hskip 10pt
Topic
Spacing
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
Not measured
Commonality
low
Tags
spacing, discouraged
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Partial
textmacrosMathJax: FullKaTeX: FullXeTeX: Partial
About the test scope

Syntax#

\hskipm:L{1em}dimension

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

Examples#

base

\hskip{10pt}

base

a \hskip 2em b

textmacros

\text{\hskip 1em}

textmacros

\text{\hskip{1em}}

Package variants#

PackageSignatureAllowed modeNotes
basem:LmathLow-level manual horizontal spacing in math expressions or macro definitions.
textmacrosm:LtextUsed to insert explicit horizontal space in text, especially in low-level TeX-style spacing adjustments.

In TeXForm#

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

base/hskip-to-hspacefrom Authoringreading

Collapse hskip to the explicit hspace command.

\hskip #1 \hspace{#1}

Equivalent forms#

  • \hspace #1exact

    Both names are mapped directly to the same MathJax parse method with no extra parameters.

See also#

Test cases#

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