Relevant to those:
- Change math font only in some parts of a document?
- \setmathsfont can be used only in preamble
- https://latex.org/forum/viewtopic.php?t=30616
I'm trying to change the font at math-mode:
If it's with "s": \setmathsfont - it doesn't compile, if it's without the "s: it's doesn't change the font...
Here is MWE:
\documentclass{scrartcl}
\usepackage{unicode-math}
\setmathfont{Arial}
\begin{document}
\[
a+b^{2}+5
\]
\end{document}
Can you help to understand how to change the font at math-mode?
Thank you!!

\setmathfontrequires an OpenType Math font (that is the font has an internal MATH table giving math typesetting layout parameters) – David Carlisle Nov 09 '19 at 13:42\setmathsfontis defined by themathspecpackage, but not theunicode-mathpackage. – Mico Nov 09 '19 at 13:52