Boxes and text\textnormal

\textnormalCommand

Resetting inserted text to the surrounding normal text style inside math expressions.

\textnormal{a}
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
0.32% of corpus formulasrank 73 of 263
Commonality
medium
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
textmacrosMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\textnormalm:T{a}text content

Argspec m:T — one mandatory argument. Same argspec in base and textmacros. Reading argspecs

Examples#

base

\textnormal b

textmacros

\text{\textnormal{a}}

Package variants#

PackageSignatureAllowed modeNotes
basem:TmathResetting inserted text to the surrounding normal text style inside math expressions.
textmacrosm:TtextUsed to switch a short span of text to the normal/roman text style inside MathJax text mode.

In TeXForm#

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

Expands to (textmacros)#

\textnormal{#1} {\rm #1}

MathJax textmacros implements this identically to \textrm and \textup, which is a simplification of full LaTeX semantics.

Equivalent forms#

  • \text{#1}exact

    In MathJax base, both map directly to BaseMethods.HBox with no extra style or font arguments.

  • \textrm{#1}exact

    In MathJax textmacros, both commands map to {\rm #1}.

  • \textup{#1}exact

    In MathJax textmacros, both commands map to {\rm #1}.

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\textnormal{a}Positive · baselinePassPassPass
\textnormal aPositive · bare[0]PassPassPass
\textnormal{a^2}Negative · neg:T[0]PassFailFail
textmacros
InputCaseMathJaxKaTeXXeTeX
\textnormal{a}Positive · baselinePassPassPass
\textnormal aPositive · bare[0]PassPassPass
\textnormal{a^2}Negative · neg:T[0]FailFailFail
All 21 in Boxes and text