LatexNotes

Bold text in LaTeX

\textbf{...} sets text in bold; for maths, \mathbf bolds upright letters and \boldsymbol bolds italic letters and Greek.

LaTeX command

\textbf{bold text}

Not the symbol you meant? Draw it to find the command →

Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →

\textbf takes the words to bold as its argument, which suits a word or a phrase. For a longer passage, the switch \bfseries turns bold on until the end of the group it is in, so wrap it in braces: {\bfseries ...}. Both are built into LaTeX.

In maths, \textbf still sets ordinary bold text, useful for a word inside an equation. For bold symbols, \mathbf{v} gives upright bold letters, the usual style for vectors and matrices; \boldsymbol{\alpha}, from amsmath, bolds Greek letters and keeps italic letters italic, which \mathbf cannot do.

In a table, put \textbf around each cell that should be bold. To bold a whole column, the array package lets the column list do it once, as shown below.

A bold column in a table

With the array package, >{\bfseries} before a column's letter makes every cell in that column bold.

\usepackage{array}
\begin{tabular}{>{\bfseries}l c}

Other forms

{\bfseries bold text}a switch, for longer passages
\mathbf{v}bold in maths
\boldsymbol{\alpha}bold Greek in maths

Examples

$\textbf{Theorem.}\ \text{Every bounded sequence has a convergent subsequence.}$

a bold label before ordinary text

$\mathbf{v} = (v_1, v_2, v_3)$

a bold vector

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

a matrix equation in bold

$\boldsymbol{\theta} = (\theta_1, \theta_2)$

bold Greek with \boldsymbol

$\textbf{Answer: } x = 4$

bold words inside maths

Tips and common mistakes

Working from handwritten notes?

LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.

See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).

Convert your maths to LaTeX →

FAQ

How do I make text bold in LaTeX?

Write \textbf{your text}. For a longer passage use {\bfseries your text}.

How do I make maths bold?

Use \mathbf{v} for upright bold letters and \boldsymbol{\alpha} for bold Greek or italic letters.

How do I make a table column bold?

With the array package, write >{\bfseries} before the column's letter, as in {>{\bfseries}l c}.

What is the difference between \textbf and \bfseries?

\textbf takes the text as an argument; \bfseries is a switch that lasts until the end of its group.

See also