bold with \qtyrange{}{}
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Oct 19 09:06:48 CEST 2023
On 19/10/2023 00:46, Haines Brown wrote:
> I'm using siunitx package and in the body I have the expression:
>
> \textbf{Time: \qtyrange{1}{6}{PM}} . The "Time" amd "to" are bold,
> but the 1PM and 6PM are not. How do get them to be bold as well?
>
> \documentclass[12pt]{memoir}
> \usepackage{siunitx}
>
> \begin{document}
>
> \textbf{Time: \qtyrange{1}{6}{PM}}
>
> \end{document}
>
> Is there any advantage of qtyrange over SIrange?
>
>
\qtyrange is equivalent to \SIrange: the change of name is to improve
semantics.
All siunitx commands as-standard suppress font changes. You (likely) want
\sisetup{mode = text, reset-text-series = false}
to use a text font and leave the series as-in the body.
Joseph
More information about the texhax
mailing list.