如何在页脚添加幻灯片总数?

如何在页脚添加幻灯片总数?
I'd like to insert the number of slides into the footer of my presentation. How could I do that? This is my ME:

\documentclass{beamer}
\usetheme{default}
\usepackage{framed,color}
\definecolor{shadecolor}{rgb}{0.95, 0.95, 0.96}
\useoutertheme[subsection=false]{smoothbars}
\usepackage[frenchb]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%%%%%%%%%%%%%%%%%%%%%footline%%%%%%%%%%%%
\setbeamertemplate{footline}[text line]{%
  \parbox{\linewidth}{\vspace*{-8pt}Title\hfill\insertshortsubtitle\hfill\insertpagenumber}}
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{navigation symbols}{}
\title{\textbf{A title}}
\subtitle{A subtitle}
\author{My name}
\date{}


\begin{document}
\maketitle

\end{document}

答案1

您需要在定义的\parbox环境中更新以下内容,然后进行编译:

\parbox{\linewidth}{\vspace*{-8pt}Title\hfill\insertshortsubtitle\hfill\strut\insertframenumber/\inserttotalframenumber}}

相关内容