![“noframenumbering” 在 beamer 中不起作用](https://linux22.com/image/379687/%E2%80%9Cnoframenumbering%E2%80%9D%20%E5%9C%A8%20beamer%20%E4%B8%AD%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
“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}