Spacing\vphantom

\vphantomCommand

Used to reserve vertical space in a mathematical formula corresponding to the argument, while taking up zero horizontal space.

\vphantom{x}
Topic
Spacing
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
0.03% of corpus formulasrank 145 of 263
Commonality
medium
Tags
invisible, spacing
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
textmacrosMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\vphantomm{a}math content

Argspec m — one mandatory argument. In base. Reading argspecs

\vphantomm:T{a}text content

Argspec m:T — one mandatory argument. In textmacros. Reading argspecs

Examples#

base

\vphantom{\sum}

textmacros

\text{\vphantom{abc}}

Package variants#

PackageSignatureAllowed modeNotes
basemmathUsed to reserve vertical space in a mathematical formula corresponding to the argument, while taking up zero horizontal space.
textmacrosm:TtextUsed to match vertical height for delimiters or math structures across different lines or cells without adding horizontal space.

In TeXForm#

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

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\vphantom{a}Positive · baselinePassPassPass
\vphantom aPositive · bare[0]PassPassPass
textmacros
InputCaseMathJaxKaTeXXeTeX
\vphantom{a}Positive · baselinePassPassPass
\vphantom aPositive · bare[0]PassPassPass
\vphantom{a^2}Negative · neg:T[0]FailFailFail
All 32 in Spacing