beamer
beamer copied to clipboard
Incompatibility between beamer and stix2 font
Good evening, I'm creating a presentation in beamer and I need use the stix2 font package (https://www.ctan.org/pkg/stix2-type1). But this package causes some issues in mathematical mode, for example printing * symbol instead of - symbol, so I have to use the command \usefonttheme{professionalfonts} in order to compile it correctly.
Would it be possible to fix this problem in order to use stix2 fonts without load professionalfonts?
Why don't you want the professionalfonts theme if you want to use a professional font?
Because some other professional fonts are already added to beamer, for example mtpro and mtpro2, and stix2 is a well-known and used font.
The situation for mtpro and mtpro2 is different. In the default sans serif mode, beamers font replacement is not switched off for them.
Doing the same for stix2 would result in the same problem with your */- symbol. On the other hand, switching font replacement completely off for stix2 would result in the wrong font family (serif math even for the default sans serif mode).
And in contrast to e.g. the kpfonts, stix2 does not seem to have an easy way to completely switch to sans serif math.
... so I would actually combine stix2 with the serif theme to get matching text and math font:
\documentclass{beamer}
\usepackage{stix2}
\usefonttheme{serif}
\begin{document}
\begin{frame}
abc x Q
$- a b c {x Q} x Q$
\end{frame}
\end{document}