When writing numbers with units using the siunitx package, \SI{1064}{\um}
, the numbers and units are noticeably smaller than the text, however the mu seems to be the correct size. I am using Verdana as the main text font and the default LaTeX font for maths. MiKTeX and compiled with LuaLaTeX.
MWE
\documentclass[10pt,a4paper]{article}
\usepackage{siunitx}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setsansfont{Verdana} % Setting sans font
\renewcommand*{\familydefault}{\sfdefault} % Making sans serif font the default
\linespread{1.16} % Increasing the linespacing
\usepackage{unicode-math}
\begin{document}
This is some text \SI{1064}{\um} m $m$
\end{document}
I try and scale using \defaultfontfeatures{Scale=MatchLowercase}
\documentclass[10pt,a4paper]{article} \usepackage{siunitx}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setsansfont{Verdana} % Setting sans font
\renewcommand*{\familydefault}{\sfdefault} % Making sans serif font the default
\linespread{1.16} % Increasing the linespacing
\usepackage{unicode-math}
\defaultfontfeatures{Scale=MatchLowercase}
\begin{document}
This is some text with scaling \SI{1064}{\um} m $m$
\end{document}}
The numbers and the m written in maths mode have become larger but the m in the units has not.
I've tried \sisetup{detect-all}
but that just changes everything written with \SI
into Verdana which is not what I'm after. Is there a way to increase the size of the font in the units?
\setsansfont{Verdana}
followed by\renewcommand*{\familydefault}{\sfdefault}
? Why not just run\setmainfont{Verdana}
? Please advise.\setmainfont{Verdana}
the letters in the units change to Verdana