文章目录
简介
\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} 用TeXStudio编译预览,可生成文档如下: 编译后,将生成一个两页的PDF文件。第一页是标题页,第二页包含示例内容。
Beamer主要功能标题页标题页的选项比简介中提供的选项多。下面是一个完整示例,大多数命令都是可选的: \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[currentsubsection] \end{frame} } 添加特效itemize逐项列出: \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} [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-arv6xJGo-1633669562937)(http://image./img/20211008082516.png)] 上述代码中有一个列表,由 pause
\begin{frame} In this slide \pause the text will be partially visible \pause And finally everything will be there \end{frame}
高亮在演示文稿中,突出重点是一种很好的做法,可以让听众更容易地确定主题。 \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} 一个主题可以与一个颜色主题相结合,以改变不同元素使用的颜色。 \documentclass{beamer} \usetheme{Madrid} \usecolortheme{beaver}
TeXStudio中有多种主题可选(Wizard - Quick Beamer Presentation) 字体字体大小字体大小可以通过beamer类进行设置:
字体类型改变beamer演示文稿中的字体类型有两种方法,一种是使用字体主题,另一种是直接从系统导入字体。 字体主题\documentclass{beamer} \usefonttheme{structuresmallcapsserif} \usetheme{Madrid}
从系统导入字体除此以外,还可以导入系统中安装的字体: \documentclass{beamer} \usepackage{bookman} \usetheme{Madrid} 通过 分栏有时,演示文稿中的信息以两列格式显示会更好: \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}
显示中文LaTeXstudio默认的编译器不支持中文,改为XeLaTeX即可: 若LaTeXstudio的pdf预览不显示中文,在导言区加入以下代码即可: \usepackage{ctex} [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-cqCUDPDe-1633669562950)(http://image./img/20211008124441.png)] |
|
来自: LibraryPKU > 《Latex》