文章目錄
簡介
\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編譯預(yù)覽,可生成文檔如下: 編譯后,將生成一個(gè)兩頁的PDF文件。第一頁是標(biāo)題頁,第二頁包含示例內(nèi)容。
Beamer主要功能標(biāo)題頁標(biāo)題頁的選項(xiàng)比簡介中提供的選項(xiàng)多。下面是一個(gè)完整示例,大多數(shù)命令都是可選的: \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}}
目錄頁創(chuàng)建目錄頁\begin{frame} \frametitle{Table of Contents} \tableofcontents \end{frame}
突出當(dāng)前章節(jié)標(biāo)題也可以在文檔前添加如下代碼,用于生成目錄,并突出當(dāng)前章節(jié)標(biāo)題。 \AtBeginSection[] { \begin{frame} \frametitle{Table of Contents} \tableofcontents[currentsection] \end{frame} } 突出當(dāng)前副章節(jié)標(biāo)題也可以為 副章節(jié) \AtBeginSubsection[]{ \begin{frame} \frametitle{Table of Contents} \tableofcontents[currentsubsection] \end{frame} } 添加特效itemize逐項(xiàng)列出: \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} [外鏈圖片轉(zhuǎn)存失敗,源站可能有防盜鏈機(jī)制,建議將圖片保存下來直接上傳(img-arv6xJGo-1633669562937)(http://image./img/20211008082516.png)] 上述代碼中有一個(gè)列表,由 pause
\begin{frame} In this slide \pause the text will be partially visible \pause And finally everything will be there \end{frame}
高亮在演示文稿中,突出重點(diǎn)是一種很好的做法,可以讓聽眾更容易地確定主題。 \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} 一個(gè)主題可以與一個(gè)顏色主題相結(jié)合,以改變不同元素使用的顏色。 \documentclass{beamer} \usetheme{Madrid} \usecolortheme{beaver}
TeXStudio中有多種主題可選(Wizard - Quick Beamer Presentation) 字體字體大小字體大小可以通過beamer類進(jìn)行設(shè)置:
字體類型改變beamer演示文稿中的字體類型有兩種方法,一種是使用字體主題,另一種是直接從系統(tǒng)導(dǎo)入字體。 字體主題\documentclass{beamer} \usefonttheme{structuresmallcapsserif} \usetheme{Madrid}
從系統(tǒng)導(dǎo)入字體除此以外,還可以導(dǎo)入系統(tǒng)中安裝的字體: \documentclass{beamer} \usepackage{bookman} \usetheme{Madrid} 通過 分欄有時(shí),演示文稿中的信息以兩列格式顯示會(huì)更好: \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默認(rèn)的編譯器不支持中文,改為XeLaTeX即可: 若LaTeXstudio的pdf預(yù)覽不顯示中文,在導(dǎo)言區(qū)加入以下代碼即可: \usepackage{ctex} [外鏈圖片轉(zhuǎn)存失敗,源站可能有防盜鏈機(jī)制,建議將圖片保存下來直接上傳(img-cqCUDPDe-1633669562950)(http://image./img/20211008124441.png)] |
|