In Short: I can change the math font, but it is not working for numbers.
My document has a few formulae but only basic alphanumeric characters with very limited symbols (square root being the only particular character outside of the most common)
I have looked at the following questions:
And have gotten this far using the mathastext
package (I'm on v1.3w):
I have made sure to load mathastext
after fontspec
.
But, while letters show as expected, numbers still have serifs.
Constraints:
- I am compiling with LuaLatex due to other packages in the mix
MWE:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{RUBIK-REGULAR}[
Path=fonts/,
Extension=.ttf
]
\usepackage{mathastext}
\begin{document}
\[T=2\sqrt{\frac{D}{A}}\]
\center{Body Text}
\end{document}