最基本的框架

\documentclass{beamer}
\usepackage[english]{babel}   %如果去掉,中英混合会出错
\usepackage[noindent]{ctex}   %可使用 \usepackage{CJK}
\usepackage{beamerthemesplit}
% Or whatever. Note that the encoding and the font should match. If T1
% does not look nice, try deleting the line with the fontenc.
\usepackage[T1]{fontenc}
\usepackage{times}\usetheme{Berkeley}\title{XXXX}\subtitle{XXXX}\author{Ofey}\institute{School of Computer Science\\Beijing Institute of Technology
}% This is only inserted into the PDF information catalog. Can be left out.
\subject{OOO}
\keywords{OXOX}\begin{document}\begin{frame}{XXXX}
A normal frame.
\end{frame}\end{document}

上面代码,便可以生成一夜的slides了,在我机器上测试是木有问题的。beamer中的frame有点相当于powerpoint中的一叶,要是想新建几页,再多加加个frame吧,也可以写成

\frame
{\frametitle{test}A normal frame.
}

至于frame和整个slides也都有相应的subtitle可以设置,随便看下文档就ok。

多个作者多个单位

有时,slides可能有多个作者,并且属于多个单位,会议论文作报告时,经常遇见此情况。如下代码解决

\author[Author, Another] % (optional, use only with lots of authors)
{F.~Author\inst{1} \and S.~Another\inst{2}}
% - Give the names in the same order as the appear in the paper.
% - Use the \inst{?} command only if the authors have different affiliation.\institute[Beijing Institute of Technology] % (optional, but mostly needed)
{\inst{1}School of Computer Science\\Beijing Institute of Technology\and\inst{2}Department of Theoretical Philosophy\\University of Elsewhere
}
% - Use the \inst command only if there are several affiliations.
% - Keep it simple, no one is interested in your street address.

institute中写Email是可以直接识别出的,放心使用。至于经常出现的中括号可选项,用了乃就懂的~~

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}{university-logo-filename}
% \logo{\pgfuseimage{bitlogo}}
\logo{\includegraphics[height=0.09\textwidth]{./pic/bitlogo.eps}} %这只是我的logo路径

目录(TOC)

LATEX生成目录这类实在是拿手戏。最简单的:

\begin{frame}\tableofcontents
\end{frame}

有时,可能目录太多,想分成两栏,可以使用multicol包

% This environment allows switching between one and multicolumn format on the same page
\usepackage{multicol}\begin{frame}{Outline}\begin{multicols}{2}\tableofcontents% You might wish to add the option [pausesections]\end{multicols}
\end{frame}

有时,可能不想显示subsection之类,亦或者只想限制指定的几个section,如下:

\tableofcontents[hidesubsections,sections={<1-4>}] %显示1-4section,不显示subsection

\tableofcontents还有很多其他参数设置,详见文档。

若想在没个章节前显示下目录提示,可以如下代码:

\AtBeginSection[] { \begin{frame}\frametitle{Outline} \tableofcontents[currentsection,hideothersubsections] \end{frame} \addtocounter{framenumber}{-1}  %目录页不计算页码
}

不过没发现如何获得当前section的数值,这样我就可以自动在每张前插入目录,且使当前目录为第一。
当然,还可以做成一个个显示目录的动画效果,不过没啥实际意义- -!

slides中的链接

有时想在slides中加入超链接,可以跳转到指定的页面,这个也是很easy的。
给欲跳转到的frame加上label

\frame[label = XXX]
{\frametitle{OOO}\framesubtitle{XXX}OOXX
}

再在想加入超链接的地方加入:

\hyperlink{XXX}{\beamergotobutton{乃想显示的文本}} %\beamergotobutton可以选其他的按钮

显示时间+页数

这个根据不同的主题不一样,比如Berkeley默认就木有,而CambridgeUS就是有的,可以自己在导言区加入:

\setbeamertemplate{footline}{%\leavevmode%\hbox{%\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%\usebeamerfont{author in head/foot}\insertshortauthor\end{beamercolorbox}%\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%\usebeamerfont{title in head/foot}\insertshorttitle\end{beamercolorbox}%\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}\end{beamercolorbox}}%\vskip0pt%
}

页脚显示文本

有时希望在frame的左下角页脚能显示一些内容,并不是为了报告时如何,只是给其他途径看slides的人一点更详尽的解释、资料,但是又不想用脚注(脚注在beamer效果不咋的)。

% add text to beamer footline\makeatletter
% add a macro that saves its argument
\newcommand{\footlineextra}[1]{\gdef\insertfootlineextra{#1}}
\newbox\footlineextrabox% add a beamer template that sets the saved argument in a box.
% The * means that the beamer font and color "footline extra" are automatically added.
\defbeamertemplate*{footline extra}{default}{\begin{beamercolorbox}[ht=2.25ex,dp=1ex,leftskip=\Gm@lmargin]{footline extra}\insertfootlineextra% \par\vspace{2.5pt}\end{beamercolorbox}
}\addtobeamertemplate{footline}{%% set the box with the extra footline material but make it add no vertical space\setbox\footlineextrabox=\vbox{\usebeamertemplate*{footline extra}}\vskip -\ht\footlineextrabox\vskip -\dp\footlineextrabox\box\footlineextrabox%
}
{}% patch \begin{frame} to reset the footline extra material
\let\beamer@original@frame=\frame
\def\frame{\gdef\insertfootlineextra{}\beamer@original@frame}
\footlineextra{}
\makeatother

使用很简单:

\footlineextra{XXXX}

参考文献

LATEX最爽的几点之一就是参考文献的管理使用啊,毕设论文得用doc的泪奔T.T
一般用的比较多的是bibtex,首先,自己搞定bib文件,然后slides中加上一页来放引用文献

%一般的引用样式只是[1]类,paper中这样没啥,slides这样不够友好
%apalike:美国心理学学会期刊样式,显示作者名+年份
\bibliographystyle{apalike}
\bibliography{XXX}   %引用的XXX.bib文件

此外,reference可能较多,slides一页一般都不够用,beamer是可以自动分成多页的,如下:

% If there are too many of them to fit on the frame,
% you must manually split them among additional frames or use the allowframebreaks option.
\begin{frame}[allowframebreaks]{References} \scriptsize\bibliographystyle{apalike}\bibliography{XXX}
\end{frame}

引用,自然是\cite{}命令了

表格

有时,需要画一些表格,可能比较复杂,比如可能需要合并几行,或者几列,下面一个示例:
导言区加上

\usepackage{multirow}
% The \cline command draws horizontal lines across the columns specified,
�ginning in column i and ending in column j, which are identified in the mandatory argument.
% \cline{i-j}\begin{table}\begin{tabular}{c|c|c|c}\hline% \multicolumn{2}{c}{\backslashbox{Name}{Numer}} &  \multicolumn{2}{c}{}\\ \hline\multirow{2}{*}{CleanEval} & \multirow{2}{*}{CleanEval-Eng} & training set & 60 \\ \cline{3-4} \multirow{2}{*}{}          & \multirow{2}{*}{}              & evaluation set &   864 \\ \hline \multirow{6}*{CETD} & NYTimes      & \multicolumn{2}{c}{100} \\ \cline{2-4} \multirow{6}*{}     & Yahoo!       & \multicolumn{2}{c}{100} \\ \cline{2-4} \multirow{6}*{}     & Wikipedia    & \multicolumn{2}{c}{100} \\ \cline{2-4}\multirow{6}*{}     & BBC          & \multicolumn{2}{c}{100} \\ \cline{2-4}\multirow{6}*{}     & Ars Technica & \multicolumn{2}{c}{100} \\ \cline{2-4}\multirow{6}*{}     & Chaos        & \multicolumn{2}{c}{200} \\ \hline \end{tabular}\end{table}

其中,\multirow{6}{CETD} 6代表占用6行,CETD是其内容,其实下面的\multirow{6}{}是可以去掉的,只是为了代码排版更清晰
\multicolumn{2}{c}{100}值合并两列,并且居中。
\cline的解释见代码注释
至于有时候可能会想要斜线的效果,不过latex中表格斜线分割看上去不舒服,还是不推荐,尤其科技论文中,文档直接明说不推荐
更多设置,详见Tables in LaTeX: packages and methods

sidebar

Berkeley主题中的sidebar默认显示所有的subsection,并且在显示对应的页时,高亮相应的section。对此可以作一些自定义。
一般章节较多时,sidebar就很不友好了,显示不全,间距还大,别扭,只是取消显示subsection,一句话搞定

\usetheme[hideallsubsections]{Berkeley}

一种更好的sidebar显示方式:

% By default, the current entry of the table of contents in the sidebar will be highlighted by using a more vibrant color.
% A good alternative is to highlight the current entry by using a different color for the background of the current point.
% The color theme sidebartab installs the appropriate colors\usecolortheme{sidebartab}

图表、算法编号

beamer仿佛默认是不显示图标标号的默认值是Figure:XXX

% show fig and table number
\setbeamertemplate{caption}[numbered]
% show theorems and example number
\setbeamertemplate{theorems}[numbered]

字体大小

beamer中某人的一些项目字体太大,比如样例example,可以在导言区自定义

\setbeamerfont{example}{size=\tiny}
\setbeamerfont{algorithm}{size=\scriptsize}

Chaos

至于关于动画之类的,其实更多的涉及到的是LATEX的画图,扯起来就太多了,不扯了,直接照着各文档来吧。
一般这些画图包都有各式各样的样例供参考,比如:这里,texexample也很不错。
至于beamer更多东西,直接去文档里找吧,很详细,见这里

PS:最后,stackexchange是个好网站

转发

Beamer 使用笔记相关推荐

  1. LaTeX Beamer 笔记 —— 用LaTeX做演示文稿

    文章目录 简介 Beamer主要功能 标题页 目录页 创建目录页 突出当前章节标题 突出当前副章节标题 添加特效 itemize pause 高亮 自定义演示文稿 主题/颜色主题 字体 字体大小 字体 ...

  2. beamer笔记——幻灯片比例改为16:9

    beamer进阶学习----幻灯片比例改为16:9 将幻灯片比例改为16:9 \documentclass[aspectratio=169]{beamer} 幻灯片包括的比例主要有: 16:10 14 ...

  3. 学术写作利器——LaTeX入门笔记整理(不定期更新,附加使用心得)

    LaTeX入门教程(上) 比Word更适合学术写作的编纂语言 Credit:讲座是敝系的几个技术宅办的,作者只负责记录和整理.后面的更新是个人心得. 写这篇日志的初衷是小圈子分享和个人心得记录,适合完 ...

  4. Latex指南(part1)--利用beamer制作学术报告文稿

    学习笔记,仅供参考,有错必纠 参考资料:使用 Beamer 制作学术讲稿 文章目录 Beamer 开胃菜 帧(frame) 标题页帧 案例 目录.节与小节 可能出现的问题 案例 列表环境 案例 文本命 ...

  5. 使用Latex制作分享,演讲,Presentation用的Slides,PPT——Beamer教程

    1.什么是Beamer 什么是Slides? Slides指的是幻灯片,常见的包括Microsoft 的PPT, macOS的Keynote,Google的Google Slides等. 什么是Bea ...

  6. MacTeX新手学习笔记

    新手,从0开始学习MacTeX.在这里记录一下学习心得和一些常用的代码以及功能,方便自己以后忘记了可以来这里查找,回忆. 首先在官网安装MacTeX ,但是最近官网不知道为什么一直下载失败,感谢我的朋 ...

  7. Python3《机器学习实战》学习笔记(八):支持向量机原理篇之手撕线性SVM

    原 Python3<机器学习实战>学习笔记(八):支持向量机原理篇之手撕线性SVM 置顶 2017年09月23日 17:50:18 阅读数:12644 转载请注明作者和出处: https: ...

  8. 【排版软件系列】 LaTeX文档类 Beamer

    Beamer是一个LaTeX文档类,用于为演示文稿创建幻灯片.它支持pdfLaTeX和LaTeX + dvips,不支持Latex+dvipdfm Beamer - 用于制作演示文稿的LaTeX类 概 ...

  9. 3天的LaTeX学习笔记 ψ`∇´ψ、白嫖2018年河南专升本高数试卷一个——源码

    3天的LaTeX学习笔记 ψ`∇´ψ.白嫖2018年河南专升本高数试卷一个--源码 开始咯,助你迅速tex(科学与艺术)入门 安装 测试一下 LaTeX_笔记 ->可直接copy使用 不要走开精 ...

  10. 【读书笔记】知易行难,多实践

    前言: 其实,我不喜欢看书,只是喜欢找答案,想通过专业的解答来解决我生活的困惑.所以,我听了很多书,也看了很多书,但看完书,没有很多的实践,导致我并不很深入在很多时候. 分享读书笔记: <高效1 ...

最新文章

  1. P2774 方格取数问题 网络最大流 割
  2. 基础【循环】-----(枚举器)------(转)
  3. (40)FPGA四种常用逻辑门(或非门)
  4. 为什么家里电信宽带不能用路由器了?要怎么解决?
  5. hdu 3461 Code Lock(并查集)2010 ACM-ICPC Multi-University Training Contest(3)
  6. foreman架构的引入3-安装Foreman1.5.3架构(all-in-one)
  7. Jenkins可持续集成
  8. C#编程(七)----------命名空间
  9. JAVA 逆向工程技术研究日志
  10. android计算dpi代码_android计算pad或手机的分辨率/像素/密度/屏幕尺寸/DPI值的方法...
  11. python-matplotlib-数据可视化-导入shp矢量数据并显示成图
  12. 第五章 资本主义发展的历史进程
  13. Python和JavaScript间代码转换4个工具
  14. pwn题堆利用的一些姿势 -- IO_FILE
  15. android webview aosp com.android.webview
  16. centos 中英文输入法切换
  17. 王老吉药业“关爱烈日下最可爱的人”公益活动在南京启动
  18. qPCR ddPCR
  19. lgv50怎么进入fastboot模式_LG V30/V30+解锁BL+刷入TWRP_Recovery中文版-获取ROOT权限卡刷教程...
  20. GANSS GS87C 高斯机械键盘Linux下不适配

热门文章

  1. Jenkins 更换插件源
  2. BLDC无刷直流电机驱动程序
  3. (转载)傅里叶分析之掐死教程(完整版)
  4. EtherNet IP /Modbus(通用串口)网关ENB-301MI
  5. Linux系统下KVM虚拟机的基本管理和操作
  6. 小米MIX 2还没上一代震撼,为什么却说雷军更自信了?
  7. 使用R读取xls与xlsx文件
  8. 低光图像增强(Low-light image enhancement)文章整理
  9. 在软件测试面试过程中如何进行自我介绍?
  10. $splay$学习总结$QwQ$