在我的論文中,我在整個文件中使用了 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}