
Estoy intentando hacer una presentación proyector en la que solo se cambia la fuente del texto, pero las matemáticas siguen siendo las mismas. Pensé que esto sería suficiente,
\documentclass[english]{beamer}
\usepackage[no-math]{fontspec}
\setsansfont{Arial}
\begin{document}
\begin{frame}
This is a test. $f(x) = \pi \approx 3.14159$
\end{frame}
\end{document}
pero también reemplaza la fuente matemática, a pesar de que uso la opción [no-math].
Respuesta1
Debes usar unicode-math
para configurar la fuente matemática:
\documentclass{beamer}
\usefonttheme{professionalfonts} % needed for fontspec to work properly in beamer
\usepackage{fontspec}
\setsansfont{Arial}
\usepackage{mathtools} % should be loaded before unicode-math
\usepackage{unicode-math}
\setmathfont{Latin Modern Math} % or any of the other opentype math fonts
\begin{document}
\begin{frame}
This is a test. $f(x) = \pi \approx 3.14159$
\end{frame}
\end{document}