-
Notifications
You must be signed in to change notification settings - Fork 9
/
beamer_body.tex
141 lines (114 loc) · 3.11 KB
/
beamer_body.tex
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
\input{beamer_head}
% 使用 \part,\section,\subsection 等命令组织文档结构
% 使用 \frame 命令制作幻灯片
\usepackage{indentfirst}%段首缩进
%~ \usepackage{algorithm}
%~ \usepackage{algorithmic}
\begin{document}
\logo{\includegraphics[height=0.12\textwidth]{sjtu.jpg}}
\title[题目简写]{论文题目全称}
\author[Author]{作者}
\institute[SJTU]{Shanghai Jiao Tong University\\ Department of XX\\ email}
\date{\today}
% 定义目录页
\AtBeginPart{
\frame{
\frametitle{\partpage}
\begin{multicols}{2}% 如果目录过长,可以打开这个选项分两栏显示
\tableofcontents % 使用这个命令自动生成目录
\end{multicols}
}
}
% 在每个Section前都会加入的Frame
\AtBeginSection[]
{
\begin{frame}<beamer>
\frametitle{}
\setcounter{tocdepth}{2}
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}
% 在每个Subsection前都会加入的Frame
\AtBeginSubsection[]
{
\begin{frame}<beamer>
%\begin{frame}<handout:0> % handout:0 表示只在手稿中出现
\frametitle{}
\setcounter{tocdepth}{2}
\tableofcontents[currentsection,currentsubsection]
% 显示在目录中加亮的当前章节
\end{frame}
}
\numberwithin{equation}{section}%使公式编号关联至章节
\setbeamertemplate{theorems}[numbered]%显示定理编号
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%配置完成,以下为正文%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{大纲}
\setcounter{tocdepth}{2}
\tableofcontents
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%第一章%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{第一章}
\subsection{1.1}
\frame{
\frametitle{带编号的公式示例}
\begin{equation}
\begin{split}
a_{i}^{T}X \leq b_{i},\ i=1,2,...,n\\
0 \leq x_{i} \leq P_{i},\ i=1,2,.. .,N
\end{split}
\end{equation}
}
\subsection{1.2}
\frame{
\frametitle{各条依次显示示例}
\begin{itemize}
\item <1-> 第一条\\
\item <2-> 第二条\\
......
\end{itemize}
}
\frame{
\frametitle{带编号列表示例}
\begin{enumerate}
\item aaa
\item bbb\\
...
\end{enumerate}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%第二章%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{第二章}
\subsection{2.1}
\begin{frame}{插图示例}
\centering{ \includegraphics[width=10.5cm]{jdws.jpg} }%图片放于figures文件夹
\end{frame}
\subsection{2.2}
\frame{
\frametitle{显示公式示例}
\begin{theorem}[定理名称]\label{dl}%可以用\label{}和ref{}引用定理
XXX定理
\end{theorem}
}
\subsection{2.3}
\begin{frame}{表格示例}
% Table generated by Excel2LaTeX from sheet 'Sheet1' 推荐用excel2latex直接生成表格的tex代码
\begin{table}[htbp]
\centering
\caption{表格标题}
\begin{tabular}{rrrrr}
\addlinespace
\toprule
& c1 & c2 & c3 & c4 \\
\midrule
r1 & a & e & i & m \\
r2 & b & f & j & n \\
r3 & c & g & k & o \\
r4 & d & h & l & p \\
\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\end{table}%
\end{frame}
\end{document}