“noframenumbering” 在 beamer 中不起作用

“noframenumbering” 在 beamer 中不起作用

“noframenumbering” 不起作用。具体来说,使用以下代码,当前页码显示为“2/3”。但我想显示为“1/2”,不包括标题页并指定另一页。您有解决这个问题的办法吗?

¥documentclass[dvipdfmx,11pt,notheorems]{beamer}

¥usetheme{Madrid}
¥usefonttheme{professionalfonts}
¥setbeamertemplate{frametitle}[default][left]
¥setbeamertemplate{navigation symbols}{}
¥setbeamercovered{transparent}

% Footer
¥setbeamertemplate{footline}[page number]
¥setbeamerfont{footline}{size=¥normalsize, series=¥bfseries}
¥setbeamercolor{footline}{fg = black, bg = black}
¥setbeamercolor{page number in head/foot}{fg = black}

¥usepackage{amsmath,amssymb}
¥usepackage{amsthm}
¥usepackage[T1]{fontenc}%
¥usepackage{textcomp}%
¥usepackage[utf8]{inputenc}%
¥usepackage{otf}%
¥usepackage{helvet}%

¥begin{document}

¥begin{frame}[noframenumbering, plain]
¥titlepage %
¥end{frame}

¥begin{frame}¥frametitle{Agenda}
¥tableofcontents %
¥end{frame}

¥section{Title}
¥begin{frame}¥frametitle{aaa}
¥end{frame}

¥end{document}

答案1

noframenumbering选项工作正常 - 但您显示的不是帧号而是页码。

如果你想显示帧编号,你可以使用\setbeamertemplate{footline}[frame number]

\documentclass[11pt,notheorems]{beamer}

\usetheme{Madrid}
\usefonttheme{professionalfonts}
\setbeamertemplate{frametitle}[default][left]
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent}

% Footer
\setbeamertemplate{footline}[frame number]
\setbeamerfont{footline}{size=\normalsize, series=\bfseries}
\setbeamercolor{footline}{fg = black, bg = black}
\setbeamercolor{page number in head/foot}{fg = black}

\usepackage{amsmath,amssymb}
\usepackage{amsthm}
\usepackage[T1]{fontenc}%
\usepackage{textcomp}%
\usepackage[utf8]{inputenc}%
%\usepackage{otf}%
\usepackage{helvet}%

\begin{document}

\begin{frame}[noframenumbering, plain]
\titlepage %
\end{frame}

\begin{frame}
\frametitle{Agenda}
\tableofcontents %
\end{frame}

\section{Title}
\begin{frame}
\frametitle{aaa}
\end{frame}

\end{document}

相关内容