latex 使用 beamer 宏包制作幻灯片 基本元素构建的框架 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 \documentclass[ 12pt,aspectratio=43]{beamer} % Beamer 文档类型,字号为 12pt,长宽比为4:3 \usepackage[UTF8,noindent]{ctexcap} % 使用文字宏包 \usetheme{CambridgeUS} %-主题选择 \usecolortheme{dolphin} %-色彩选择 \usefonttheme{serif} %-字体选择 %%%%%%%%%%%% beamer 导言区 %%%%%%%%%%%%%%%%%% %%--------------首页信息设置----------------- \title[大标题]{\fontsize{24pt}{12pt}\selectfont {\emph {\textit {大标题}}}} %\subtitle{} %----- 标题设置 ------- \author{作者} %----- 个人信息设置 --- \institute[机构简写]{ 二级机构\\ 一级机构} %----- 机构信息 ------ \CTEXoptions[today=old] % 日期为英文格式 \date[\today]{\today} %----- 日期信息 ------ \begin{document} %% -----生成标题页----------- %\begin{frame} %\titlepage %\end{frame} \section{章标题} \subsection{节标题} \begin{frame}{页标题} \centering 正文部分 \end{frame} \end{document}
效果如下所示:
TeXstudio 使用技巧 快捷键的使用
注释与反注释:
编译报错
Error: Undefinded control sequence. \begin{document}
原因: 可能是导言区内某个包的引用有问题,或者某个包需要更新 内容参考以下链接,若有侵权,告知立删
[CSDN]doubleslow; : Texstudio error : Undefined control sequence. \begin{document} (subfigure已经被废弃了,用subcaption!!!)
Beamer 在指定的页面中插入背景图片 1 2 3 4 5 6 { \usebackgroundtemplate{\includegraphics[width=\paperwidth]{background}} \begin{frame} % Insert background into the title page \titlepage \end{frame} }
内容参考以下链接,若有侵权,告知立删:
[Github] benjamin-weiss: [how to show background image in just one frame? #285](https://github.com/matze/mtheme/issues/285)
插入横线 1 2 \rule[水平高度]{长度}{粗细} \rule[-10pt]{14.3cm}{0.05em}
字号设置 可以直接修改字号的有以下命令:
1 2 3 4 5 6 7 8 9 10 \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge