官方教程: The beamer class User Guide for version 3.70. (最新版)
安装好Texlive后可以在命令行中使用texdoc beamer打开安装版本的官方文档。
参考文章:
知乎-如何使用beamer制作学术会议、学术演讲的幻灯片slides?
知乎-Beamer教程
0 Prerequisite
需要首先在本机配置好Latex环境,beamer支持pdflatex, latex+dvips, lualatex, xelatex.
1 Configurations
1.1 document class
1  | \documentclass{ctexbeamer} % 中文使用ctexbeamer  | 
1.2 theme
使用usetheme来应用主题,同时可以通过template自定义配置
1  | \usetheme{}  | 
主题查看页面:theme-matrix
STFI for more themes!
1.3 infos
和article中一样,beamer中幻灯片的标题、作者、日期等信息都可以在导言区以相同方式书写
1  | \title{...}  | 
1.4 catalogue
1.4.1 整体目录
1  | \begin{frame}{catalogue}  | 
1.4.2 小节前导目录
在导言区加上以下代码可以生成每一小节前的前导目录
1  | \AtBeginSection[]  | 
1.5 font
1.5.1 全局
- 大小:可以在
\documentclass[10pt]{beamer}的方括号中修改字体大小 - 字体:
- 使用字体主题
\usefonttheme{...}, 可用字体包括:structurebold, structurebolditalic, structuresmallcapsserif, structureitalicsserif, serif 以及 default - 通过引入相应的包来设置:mathptmx, helvet, avat, bookman, chancery, charter, culer, mathtime, mathptm, newcent, palatino, pifont and utopia
 
 - 使用字体主题
 
1.5.2 局部
设置局部字体格式可以在导言区使用\setbeamerfont{structure}{size={\fontsize{6pt}{0pt}}}
1.6 color
color和主题强相关,对于某一项主题,可以使用\usecolortheme{...}来配置。
可以引入xcolor包使得颜色更丰富。
2 Contents
在导言区配置完后,所有的内容都包括在:
1  | \begin{document}  | 
2.1 Sections
beamer和article一样,使用section来划分章节。beamer可以根据section自动生成目录页插入。
1  | \section{}  | 
一个section中可以包含多个subsection,每个section/subsection可以包含多个幻灯片页面。
2.2 Frames
beamer中,frame包含了页面部分
1  | \begin{frame}  | 
2.3 Alert
使用\alert{...}来强调文字,文字会自动标红
2.4 Block
在页面上以块的方式展示
1  | \begin{block}{Remark} % block title  | 
2.5 Graphs
插入图片需要graphix宏包
1  | \begin{figure}[ht]  | 
2.6 Multiple Columns
1  | \begin{columns}  | 
使用columns来呈现分栏效果