我想加粗选定的、孤立的siunitx
- 表格中的格式化单元格。
\bfseries
一般情况下,我会这样做\usepackage{etoolbox}
来做这件事,正如Joseph Wright 的回答在这里。
但是,在以下 MWE 中,包含\SIrange
命令的单元格似乎未以粗体格式显示。我该如何修复此问题?
\documentclass[oneside,11pt]{book}
\usepackage[semibold,tt=false]{libertine}
\usepackage{libertinust1math}
\usepackage[
expansion = false ,
tracking = smallcaps ,
letterspace = 40 ,
final
]{microtype}
\usepackage[font={sf,small},labelsep=quad,labelfont=sc]{caption}
\usepackage[subrefformat=parens]{subcaption}
\usepackage{mathtools}
\usepackage{booktabs}
\usepackage{etoolbox}
\usepackage{siunitx}
\sisetup{%
detect-family, detect-shape, detect-weight,
product-units = power,
list-final-separator = {, and },
retain-explicit-plus,
input-comparators = {<=>\approx\ge\geq\gg\le\leq\ll\sim\lesssim\gtrsim}
}
\begin{document}
\begin{table}[!h]
\centering
\begin{tabular}{lll}
\bfseries A & \bfseries\numrange[range-phrase=--]{\sim 5}{17} & \bfseries Some words\\
\bfseries B & \bfseries\numrange[range-phrase=--]{\sim 5}{17} & \bfseries More words\\
\end{tabular}
\end{table}
\end{document}