Boxes and text\boxed

\boxedCommand

Highlighting an important formula or final result by drawing a box around a math expression.

\boxed{x}
Available in
ams, base
Kind
prefix
Allowed mode
math
Frequency
0.03% of corpus formulasrank 142 of 263
Commonality
medium
Renderer support
PackageMathJaxKaTeXXeTeX
amsMathJax: FullKaTeX: FullXeTeX: Full
baseMathJax: FullKaTeX: FullXeTeX: None
About the test scope

Syntax#

\boxedm{a}math content

Argspec m — one mandatory argument. Same argspec in ams and base. Reading argspecs

Package variants#

PackageSignatureAllowed modeNotes
amsmmathHighlighting an important formula or final result by drawing a box around a math expression.
basemmathUsed to draw a box around an important formula or final result

In TeXForm#

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

Expands to (ams)#

\boxed{#1} \fbox{$\displaystyle{#1}$}

MathJax reparses this exact replacement after substituting the single argument.

Expands to (base)#

\boxed{#1} \fbox{$\displaystyle{#1}$}

See also#

Test cases#

ams
InputCaseMathJaxKaTeXXeTeX
\boxed{a}Positive · baselinePassPassPass
\boxed aPositive · bare[0]PassPassPass
base
InputCaseMathJaxKaTeXXeTeX
\boxed{a}Positive · baselinePassPassFail
\boxed aPositive · bare[0]PassPassFail
All 21 in Boxes and text