Boxes and text\textit

\textitCommand

Italic text labels or short annotations inside math expressions.

\textit{a}
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
0.13% of corpus formulasrank 100 of 263
Commonality
high
Tags
presentation
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
textmacrosMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\textitm:T{a}text content

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

Examples#

base

\textit b

textmacros

\text{\textit{a}}

Package variants#

PackageSignatureAllowed modeNotes
basem:TmathItalic text labels or short annotations inside math expressions.
textmacrosm:TtextUsed to italicize a short span of text inside MathJax text mode.

In TeXForm#

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

Expands to (textmacros)#

\textit{#1} {\it #1}

See also#

Test cases#

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