\documentclass{article}
\usepackage{unicode-math}
\setmainfont{Times New Roman}
\setmathfont{STIX Two Math}
\usepackage{tikz}
\usepackage[reset-math-version = false]{siunitx}
\begin{document}
\tikz \node[draw=red, ultra thick, font=\bfseries, text width=4cm, text centered] (a) {Some
text\\ size is $\qty{5}{\milli\meter} \times \qty{5}{\milli\meter}$};
\end{document}
How to make qty
print number and unit in bold as surrounding text? I also tried {\boldmath $...$}
, doesn't work.
Thank you.
EDIT
With suggestion from Joseph Wright's answer I get:
\documentclass{standalone}
\usepackage{unicode-math}
\setmainfont{Times New Roman}
\setmathfont{STIX Two Math}
\usepackage{tikz}
\usepackage[text-series-to-math]{siunitx}
\begin{document}
\tikz \node[draw=red, ultra thick, font=\bfseries, text width=4cm, text
centered] (a) {Some text\\ size is $\qty{5}{\milli\meter} \times \qty{5}
{\milli\meter}$\\ 5\,mm and $\mathbf{5}\,\text{mm}$};
\end{document}
I can only get all in bold by hand, as in the last row. Probably I don't understand the suggestion of text-series-to-math
.
5
doesn't look all that bold even though it is :)