图题中的 \SImath{} 字体加粗

图题中的 \SImath{} 字体加粗

我想将包含的图题加粗\SImath{300}{\basepair}。当我将\caption图中的加粗时,除了我在中的注释外,所有单词都会加粗\SImath{}{}。我如何让这些也加粗?

例子:

\documentclass{article}
\usepackage{amsmath}
\newcommand{\SImath}[2]{\SI[parse-numbers=false]{#1}{#2}}
\sisetup{detect-weight=true,detect-inline-weight=math}
\begin{document}
\begin{figure}[htb!]
    \centering
    \includegraphics[width=\textwidth]{figure.png}
    \caption{\textbf{Here I describe the figure and note \SImath{300}{\basepair} windows. The 300~windows in SImath do not show up bold.}}
    \label{fig:figure}
\end{figure}
\end{document}

相关内容