默认情况下,Beamer 中的 Warsaw 主题在页脚中显示作者姓名、演示文稿标题和页码。我怎样才能仅在页脚的右下角显示页码?
我当前的 LaTeX 代码如下所示:
\documentclass[compress]{beamer}
\usetheme{Warsaw}
\usepackage{mfirstuc}
\usepackage{setspace}
\usepackage[hang,footnotesize]{caption}
\usepackage[subrefformat=parens]{subcaption}
\captionsetup{compatibility=false}
\setbeamercolor{page number in head/foot}{fg=white}
\setbeamerfont{page number in head/foot}{size=\tiny}
\setbeamertemplate{page number in head/foot}[totalframenumber]
\title{Beamer title}
\author{Author name}
\begin{document}
\begin{frame}{Frame Title}
\end{frame}
\end{document}
我的当前输出如下所示:
但我想禁用“作者姓名”和“Beamer 标题”。
答案1
\documentclass{beamer}
\usetheme{Warsaw}
%\setbeamertemplate{page number in head/foot}[totalframenumber] % Removed
\setbeamertemplate{page number in head/foot}[framenumber] % Added
% https://tex.stackexchange.com/questions/58219
\title[]{Beamer title} % Modified (added empty optional argument [])
\author[]{Author name} % Modified (added empty optional argument [])
\begin{document}
\begin{frame}{Frame Title}
Test
\end{frame}
\end{document}
在此处找到Beamer 课堂上的幻灯片编号(华沙主题)beamer change page number Warsaw
在 Google 中搜索后。