Boxes and text\textbf

\textbfCommand

Bold text labels or emphasis inside math expressions.

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

Syntax#

\textbfm:T{a}text content

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

Common tasks#

How to write bold text inside math#

\textbf{Warning: } x>0

How to bold a short label in a subscript#

E_{\textbf{tot}}

Examples#

base

\textbf b

textmacros

\text{\textbf{a}}

Package variants#

PackageSignatureAllowed modeNotes
basem:TmathBold text labels or emphasis inside math expressions.
textmacrosm:TtextUsed to make a short span of text bold inside MathJax text mode.

In TeXForm#

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

Expands to (textmacros)#

\textbf{#1} {\bf #1}

See also#

Test cases#

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