当使用带有华沙主题的 beamer 时,如何将所有框架上的文本设置为以粗体显示?
这是 MWE,我希望两张幻灯片上的文本都以粗体显示。
\documentclass[11pt]{beamer}
\usetheme{Warsaw}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{color,soul}
\author{author}
\title{title}
\institute{institute}
\begin{document}
\begin{frame}
\frametitle{Outline}
text on this slide
\end{frame}
\begin{frame}
test one this slide
\end{frame}
\end{document}
答案1
只需选择您想要加粗的框架元素即可。
\AtBeginDocument{\bfseries\selectfont}
使普通文本变为粗体。
更多选项请访问https://tex.stackexchange.com/a/183053/36296
\documentclass{beamer}
\usetheme{Warsaw}
\AtBeginDocument{\bfseries\selectfont} % normal text
\setbeamerfont{alerted text}{series=\bfseries}
\setbeamerfont{structure}{series=\bfseries}
\setbeamerfont{title}{series=\bfseries}
\setbeamerfont{subtitle}{series=\bfseries}
\setbeamerfont{frametitle}{series=\bfseries}
\setbeamerfont{footline}{series=\bfseries}
\setbeamerfont{bibliography entry author}{series=\bfseries}
\setbeamerfont{bibliography entry title}{series=\bfseries}
\author{author}
\title{title}
\institute{institute}
\begin{document}
\begin{frame}
\frametitle{Outline}
text on this slide
\end{frame}
\begin{frame}
test one this slide
\end{frame}
\end{document}