Spacing\

\ Command

Used as control-space to insert an explicit nonbreaking space, especially when a literal space would be ignored or to force spacing after a control word.

a\ b
Topic
Spacing
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
5.97% of corpus formulasrank 11 of 263
Commonality
medium
Tags
spacing
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
textmacrosMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\

Takes no arguments. Same argspec in base and textmacros. Reading argspecs

Common tasks#

How to insert a space after a control word#

\ followed by a space is a control space; it keeps a word-like gap after \log.

\log\ x

How to keep a visible gap between two letters#

a\ b

Examples#

textmacros

\text{hello\ world}

Package variants#

PackageSignatureAllowed modeNotes
basemathUsed as control-space to insert an explicit nonbreaking space, especially when a literal space would be ignored or to force spacing after a control word.
textmacrostextUsed as TeX control-space in text mode to insert a literal space character, especially after a control sequence or when a space must be quoted explicitly inside text macros.

In TeXForm#

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

Equivalent forms#

  • \spaceexact

    Mapped to the same MathJax parse method and produces the same nonbreaking-space token.

  • ~exact

    The active tilde character is handled by the same parse method in MathJax math mode.

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\ Positive · baselinePassPassPass
textmacros
InputCaseMathJaxKaTeXXeTeX
\ Positive · baselinePassPassPass
All 32 in Spacing