Beamer-使用指南


介绍

Beamer 框架代码

\documentclass{beamer}
%Information to be included in the title page:
\title{Sample title}
\author{Anonymous}
\institute{Overleaf}
\date{2021}

\begin{document}

\frame{\titlepage}

\begin{frame}
\frametitle{Sample frame title}
This is some text in the first frame. This is some text in the first frame. This is some text in the first frame.
\end{frame}

\end{document}

主要特性

Frame

  • frame 构成文件的最基本单元,对应一页或者多页 pdf 文件。

标题页

标题页由\frame{\titlepage}生成,完整内容包含:

  • title 命令:\title[缩略大标题]{大标题}
  • author 命令:\author[缩略作者名]{作者名}
  • institute 命令:\institute[缩略机构名]{机构名}
  • date 命令:\date[缩略日期]{日期}
\title[About Beamer] %optional
{About the Beamer class in presentation making}

\subtitle{A short story}

\author[Arthur, Doe] % (optional, for multiple authors)
{A.~B.~Arthur\inst{1} \and J.~Doe\inst{2}}

\institute[VFU] % (optional)
{
  \inst{1}%
  Faculty of Physics\\
  Very Famous University
  \and
  \inst{2}%
  Faculty of Chemistry\\
  Very Famous University
}

\date[VLC 2021] % (optional)
{Very Large Conference, April 2021}

\logo{\includegraphics[height=1cm]{overleaf-logo}}

目录页

  • 显示所有目录
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents
\end{frame}
  • 分章节显示所有目录/子目录内容
\AtBeginSection[]
{
  \begin{frame}
    \frametitle{Table of Contents}
    \tableofcontents[currentsection]
  \end{frame}
}
\AtBeginSubsection[]
{
  \begin{frame}
    \frametitle{Table of Contents}
    \tableofcontents[currentsection]
  \end{frame}
}

内容的跨页显示(页码不改变)

  • 使用<1->标记
    • <>代表进行跨页显示
    • 数字代表在之后的第几页显示
    • -代表自之后的第几页开始显示
\begin{frame}
\frametitle{Sample frame title}
This is a text in second frame.
For the sake of showing an example.

\begin{itemize}
 \item<1-> Text visible on slide 1
 \item<2-> Text visible on slide 2
 \item<3> Text visible on slide 3
 \item<4-> Text visible on slide 4
\end{itemize}
\end{frame}
  • 使用 \pause 命令
\begin{frame}
 In this slide \pause

 the text will be partially visible \pause

 And finally everything will be there
\end{frame}

内容强调

  • alert 命令:标红字体
  • block 环境:蓝色图框
  • alertblock 环境:红色图框
  • examples 环境:绿色图框
\begin{frame}
\frametitle{Sample frame title}

In this slide, some important text will be
\alert{highlighted} because it's important.
Please, don't abuse it.

\begin{block}{Remark}
Sample text
\end{block}

\begin{alertblock}{Important theorem}
Sample text in red box
\end{alertblock}

\begin{examples}
Sample text in green box. The title of the block is ``Examples".
\end{examples}
\end{frame}

主题风格

  • 主题:\usetheme{Madrid}
  • 颜色主题:\usecolortheme{beaver}(须放在主题命令之后)
  • 字体
    • 字体大小规定在\documentclass[17pt]{beamer}
    • 字体主题:\usefonttheme{structuresmallcapsserif}
\documentclass[17pt]{beamer}
\usepackage{tikz}
\usetheme{Madrid}
\usecolortheme{beaver}

多栏

  • columns 环境
  • column 命令标识宽度
\begin{frame}
\frametitle{Two-column slide}
\begin{columns}
\column{0.5\textwidth}
This is a text in first column.
$$E=mc^2$$
\begin{itemize}
\item First item
\item Second item
\end{itemize}

\column{0.5\textwidth}
This text will be in the second column
and on a second thoughts, this is a nice looking
layout in some cases.
\end{columns}
\end{frame}

参考资料

  1. https://www.overleaf.com/learn/latex/Beamer

文章作者: 一汪白水
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 一汪白水 !
  目录