Latex beamer显示页码

简介: 直接上代码,是基于一个模板找的命令,不知道是否适用于其他模板。\documentclass[UTF8]{beamer}\usepackage{ctex}\usepackage{enumerate}\usepa...

直接上代码,是基于一个模板找的命令,不知道是否适用于其他模板。

\documentclass[UTF8]{beamer}

\usepackage{ctex}
\usepackage{enumerate}
\usepackage{algorithm,algorithmic}

\mode<presentation>
{
 % 设置背景
 \setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]

 % 设置block的特征
 \setbeamertemplate{blocks}[rounded][shadow=true]

 % 设置主题
 \usetheme{Warsaw}

 % 设置footline显示页码,但是由于warsaw本身已经定义了一个footline,所以这个定义就会覆盖warsaw的定义。另一方面说明,slides的每一部分都是可以自己定制的。
 % \setbeamertemplate{footline}[frame number]

% 添加页码代码,谷歌找到的。
\expandafter\def\expandafter\insertshorttitle\expandafter{%
	\insertshorttitle\hfill%
	\insertframenumber\,/\,\inserttotalframenumber}


 % 设置覆盖的效果,透明
 \setbeamercovered{transparent}

 \usefonttheme[onlysmall]{structurebold}

 % 设置数学公式的字体
 \usefonttheme[onlymath]{serif}
}

\setlength{\parindent}{2em}

% 设置用acrobat打开就会全屏显示
%\hypersetup{pdfpagemode=FullScreen}

% 设置logo
% If you have a file called "university-logo-filename.xxx", where xxx
% is a graphic format that can be processed by latex or pdflatex,
% resp., then you can add a logo as follows:

% \pgfdeclareimage[height=0.5cm]{university-logo}{pku_logo}
% \logo{\pgfuseimage{university-logo}}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Beginning of document
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

% Delete this, if you do not want the table of contents to pop up at
% the beginning of each subsection:
% 在每一子章节前有一张胶片显示目录
\AtBeginSection[]
{
 \begin{frame}<beamer>
   \tableofcontents[currentsection]
 \end{frame}
}


\title[标题]
{\normalsize 子标题 \\ \huge 强调}

\author[XXX]{XXX \\ \small \href{mailto:xxx@mail.com}{xxx@mail.com}}

\institute[XXX, XXX University]
{
 XXX实验室(XXX) \\
 XXX
}

\date[\today]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
    \titlepage
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 目录
\begin{frame}[allowframebreaks]
 \tableofcontents
 % You might wish to add the option [pausesections]
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{引言}

\begin{frame}
	\frametitle{标题}
	
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{frame}
 \begin{center}
   \huge Thanks for your attention! \\ Q \& A
 \end{center}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\end{document} 
效果如图





目录
相关文章
|
6月前
【科研技巧】简单的在Office Word 2019中设置页脚的页码从指定页(正文)开始
如何在Microsoft Word 2019中设置页码从指定页面(通常是正文开始页)启动的方法。
163 2
|
9月前
从word文档的中间某页开始设置页码的方法
从word文档的中间某页开始设置页码的方法
989 0
|
9月前
|
定位技术
Word不计算封面、目录页数将正文页码修改为第几页共几页的格式
Word不计算封面、目录页数将正文页码修改为第几页共几页的格式
212 2
Word页码调整为“第几页共几页”且去除封面页数的方法
本文介绍在Word文档中,不考虑封面、目录、前言等的页数,为正文添加“第X页,共X页”样式页码的方法~
1018 1
Word页码调整为“第几页共几页”且去除封面页数的方法
word文档如何从第三页开始设置页码详细解决方案
word文档如何从第三页开始设置页码详细解决方案
232 0
word文档如何从第三页开始设置页码详细解决方案
|
JavaScript 前端开发
html打印表格每页都有的表头和打印分页
本文转载:http://www.cnblogs.com/RitchieChen/archive/2008/07/30/1256829.html  在做项目的时候碰到的。用户要求,页面呈现太长时,打印的时候,要求,每页上都要有表头。
1880 0
|
JavaScript
问题解决:使用JqGrid实现列表分页,翻页图标无法显示
问题解决:使用JqGrid实现列表分页,翻页图标无法显示
338 0
问题解决:使用JqGrid实现列表分页,翻页图标无法显示
关于 在word中插入表格跨页后每一页表格都显示标题栏 的解决方法
关于 在word中插入表格跨页后每一页表格都显示标题栏 的解决方法
关于 在word中插入表格跨页后每一页表格都显示标题栏 的解决方法
|
C# C++
C# 操作Word 文档——添加Word页眉、页脚和页码
在Word文档中,我们可以通过添加页眉、页脚的方式来丰富文档内容。添加页眉、页脚时,可以添加时间、日期、文档标题,文档引用信息、页码、内容解释、图片/LOGO等多种图文信息。同时也可根据需要调整文字或图片在页眉页脚的位置。
2697 0