Debian Codegraph @

texmf-dist/doc/latex/beamertheme-epyt/epyt-demo.tex

raw
1 % -*- coding: utf-8 -*-
2 % !TEX program = xelatex
3 \documentclass[12pt]{beamer}
4
5 \usetheme[style=beta]{epyt} % alpha, beta, delta, gamma, zeta
6
7 \usepackage{listings}
8 \lstset{
9 basicstyle=\ttfamily,xleftmargin=2em,
10 commentstyle=\color{teal},keywordstyle=\color{acolor4},
11 language=[LaTeX]{TeX},morekeywords={usetheme,epytsetup}
12 }
13
14 \newcommand{\mylead}[1]{\textcolor{acolor1}{#1}}
15 \newcommand{\mybold}[1]{\textcolor{acolor2}{#1}}
16 \newcommand{\mywarn}[1]{\textcolor{acolor3}{#1}}
17
18 \begin{document}
19
20 \title{Epyt Theme for Beamer}
21 \subtitle{A simple and clean theme}
22 \author{Your Name Here}
23 \institute{Center for Presentation Design}
24
25 \begin{frame}[plain]\transboxout
26 \titlepage
27 \end{frame}
28
29 %\begin{frame}\transboxin
30 %\begin{center}
31 %\tableofcontents[hideallsubsections]
32 %\end{center}
33 %\end{frame}
34
35 \section{Black in White}
36
37 \begin{frame}{Introduction}
38 \mylead{Epyt} is a simple but nice theme for Beamer, with the following features: \pause
39 \begin{itemize}[<+->]
40 \item simple structure: with page numbers at footer, no head bar and side bar;
41 \item simple templates: possible to display theorems with traditional inline style;
42 \item simple colors: using only several foreground and background colors.
43 \end{itemize}
44 \end{frame}
45
46 \begin{frame}{Getting the Theme}
47 \mylead{Epyt} theme is contained in major TeX distributions.
48 \begin{itemize}
49 \item In MiKTeX as \mybold{beamertheme-epyt} package.
50 \item In TeXLive as \mybold{beamertheme-epyt} package.
51 \end{itemize}
52 You could install \mylead{epyt} in the package manager.\par\pause
53 Also you could download \mylead{epyt} from \href{https://www.ctan.org/pkg/beamertheme-epyt}{CTAN}.
54 \end{frame}
55
56 \begin{frame}[fragile]{Getting Started}
57 The following code is a minimal example using \mylead{epyt} theme.
58 \begin{lstlisting}
59 \documentclass{beamer}
60 \usetheme{epyt}
61 \begin{document}
62 \begin{frame}{Hello}
63 Hello Beamer!
64 \end{frame}
65 \end{document}
66 \end{lstlisting}
67 \end{frame}
68
69 \begin{frame}[fragile]{Customization}
70 \mylead{Epyt} theme provides a number of styles, which can be set in loading the theme.
71 \begin{lstlisting}
72 \usetheme[style=gamma]{epyt}
73 \end{lstlisting}
74 \pause The style could also be changed in the middle of the presentation.
75 \begin{lstlisting}
76 \epytsetup{style=beta}
77 \end{lstlisting}
78 \end{frame}
79
80 \begin{frame}{Available Styles}
81 All available styles are listed here.
82 \begin{description}
83 \item[alpha] white text in black background
84 \item[beta] black text in white background
85 \item[delta] white text in blue background
86 \item[gamma] white text in green background
87 \item[zeta] white text in red background
88 \end{description}
89 \pause
90 And the default style is \mybold{beta}, which is what you see up to now in this presentation.
91 \end{frame}
92
93 \begin{frame}{Predefined Colors}
94 For each style, five accent colors are predefined.
95 With current style, they are the followings.
96 \begin{flushleft}
97 \textcolor{acolor1}{acolor1}
98 \textcolor{acolor2}{acolor2}
99 \textcolor{acolor3}{acolor3}
100 \textcolor{acolor4}{acolor4}
101 \textcolor{acolor5}{acolor5}
102 \end{flushleft}
103 \pause Also five filling colors are predefined for each style.
104 \begin{flushleft}
105 \colorbox{fcolor1}{fcolor1}
106 \colorbox{fcolor2}{fcolor2}
107 \colorbox{fcolor3}{fcolor3}
108 \colorbox{fcolor4}{fcolor4}
109 \colorbox{fcolor5}{fcolor5}
110 \end{flushleft}
111 \pause These colors are useful when you are drawing a tikz picture.
112 \end{frame}
113
114 \epytsetup{style=gamma}
115
116 \begin{frame}[plain]\transboxout
117 \titlepage
118 \end{frame}
119
120 \section{White in Green}
121
122 \begin{frame}{Predefined Colors}
123 Five accent colors are predefined for this style.
124 \begin{flushleft}
125 \textcolor{acolor1}{acolor1}
126 \textcolor{acolor2}{acolor2}
127 \textcolor{acolor3}{acolor3}
128 \textcolor{acolor4}{acolor4}
129 \textcolor{acolor5}{acolor5}
130 \end{flushleft}
131 Also five filling colors are predefined for this style.
132 \begin{flushleft}
133 \colorbox{fcolor1}{fcolor1}
134 \colorbox{fcolor2}{fcolor2}
135 \colorbox{fcolor3}{fcolor3}
136 \colorbox{fcolor4}{fcolor4}
137 \colorbox{fcolor5}{fcolor5}
138 \end{flushleft}
139 \end{frame}
140
141 \begin{frame}[fragile]{Ordered Lists}
142 A Beamer theme consists of the following four parts: \pause
143 \begin{enumerate}[<+->]
144 \item outer theme, with \verb!\usebeameroutertheme!;
145 \item inner theme, with \verb!\usebeamerinnertheme!;
146 \item color theme, with \verb!\usebeamercolortheme!;
147 \item font theme, with \verb!\usebeamerfonttheme!.
148 \end{enumerate}
149 \end{frame}
150
151 \epytsetup{style=delta}
152
153 \begin{frame}[plain]\transboxout
154 \titlepage
155 \end{frame}
156
157 \section{White in Blue}
158
159 \begin{frame}{Predefined Colors}
160 Five accent colors are predefined for this style.
161 \begin{flushleft}
162 \textcolor{acolor1}{acolor1}
163 \textcolor{acolor2}{acolor2}
164 \textcolor{acolor3}{acolor3}
165 \textcolor{acolor4}{acolor4}
166 \textcolor{acolor5}{acolor5}
167 \end{flushleft}
168 Also five filling colors are predefined for this style.
169 \begin{flushleft}
170 \colorbox{fcolor1}{fcolor1}
171 \colorbox{fcolor2}{fcolor2}
172 \colorbox{fcolor3}{fcolor3}
173 \colorbox{fcolor4}{fcolor4}
174 \colorbox{fcolor5}{fcolor5}
175 \end{flushleft}
176 \end{frame}
177
178 \begin{frame}{Example}
179 \begin{example}
180 Prove the following result:
181 \[ \lim_{x\to0}\frac{\sin 3x}{\ln(1-2x)}=-\frac{3}{2} \]
182 \end{example}\pause
183 \begin{proof}
184 Since $\sin 3x \sim 3x$ and $\ln(1-2x) \sim -2x$, we have
185 \[ \lim_{x\to0}\frac{\sin 3x}{\ln(1-2x)}=\lim_{x\to0}\frac{3x}{-2x}=-\frac{3}{2}, \]
186 and we are done.
187 \end{proof}
188 \end{frame}
189
190 \epytsetup{style=alpha}
191
192 \begin{frame}[plain]\transboxout
193 \titlepage
194 \end{frame}
195
196 \section{White in Black}
197
198 \begin{frame}{Predefined Colors}
199 Five accent colors are predefined for this style.
200 \begin{flushleft}
201 \textcolor{acolor1}{acolor1}
202 \textcolor{acolor2}{acolor2}
203 \textcolor{acolor3}{acolor3}
204 \textcolor{acolor4}{acolor4}
205 \textcolor{acolor5}{acolor5}
206 \end{flushleft}
207 Also five filling colors are predefined for this style.
208 \begin{flushleft}
209 \colorbox{fcolor1}{fcolor1}
210 \colorbox{fcolor2}{fcolor2}
211 \colorbox{fcolor3}{fcolor3}
212 \colorbox{fcolor4}{fcolor4}
213 \colorbox{fcolor5}{fcolor5}
214 \end{flushleft}
215 \end{frame}
216
217 \epytsetup{style=zeta}
218
219 \begin{frame}[plain]\transboxout
220 \titlepage
221 \end{frame}
222
223 \section{White in Red}
224
225 \begin{frame}{Predefined Colors}
226 Five accent colors are predefined for this style.
227 \begin{flushleft}
228 \textcolor{acolor1}{acolor1}
229 \textcolor{acolor2}{acolor2}
230 \textcolor{acolor3}{acolor3}
231 \textcolor{acolor4}{acolor4}
232 \textcolor{acolor5}{acolor5}
233 \end{flushleft}
234 Also five filling colors are predefined for this style.
235 \begin{flushleft}
236 \colorbox{fcolor1}{fcolor1}
237 \colorbox{fcolor2}{fcolor2}
238 \colorbox{fcolor3}{fcolor3}
239 \colorbox{fcolor4}{fcolor4}
240 \colorbox{fcolor5}{fcolor5}
241 \end{flushleft}
242 \end{frame}
243
244 \end{document}