Boxes and text\parbox

\parboxCommand

Creates a fixed-width paragraph box around content, with optional vertical alignment, for line-breaking or boxing short text/math material.

\parbox{2em}{x}
Available in
base
Kind
prefix
Allowed mode
both
Frequency
<0.01% of corpus formulasrank 190 of 263
Commonality
medium
Tags
presentation
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

\parboxO{c}:N[\cs]optional control sequencem:L{1em}dimensionm:T{a}text content

Argspec O{c}:N m:L m:T — one optional and two mandatory arguments. Reading argspecs

Examples#

\parbox[t]3em{x+y}
\raisebox{1ex}{\parbox[t]{2em}{$x^2$}}

In TeXForm#

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

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\parbox{1pt}{x}Positive · ctx:basicPassFailPass
\parbox[c]{1pt}{x}Positive · ctx:align-cPassFailPass
All 21 in Boxes and text