Fonts and styles\mathbf

\mathbfCommand

Used to typeset bold mathematical symbols, commonly for vectors, matrices, or emphasized variables.

\mathbf x
Available in
base
Kind
prefix
Allowed mode
math
Frequency
6.24% of corpus formulasrank 10 of 263
Commonality
high
Tags
presentation
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\mathbfm{a}math content

Argspec m — one mandatory argument. Reading argspecs

Common tasks#

How to write a bold vector#

\mathbf{v}

How to write a bold matrix#

\mathbf{A}\mathbf{x}=\mathbf{b}

How to bold a multi-letter name#

\mathbf makes Latin letters upright bold, not italic-bold Greek.

\mathbf{GL}(n)

In TeXForm#

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

Equivalent forms#

  • \mathbfup{#1}exact

    MathJax maps both commands to the same bold MathFont variant.

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\mathbf{a}Positive · baselinePassPassPass
\mathbf aPositive · bare[0]PassPassPass
All 80 in Fonts and styles