Latex: bold numbers with \num

Viewed 1321

I'm trying to write in bold some numbers expressed in scientific notation (using \num).

What I've been trying is:

\usepackage{siunitx}
\usepackage{graphicx} 
\usepackage{amsmath}
\usepackage{amssymb}

\textbf{\num{1.34e+2}}
$\mathbf{\num{1.34e+2}}$

but none of them seems to work.

How can I do that?

2 Answers

You can use text-series-to-math and propagate-math-font to make siunitx use the font series from the surrounding material.

\documentclass{article}

\usepackage{siunitx}
\usepackage{graphicx} 
\usepackage{amsmath}
\usepackage{amssymb}

\sisetup{
text-series-to-math = true ,
propagate-math-font = true
}

\begin{document}

\textbf{\num{1.34e+2}}
$\mathbf{\num{1.34e+2}}$


\end{document}

enter image description here

Without updating siunitx, it can be done in the following way:

\num[math-rm=\mathbf]{1.34e+2}
Related