使用 Palatino 字体的 Beamer 演示文稿与论文看起来不同

使用 Palatino 字体的 Beamer 演示文稿与论文看起来不同

在我的论文中,我在整个文档中使用了 Palatino 字体(特别是马特帕佐包)因此我想在准备的演示文稿中使用相同的字体。问题是,当我设置时\usepackage{mathpazo},演示文稿中出现的字体看起来与论文中的字体不一样。下面是我的论文的示例:

论文范例

当我使用这个 MWE 投影仪演示文稿时

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\usepackage{palatino}
\mode<presentation> {
\usetheme{Copenhagen}
\setbeamertemplate{footline}[frame number]
\setbeamertemplate{navigation symbols}{}
\setbeamersize{text margin left=5mm,text margin right=5mm}
}

\begin{document}
    \begin{frame}{Info}
        Various ways that AM could help to develop the space industry:
        {\footnotesize \begin{itemize}
                \item Printing of components and replacements
                \item Recycling of materials
                \item Creation of structures that are hard to produce on Earth or difficult to transport to orbit
                \item ISRU
                \item The creation of new materials and parts that may one day be made in microgravity only and may only function there, i.e. they would be truly space based
        \begin{equation}
        F=kx
        \end{equation}
        \end{itemize}}
    \end{frame}
\end{document}

我得到以下信息:

演示示例

尽管我使用相同的软件包,但两个文档中的字体并不相同。这是什么原因造成的?我尝试添加软件包,palatino但字体仍然看起来不一样。

答案1

为了能够在文本和数学模式下使用 Palatino,我建议您添加说明\usefonttheme{professionalfonts}\renewcommand\familydefault{\rmdefault}

在此处输入图片描述

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\mode<presentation> {%
    \usetheme{Copenhagen}
    \setbeamertemplate{footline}[frame number]
    \setbeamertemplate{navigation symbols}{}
    \setbeamersize{text margin left= 5mm,
                   text margin right=5mm}
}
\usefonttheme{professionalfonts}
\usepackage{mathpazo} % or: {newpxtext,newpxmath}
\renewcommand\familydefault{\rmdefault}

\begin{document}
\begin{frame}[t]{Info}
Various ways that AM could help to develop the space industry:
    \begin{itemize}
    \item Printing of components and replacements
    \item The creation of new materials and parts that may one day be 
          made in microgravity only and may only function there, i.e., 
          they would be truly space based
    \begin{equation}
        F=kx
    \end{equation}
    \end{itemize}
\end{frame}
\end{document}

相关内容