이 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}