bm과 siunitx가 일치하지 않습니다.

bm과 siunitx가 일치하지 않습니다.

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

여기에 이미지 설명을 입력하세요

답변1

\num중괄호를 사용하여 및 명령을 보호할 수 있습니다 \SI.

\documentclass{article}
\usepackage{bm,siunitx}

\begin{document}


\sisetup{detect-weight = true,detect-inline-weight = math}

$\num{5} \SI{50}{\km}$

$\bm{bob{\num{5}\SI{30}{\km}}}$
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보