Accents\underline

\underlineCommand

Used to place an underline under a mathematical symbol or expression in formulas.

\underline x
Topic
Accents
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
0.75% of corpus formulasrank 53 of 263
Commonality
high
Tags
decoration
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
textmacrosMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\underlinem{a}math content

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

\underlinem:T{a}text content

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

Common tasks#

How to underline a variable#

\underline{x}

How to underline a longer expression#

\underline{a+b+c}

How to underline a word in a label#

\text{\underline{min}}

Examples#

textmacros

\text{\underline x}

textmacros

\text{\underline{ab}}

Package variants#

PackageSignatureAllowed modeNotes
basemmathUsed to place an underline under a mathematical symbol or expression in formulas.
textmacrosm:TtextUsed to underline a text fragment, including short words or grouped text in text-mode content.

In TeXForm#

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

See also#

Test cases#

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