如何使用主题伯克利枚举每张幻灯片,而索引的最后部分不留空白?
答案1
如果我理解正确的话。最小代码如下。
\documentclass{beamer}
\usetheme{Berkeley}
\setbeamertemplate{page number in head/foot}[framenumber]
\setbeamertemplate{navigation symbols}{\footnotesize\usebeamertemplate{page number in head/foot}}
\begin{document}
\begin{frame}{title}
text
\end{frame}
\begin{frame}{title}
text
\end{frame}
\end{document}
输出:
或者:
\documentclass{beamer}
\usetheme{Berkeley}
\setbeamertemplate{page number in head/foot}[totalframenumber]
\setbeamertemplate{navigation symbols}{\footnotesize\usebeamertemplate{page number in head/foot}}
\begin{document}
\begin{frame}{title}
text
\end{frame}
\begin{frame}{title}
text
\end{frame}
\end{document}
输出: