同样的 latex 数学公式,在论文 (Article)模板中显示格式与在幻灯片( Beamer) 中的显示风格居然不一样
\begin{equation}
\mathcal{L}_{D}=\mathbb{E}_{x\sim P_{data}}[-\log D(x)]+\mathbb{E}_{z\sim P_{z}}[-\log (1-D(G(z)))]
\label{equ-1}
\end{equation}
论文 (Article) 中数学公式显示格式

幻灯片( Beamer) 中数学公式显示格式

风格不一样的原因就是,Article 模板中是传统的数学字符格式,而幻灯片(Beamer)中的数学符号不是标准的数学符号显示格式
解决方法:
(1)麻烦的解决方法:在需要处使用 \mathnormal 来强制显示标准数学符号样式
$\mathnormal{需要以标准数学符号样式显示的公式}$
(2)高效的解决方法:在 Beamer 的导言区使用的\begin{document} 之前添加 \usefonttheme[onlymath]{serif}
\documentclass{beamer}
\usetheme{Boadilla}
\usefonttheme[onlymath]{serif}
\begin{document}
参考:
[1] https://tex.stackexchange.com/questions/34265/how-to-get-beamer-math-to-look-like-article-math