Closed josephwright closed 3 years ago
Working here in the v3 development code:
\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmathfont{Asana Math}
\setmathfont[version=asana]{Asana Math}
\setmathfont[version=pagella]{texgyrepagella-math.otf}
\usepackage{siunitx}
\DeclareSIUnit{\litre}{\mscrl}
\DeclareSIUnit{\metre}{\mscrm}
\DeclareSIPrefix{\milli}{-3}{\mscrm}
\DeclareSIPrefix{\centi}{-2}{\mscrc}
\sisetup{reset-math-version = false}
\begin{document}
{\mathversion{pagella}$3\,\mscrm\mscrl = 3\,\mscrc\mscrm^{3}$}
{\mathversion{pagella}\(\qty{3}{\milli\litre}=\qty{3}{\cubic\centi\metre}\)}
{\mathversion{asana}$3\,\mscrm\mscrl = 3\,\mscrc\mscrm^{3}$}
{\mathversion{asana}\(\qty{3}{\milli\litre}=\qty{3}{\cubic\centi\metre}\)}
\end{document}
[Anonymous report]
Support
unicode-math
's math versions.The attached minimal example uses the math version "pagella" (being the font TG Pagella Math) only in the case not using
siunitx
.Either the lines beginning with %1 or %2 should work or a new key should be added.