有了这个mwe,
\documentclass{article}
\usepackage{bm,siunitx}
% change nothing to the problem
\sisetup{
detect-weight,
detect-display-math
}
\begin{document}
$\bm{\num{.1}}$
\end{document}
我收到此错误消息
> ! Undefined control sequence.
> <argument> \LaTeX3 error:
A sequence was misused.
l.11 $0<\bm{\num{.1}}
$
有了这个其他的 mwe:
\documentclass{article}
\usepackage{siunitx,bm}
\sisetup{
detect-weight,
detect-display-math,
detect-inline-weight=math
}
\begin{document}
$\num{5}x\bm{5x\num{5}}$
\end{document}
我有下一个错误信息:
! Argument of \__tl_tmp:w has an extra }.
<inserted text>
\par
l.11 $\num{5}x\bm{5x\num{5}}
$
并且\mathbf
不起作用并且产生丑陋的“x”。
\documentclass{article}
\usepackage{siunitx,bm}
\sisetup{
detect-weight,
detect-display-math,
detect-inline-weight=math
}
\begin{document}
$\num{5}x\mathbf{5x\num{5}}$
$\bm{0.1}\quad\mathbf{\num{.1}}$
\end{document}