summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/themes/beamertheme-epyt/epyt-demo-cn.tex
blob: 2319c4ca13338b54d2fec499c67af71c59fbea94 (plain)
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
% -*- coding: utf-8 -*-
% !TEX program = xelatex

\documentclass[14pt,notheorems]{beamer}

\usetheme[style=beta]{epyt} % alpha, beta, delta, gamma, zeta

\usepackage[UTF8,noindent]{ctex}

\usepackage{listings}
\lstset{
  basicstyle=\ttfamily,xleftmargin=0em,
  commentstyle=\color{teal},keywordstyle=\color{acolor4},
  language=[LaTeX]{TeX},morekeywords={usetheme,epytsetup}
}

\newcommand{\mylead}[1]{\textcolor{acolor1}{#1}}
\newcommand{\mybold}[1]{\textcolor{acolor2}{#1}}
\newcommand{\mywarn}[1]{\textcolor{acolor3}{#1}}

\newtheorem{theorem}{定理}
\newtheorem{definition}[theorem]{定义}
\newtheorem{example}[theorem]{例子}

\newtheorem*{theorem*}{定理}
\newtheorem*{definition*}{定义}
\newtheorem*{example*}{例子}

\renewcommand{\proofname}{证明}

\begin{document}

\title{简洁美观的幻灯片主题}
\author{无名小卒}

\begin{frame}[plain]\transboxout
\titlepage
\end{frame}

%\begin{frame}\transboxin
%\begin{center}
%\tableofcontents[hideallsubsections]
%\end{center}
%\end{frame}

\section{黑色文字白色背景}

\begin{frame}{简要介绍}
\mylead{Epyt} 是一个简洁美观的 Beamer 演示主题。它有这些特点:\pause
\begin{itemize}[<+->]
\item 结构简洁,只有包含必需元素的底栏,没有顶栏和侧栏。
\item 内容简洁,列表环境和定理环境可以使用简单形式。
\item 配色简洁,仅仅用到几种背景色和前景色。
\end{itemize}
\end{frame}

\begin{frame}{下载安装}
\mylead{Epyt} 主题已经包含在主要的 TeX 发行版中。
\begin{itemize}
  \item 在 MiKTeX 中作为 \mybold{beamertheme-epyt} 宏包。
  \item 在 TeXLive 中作为 \mybold{beamertheme-epyt} 宏包。
\end{itemize}
你可以在包管理器中安装它。当然也可以直接从
\href{https://www.ctan.org/pkg/beamertheme-epyt}{CTAN} 中下载并安装。
\end{frame}

\begin{frame}[fragile]{开始使用}
要使用 \mylead{epyt} 主题,可以在导言区中加入下面一行。
\begin{lstlisting}
\usetheme{epyt}
\end{lstlisting}\pause
如果要使用中文,可以添加 \verb ctex 宏包,例如:
\begin{lstlisting}
\usepackage[UTF8,noindent]{ctex}
\end{lstlisting}
\end{frame}

\begin{frame}[fragile]{样式选用}
\mylead{Epyt} 主题中包含了多种样式,可以在载入该主题时选用。
\begin{lstlisting}
\usetheme[style=gamma]{epyt}
\end{lstlisting}
\pause 在文档中间可以用下面命令切换到另一个样式。
\begin{lstlisting}
\epytsetup{style=beta}
\end{lstlisting}
\end{frame}

\begin{frame}{可用的样式}
\mylead{Epyt} 主题中所有可用的样式如下所列。
\begin{description}
  \item[alpha] 白色文字,黑色背景
  \item[beta]  黑色文字,白色背景
  \item[delta] 白色文字,蓝色背景
  \item[gamma] 白色文字,绿色背景
  \item[zeta]  白色文字,红色背景
\end{description}
\pause
其中默认样式为 \mybold{beta}。这也是此文档当前正在使用的样式。
\end{frame}

\begin{frame}{预定义的颜色}
每种样式都预先定义了五种强调颜色。当前样式的强调颜色如下所示。
\begin{flushleft}
\textcolor{acolor1}{acolor1}
\textcolor{acolor2}{acolor2}
\textcolor{acolor3}{acolor3}
\textcolor{acolor4}{acolor4}
\textcolor{acolor5}{acolor5}
\end{flushleft}
\pause 每种样式也预先定义了五种填充颜色,如下所示。
\begin{flushleft}
\colorbox{fcolor1}{fcolor1}
\colorbox{fcolor2}{fcolor2}
\colorbox{fcolor3}{fcolor3}
\colorbox{fcolor4}{fcolor4}
\colorbox{fcolor5}{fcolor5}
\end{flushleft}
\pause 用 tikz 绘图时可以使用这些预先定义的颜色。
\end{frame}

\epytsetup{style=gamma}

\begin{frame}[plain]\transboxout
\titlepage
\end{frame}

\section{白色文字绿色背景}

\begin{frame}{预定义的颜色}
当前样式预先定义了五种强调颜色,如下所示。
\begin{flushleft}
\textcolor{acolor1}{acolor1}
\textcolor{acolor2}{acolor2}
\textcolor{acolor3}{acolor3}
\textcolor{acolor4}{acolor4}
\textcolor{acolor5}{acolor5}
\end{flushleft}
当前样式预先定义了五种填充颜色,如下所示。
\begin{flushleft}
\colorbox{fcolor1}{fcolor1}
\colorbox{fcolor2}{fcolor2}
\colorbox{fcolor3}{fcolor3}
\colorbox{fcolor4}{fcolor4}
\colorbox{fcolor5}{fcolor5}
\end{flushleft}
\end{frame}

\begin{frame}[fragile]{有序列表}
无序列表前面已经看到,现在来看看有序列表。一个 Beamer 的主题由下列四部分组成:\pause
\begin{enumerate}[<+->]
\item 外部主题,用 \verb!\usebeameroutertheme! 命令;
\item 内部主题,用 \verb!\usebeamerinnertheme! 命令;
\item 颜色主题,用 \verb!\usebeamercolortheme! 命令;
\item 字体主题,用 \verb!\usebeamerfonttheme! 命令。
\end{enumerate}
\end{frame}

\epytsetup{style=delta}

\begin{frame}[plain]\transboxout
\titlepage
\end{frame}

\section{白色文字蓝色背景}

\begin{frame}{预定义的颜色}
当前样式预先定义了五种强调颜色,如下所示。
\begin{flushleft}
\textcolor{acolor1}{acolor1}
\textcolor{acolor2}{acolor2}
\textcolor{acolor3}{acolor3}
\textcolor{acolor4}{acolor4}
\textcolor{acolor5}{acolor5}
\end{flushleft}
当前样式预先定义了五种填充颜色,如下所示。
\begin{flushleft}
\colorbox{fcolor1}{fcolor1}
\colorbox{fcolor2}{fcolor2}
\colorbox{fcolor3}{fcolor3}
\colorbox{fcolor4}{fcolor4}
\colorbox{fcolor5}{fcolor5}
\end{flushleft}
\end{frame}

\epytsetup{style=alpha}

\begin{frame}[plain]\transboxout
\titlepage
\end{frame}

\section{白色文字黑色背景}

\begin{frame}{预定义的颜色}
当前样式预先定义了五种强调颜色,如下所示。
\begin{flushleft}
\textcolor{acolor1}{acolor1}
\textcolor{acolor2}{acolor2}
\textcolor{acolor3}{acolor3}
\textcolor{acolor4}{acolor4}
\textcolor{acolor5}{acolor5}
\end{flushleft}
当前样式预先定义了五种填充颜色,如下所示。
\begin{flushleft}
\colorbox{fcolor1}{fcolor1}
\colorbox{fcolor2}{fcolor2}
\colorbox{fcolor3}{fcolor3}
\colorbox{fcolor4}{fcolor4}
\colorbox{fcolor5}{fcolor5}
\end{flushleft}
\end{frame}

\begin{frame}{例子证明}
\begin{example}
证明当$x>0$时不等式$\mathrm{e}^x>1+x$成立。
\end{example}\pause
\begin{proof}
令$f(x)=\mathrm{e}^x-x-1$。则当$x>0$时有
$$f'(x)=\mathrm{e}^x-1>0.$$
因此,当$x>0$时$f(x)>f(0)=0$。得证。
\end{proof}
\end{frame}

\epytsetup{style=zeta}

\begin{frame}[plain]\transboxout
\titlepage
\end{frame}

\section{白色文字红色背景}

\begin{frame}{预定义的颜色}
当前样式预先定义了五种强调颜色,如下所示。
\begin{flushleft}
\textcolor{acolor1}{acolor1}
\textcolor{acolor2}{acolor2}
\textcolor{acolor3}{acolor3}
\textcolor{acolor4}{acolor4}
\textcolor{acolor5}{acolor5}
\end{flushleft}
当前样式预先定义了五种填充颜色,如下所示。
\begin{flushleft}
\colorbox{fcolor1}{fcolor1}
\colorbox{fcolor2}{fcolor2}
\colorbox{fcolor3}{fcolor3}
\colorbox{fcolor4}{fcolor4}
\colorbox{fcolor5}{fcolor5}
\end{flushleft}
\end{frame}

\end{document}