如何在 siunitx 中划线或粗体打印最后一位数字以表达精确的十进制值?例如光速 c = 299 792 458m/s。这种处理精确十进制数的方式也是由 DIN 1333 指定的。
siunitx 手册没有提及这一点。
这个问题与问题相关siunitx – 重复数字上的横线。
那里给出的解决方案可以很容易地在这里应用。
答案1
以下是 MWE 给出的一些解决方案。见下图。
\documentclass{standalone}
%······························································
\usepackage{siunitx}
\usepackage{soul}
\usepackage{booktabs}
%······························································
\begin{document}
%······························································
\begin{tabular}{l}
\toprule
$\SI[parse-numbers=false]{\text{299\,792\,45\textbf{8}}}{\meter\per\second}$\\
${\text{299\,792\,45\textbf{8}\,}}\si{\meter\per\second}$\\
\midrule
$\SI[parse-numbers=false]{\text{299\,792\,45\ul{8}}}{\meter\per\second}$\\
${\text{299\,792\,45\ul{8}\,}}\si{\meter\per\second}$\\
\bottomrule
\end{tabular}
%······························································
\end{document}