비머의 텍스트 글꼴만 XeTeX로 교체

비머의 텍스트 글꼴만 XeTeX로 교체

텍스트 글꼴만 변경된 비머 프리젠테이션을 만들려고 하지만 계산은 동일하게 유지됩니다. 이렇게 하면 될 줄 알았는데,

\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}

하지만 [수학 없음] 옵션을 사용했음에도 불구하고 수학 글꼴도 대체합니다.

답변1

unicode-math 수학 글꼴을 설정하려면 다음을 사용해야 합니다 .

\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}

관련 정보