TopicsSpacing

SpacingTopic

Horizontal and vertical space, phantoms, and struts.

This topic has 32 commands from the base, textmacros, and ams packages. Commands show whether MathJax, KaTeX, and XeTeX render them. Entries are ordered by how often they appear in corpus formulas.

Entries
32 commands
Packages
base 29 · textmacros 21 · ams 3
Most used
\\ 24.30%
Full support
MathJax 31/32 · KaTeX 24/32 · XeTeX 23/32

Entries#

NameDefinitionPackagesMathJaxKaTeXXeTeXFrequency
\\No description yetbase, textmacrosMathJax: FullKaTeX: FullXeTeX: Partial24.30%
\,Adds a thin math space between nearby symbols for fine typographic adjustment in formulas.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full13.92%
\ 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.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full5.97%
\;Adds a thick math space between nearby symbols for manual spacing in formulas.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full3.97%
\!Adds a negative thin math space to tighten spacing between nearby symbols in formulas.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full1.50%
\:Adds a medium math space between nearby symbols for manual spacing in formulas.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full0.54%
\enspaceUsed to insert a half-em horizontal space in math expressions when manual spacing is desired.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full0.10%
\>Adds a medium math space in math mode as an alternate medium-space command.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full0.06%
\phantomUsed to reserve space in mathematical formulas equal to the size of the argument without printing it.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full0.05%
\thinspaceUsed to insert a small positive horizontal space in math when explicit fine spacing is needed.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full0.04%
\hfillUsed inside an array-like cell to mark a horizontal fill position that MathJax later converts into cell alignment metadata; at the start or end of a cell it can force right/left alignment, and markers at both ends center the entry.baseMathJax: FullKaTeX: NoneXeTeX: Full0.03%
\vphantomUsed to reserve vertical space in a mathematical formula corresponding to the argument, while taking up zero horizontal space.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full0.03%
\hphantomUsed to reserve horizontal space in a mathematical formula corresponding to the argument, while taking up zero vertical space.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full0.02%
\quadUsed to insert a one-em horizontal space between parts of a math formula or displayed equation.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full<0.01%
\hspaceManual horizontal spacing around symbols or subexpressions in math formulas.base, textmacrosMathJax: PartialKaTeX: PartialXeTeX: Partial<0.01%
\mathstrutUsed as an invisible math strut to force consistent height and depth in formulas, arrays, or aligned materialbaseMathJax: FullKaTeX: FullXeTeX: Full<0.01%
\strutUsed to insert a vertical space with standard height and depth without affecting horizontal spacing, often useful inside tabular environments or fractions to prevent layout collapsing.baseMathJax: FullKaTeX: NoneXeTeX: Full<0.01%
\negthinspaceUsed to insert a small negative horizontal space in math to tighten spacing between adjacent symbols.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full<0.01%
\negthickspaceUsed in AMS math expressions to tighten spacing by a thick negative amount between adjacent symbols or subexpressions.amsMathJax: FullKaTeX: FullXeTeX: Full<0.01%
\qquadUsed to insert a double-em horizontal space in math displays, often to separate larger formula parts.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Full<0.01%
\negmedspaceUsed in AMS math expressions to tighten spacing by a medium negative amount between adjacent symbols or subexpressions.amsMathJax: FullKaTeX: FullXeTeX: Full<0.01%
\hfilUsed as the lower-level TeX primitive form of \hfill inside an array-like cell; in MathJax it marks a fill position that later affects the cell's alignment.baseMathJax: FullKaTeX: NoneXeTeX: Full<0.01%
\spaceInserts an explicit nonbreaking space in math input, typically when the author wants literal whitespace preserved between math atoms.baseMathJax: FullKaTeX: FullXeTeX: Full<0.01%
\nonscriptUsed before a space command to suppress that spacing in subscripts, superscripts, or other script styles while keeping it in the main math style.baseMathJax: FullKaTeX: NoneXeTeX: Full<0.01%
\nobreakspaceUsed to insert an explicit nonbreaking space in math expressions, especially where ordinary spaces would be ignored.amsMathJax: FullKaTeX: FullXeTeX: Full<0.01%
\hfilllMathJax compatibility alias for array-cell fill markers; used like \hfill inside an array-like cell when input contains the nonstandard name \hfilll.baseMathJax: FullKaTeX: NoneXeTeX: None—
\hsizeUsed in TeX-style box constructions to set the horizontal size/line width that subsequent \vbox, \vtop, or \vcenter content should use for wrapping.baseMathJax: FullKaTeX: NoneXeTeX: Partial—
\hskipLow-level manual horizontal spacing in math expressions or macro definitions.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Partial—
\kernFine manual spacing or kerning in math where the inserted space should inhibit a line break.base, textmacrosMathJax: FullKaTeX: FullXeTeX: Partial—
\mkernFine math kerning between symbols where the inserted space should not become a line-break opportunity.base, textmacrosMathJax: FullKaTeX: FullXeTeX: None—
\mskipManual math spacing between atoms using an explicit dimension.base, textmacrosMathJax: FullKaTeX: FullXeTeX: None—
\mspaceExplicit math spacing with a manually chosen width.base, textmacrosMathJax: FullKaTeX: NoneXeTeX: None—