如何正确自定义 beamer 中的页数?

如何正确自定义 beamer 中的页数?

我有 3 个问题:

1 - 如何在摘要后开始幻灯片计数(以便目录根据模板标题计数 - 小球)?

2 - 如何在不改变幻灯片页脚的情况下增加编号源?

3 - 如何在数字和条形之间留出间距,例如,1 / 2

这是我的代码示例:

\documentclass[handout,xcolor=table]{beamer}
\usepackage{pgfpages} 


\usetheme{Berlin}
\usefonttheme[onlylarge]{structurebold}
\setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}
\setbeamertemplate{navigation symbols}{}

 \addtobeamertemplate{navigation symbols}{}{%
     \usebeamerfont{footline}%
     \usebeamercolor[fg]{footline}%
     \hspace{5em}%
     \insertframenumber/\inserttotalframenumber
 }

 \setbeamercolor{footline}{fg=blue}
 \setbeamerfont{footline}{series=\bfseries}
 %\setbeamerfont{footline}{series=\bfseries, size=\large}

%\beamertemplatenavigationsymbolsempty

%
%\setbeamertemplate{footline}[frame number]


\definecolor{mediumblue}{rgb}{0.0, 0.0, 0.8}
\definecolor{azulwhale}{rgb}{0.19921875,0.19921875,0.6953125}

% Standard packages

\usepackage[english]{babel}
%\usepackage[brazilian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage[latin1]{inputenc}
\usepackage{times}
%\usepackage[T1]{fontenc}
\usepackage{ragged2e}
\usepackage{scalefnt}
\usepackage{fancybox}
% Número de Páginas no Rodapé
%\setbeamertemplate{footline}[frame number]
\usepackage{scalefnt}
% Setup TikZ

%\usepackage{enumitem}

\usepackage{tikz}
\usetikzlibrary{arrows}
\tikzstyle{block}=[draw opacity=0.7,line width=1.4cm]

% Author, Title, etc.

\begin{document}

\title[Ricardo Ramos de Oliveira] 
{%
  Title%
}

\author[]
{
Ricardo Ramos de Oliveira 
}

\date{

}

\institute[]
{
5th IEEE International Conference X
}

\justifying
% The main document

\begin{frame}
\titlepage
  \vspace{-0.6 cm}
  \setlength{\tabcolsep}{1.0cm}
\end{frame}

\setcounter{tocdepth}{1}
\begin{frame}{Summary}

  \tableofcontents

\end{frame}

%===========================================================================
% Section One
%===========================================================================

\section{Introduction}

\subsection{1 - Introduction}

\begin{frame}{}

\textbf{1 - Introduction}

The graduates of ICMC's graduate programs occupy prominent positions in universities, research centers, government agencies and national and foreign companies. This impact can be regionally identified, since many of them have become teachers in reputable universities in Brazil and América do Sul and created new research centers and graduate programs, which generates significant contribution to the expansion of education and science.

\end{frame}


\begin{frame}{}

\centering
\textbf{Thank you. \\ My contact: [email protected]} 


\end{frame}

\end{document}

答案1

  1. 如何在摘要之后开始幻灯片计数(以便目录根据模板标题 - 小球进行计数)?

您可以\begin{frame}[noframenumbering]对所有不应被计算的帧使用。在当前设置中,这将打印0/2在前两帧上,但您可以使用

 \ifnum\insertframenumber>0
    \insertframenumber~/~\inserttotalframenumber
 \fi
  1. 如何在不改变幻灯片页脚的情况下增加编号源?

我不知道这意味着什么-抱歉!

  1. 如何在数字和条形之间留出间距,例如 1 / 2

作为TeXnician 已经说过了,使用类似\insertframenumber~/~\inserttotalframenumber

\documentclass[handout,xcolor=table]{beamer}

\usetheme{Berlin}
\usefonttheme[onlylarge]{structurebold}
\setbeamerfont{frametitle}{size=\normalsize,series=\bfseries}
\setbeamercolor{footline}{fg=blue}
\setbeamerfont{footline}{series=\bfseries}

\setbeamertemplate{navigation symbols}{%
    \fontsize{12}{14}\selectfont%
  \usebeamercolor[fg]{footline}%
  \hspace{5em}%
  \ifnum\insertframenumber>0
    \insertframenumber~/~\inserttotalframenumber
  \fi
}

\definecolor{mediumblue}{rgb}{0.0, 0.0, 0.8}
\definecolor{azulwhale}{rgb}{0.19921875,0.19921875,0.6953125}

\begin{document}

\begin{frame}[noframenumbering]
    \titlepage
  \vspace{-0.6 cm}
  \setlength{\tabcolsep}{1.0cm}
\end{frame}

\setcounter{tocdepth}{1}
\begin{frame}[noframenumbering]{Summary}
    \tableofcontents
\end{frame}

\section{Introduction}
\subsection{\thesection - Introduction}

\begin{frame}
    \textbf{1 - Introduction}

    The graduates of ICMC's graduate programs occupy prominent positions in universities, research centers, government agencies and national and foreign companies. This impact can be regionally identified, since many of them have become teachers in reputable universities in Brazil and América do Sul and created new research centers and graduate programs, which generates significant contribution to the expansion of education and science.
\end{frame}


\begin{frame}

\centering
\textbf{Thank you. \\ My contact: [email protected]} 
\end{frame}

\end{document}

相关内容