Latex beamer显示页码

LaTeX 专栏收录该内容
13 篇文章 0 订阅

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

\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} 
效果如图





  • 0
    点赞
  • 1
    评论
  • 8
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值