Boxes and text\emph

\emphCommand

Used in text mode to emphasize text, typically rendering as italics

\text{\emph{hello}}
Available in
textmacros
Kind
prefix
Allowed mode
both
Frequency
0.07% of corpus formulasrank 123 of 263
Commonality
medium
Tags
presentation
Renderer support
PackageMathJaxKaTeXXeTeX
textmacrosMathJax: NoneKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\emphm:T{a}text content

Argspec m:T — one mandatory argument. Reading argspecs

Examples#

\text{\emph{emphasized}}
\emph{x}

In TeXForm#

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

Equivalent forms#

  • \textit{#1}approximate

    \textit applies italics unconditionally, whereas \emph toggles between italic and upright based on context.

Test cases#

textmacros
InputCaseMathJaxKaTeXXeTeX
\emph{a}Positive · baselineFailPassPass
\emph aPositive · bare[0]FailPassPass
\emph{a^2}Negative · neg:T[0]FailFailFail
All 21 in Boxes and text