Debian Codegraph @

texmf-dist/doc/latex/beamerthemecelestia/celestia-demo-en.tex

raw
1 \documentclass[aspectratio=169]{beamer}
2
3 \usetheme{Celestia}
4
5 \subject{\LaTeX{} Presentation}
6 \title[The Celestia Beamer Theme]{A Tour of the Celestia Beamer Theme}
7 \subtitle{Showcasing the main features}
8 \author{Razik Ikhlef}
9 \institute{https://apps.edulatex.xyz}
10 \date{\today}
11
12 \begin{document}
13
14 \maketitle
15
16 \begin{frame}{Outline}
17 \tableofcontents
18 \end{frame}
19
20 \section{Getting started}
21
22 \begin{frame}{A simple slide}
23 Celestia is a modern, polished Beamer theme designed for professional and visually appealing presentations.
24
25 \medskip
26
27 It ships with:
28 \begin{itemize}
29 \item 22 carefully crafted color palettes
30 \item 9 frame title styles
31 \item 11 footer styles
32 \item 10 block styles
33 \item 4 code styles and 12 preset styles
34 \end{itemize}
35 \end{frame}
36
37 \begin{frame}{Numbered lists and descriptions}
38 \framesubtitle{Frame subtitle support}
39
40 All three compilation engines are supported:
41 \begin{enumerate}
42 \item pdfLaTeX --- fast compilation, maximum compatibility
43 \item LuaLaTeX --- native access to system fonts
44 \item XeLaTeX --- advanced OpenType font handling
45 \end{enumerate}
46
47 \medskip
48
49 \begin{description}
50 \item[serifface] Serif font (secondary)
51 \item[sansface] Sans-serif font (body text)
52 \item[monoface] Monospace font for code
53 \item[mathface] Font for mathematical formulas
54 \end{description}
55 \end{frame}
56
57 \section{Blocks}
58
59 \begin{frame}{The three block types}
60 \begin{block}{Standard block}
61 This block uses the \texttt{blockcolor} defined by the current palette. It highlights important information.
62 \end{block}
63
64 \begin{exampleblock}{Example block}
65 This block uses the \texttt{examplecolor}. It is well suited for concrete examples and illustrations.
66 \end{exampleblock}
67
68 \begin{alertblock}{Alert block}
69 This block uses the \texttt{alertcolor}. It draws attention to critical points or common pitfalls.
70 \end{alertblock}
71 \end{frame}
72
73 \section{Mathematics}
74
75 \begin{frame}{Theorem and proof}
76 \begin{theorem}[title=Sum of the first integers]
77 For every integer $n \geq 1$:
78 \[ 1 + 2 + \cdots + n = \frac{n(n+1)}{2} \]
79 \end{theorem}
80
81 \begin{proof}
82 Let $S = 1 + 2 + \cdots + n$.
83 Writing the sum in reverse order:
84 $S = n + (n-1) + \cdots + 1$.
85 Adding term by term: $2S = n(n+1)$.
86 \end{proof}
87 \end{frame}
88
89 \begin{frame}{Definitions and properties}
90 \begin{definition}[title=Prime number]
91 An integer $\mathterm{p} \geq 2$ is called \emph{prime} if its only divisors are $1$ and itself.
92 \end{definition}
93
94 \begin{property}[title=Infinitude of primes]
95 There are infinitely many prime numbers.
96 \end{property}
97
98 \begin{remark}
99 The number $1$ is not considered prime by convention.
100 \end{remark}
101 \end{frame}
102
103 \begin{frame}{Lemma, corollary and proposition}
104 \begin{lemma}[title=Euclidean division]
105 For every integer $a$ and every integer $b > 0$, there exists a unique pair $(q, r)$ such that $a = bq + r$ with $0 \leq r < b$.
106 \end{lemma}
107
108 \begin{corollary}
109 Every integer is either even or odd.
110 \end{corollary}
111
112 \begin{proposition}
113 If $p$ is prime and $p \mid ab$, then $p \mid a$ or $p \mid b$.
114 \end{proposition}
115 \end{frame}
116
117 \begin{frame}{Method, activity and application}
118 \begin{method}[title=Factorization]
119 To factor $n$, test divisibility by $2, 3, 5, 7, \ldots$ up to $\sqrt{n}$.
120 \end{method}
121
122 \begin{activity}
123 Find the prime factorization of $360$.
124 \end{activity}
125
126 \begin{application}
127 Simplify the fraction $\dfrac{360}{84}$ using prime factorization.
128 \end{application}
129 \end{frame}
130
131 \section{Interactive quiz}
132
133 \begin{frame}{Multiple choice question}
134 \framesubtitle{The \texttt{quiz} environment with \texttt{\textbackslash correct}}
135
136 What is the value of $\displaystyle\int_0^1 2x\,dx$?
137
138 \bigskip
139
140 \begin{quiz}
141 \item $0$
142 \correct{$1$}
143 \item $2$
144 \item $\dfrac{1}{2}$
145 \end{quiz}
146
147 \bigskip
148
149 \only<2>{\alert{The correct answer is highlighted on click.}}
150 \end{frame}
151
152 \section{Source code}
153
154 \begin{frame}[fragile]{Syntax highlighting}
155 A ready-to-use \texttt{python} style is included for keyword coloring:
156
157 \begin{lstlisting}[style=python]
158 def fibonacci(n):
159 if n <= 1:
160 return n
161 return fibonacci(n-1) + fibonacci(n-2)
162
163 for i in range(10):
164 print(fibonacci(i))
165 \end{lstlisting}
166 \end{frame}
167
168 \section{Layout}
169
170 \begin{frame}{Columns and blocks}
171 \begin{columns}[T]
172 \begin{column}{0.48\textwidth}
173 \begin{block}{Highlights}
174 \begin{itemize}
175 \item Polished design
176 \item Fine-grained customization
177 \item 22 color palettes
178 \item pdfLaTeX compatible
179 \end{itemize}
180 \end{block}
181 \end{column}
182
183 \begin{column}{0.48\textwidth}
184 \begin{exampleblock}{Font options}
185 Customizable fonts:
186 \begin{itemize}
187 \item \texttt{serifface} (literata)
188 \item \texttt{sansface} (inter)
189 \item \texttt{monoface} (plex-mono)
190 \item \texttt{mathface} (iwona)
191 \end{itemize}
192 \end{exampleblock}
193 \end{column}
194 \end{columns}
195 \end{frame}
196
197 \begin{frame}{Tables}
198 An overview of the dark palettes:
199
200 \bigskip
201
202 \centering
203 \begin{tabular}{llc}
204 \hline
205 \textbf{Palette} & \textbf{Background} & \textbf{Hex code} \\
206 \hline
207 obsidian & dark anthracite & \texttt{\#22242E} \\
208 midnight & deep night blue & \texttt{\#161828} \\
209 dusk & dark blue-green & \texttt{\#131C20} \\
210 velours & dark purple & \texttt{\#1C1420} \\
211 \hline
212 \end{tabular}
213
214 \bigskip
215
216 These palettes are ideal for dimly lit rooms.
217 \end{frame}
218
219 \begin{frame}{Formatting commands}
220 Celestia provides a set of dedicated commands:
221
222 \medskip
223
224 \begin{itemize}
225 \item \alert{Alert text} with \texttt{\textbackslash alert\{...\}}
226 \item $\mathterm{x}$ is a math term (\texttt{\textbackslash mathterm})
227 \item $\mathdef{f}$ is a math definition (\texttt{\textbackslash mathdef})
228 \item \texttt{Inline code} with \texttt{\textbackslash texttt\{...\}}
229 \end{itemize}
230
231 \bigskip
232
233 Formulas blend in seamlessly:
234 \[
235 e^{i\pi} + 1 = 0
236 \]
237 \end{frame}
238
239 \section{Preset styles}
240
241 \begin{frame}{The 12 preset styles}
242 \framesubtitle{Coherent combinations of palette, frametitle, footer and blocks}
243
244 \centering
245 \begin{tabular}{llll}
246 \hline
247 \textbf{Style} & \textbf{Palette} & \textbf{Frametitle} & \textbf{Footer} \\
248 \hline
249 minimal & sapphire & plain & minimalist \\
250 signature & petrol & cosmic & cosmic \\
251 studio & oxford & elegant & info \\
252 academic & horizon & elegant & classic \\
253 modern & nordic & subtle & info \\
254 design & imperial & clean & badge \\
255 executive & palatial & leftbar & fullbar \\
256 sober & terracotta & gradient & info \\
257 simple & steel & plain & minimalist \\
258 editorial & manuscript & line & ruled \\
259 lumiere & lumiere & plainrule & framed \\
260 chalk & chalk & subtle & boxedruled \\
261 \hline
262 \end{tabular}
263 \end{frame}
264
265 \begin{frame}{Text and quotations}
266 The body text uses a sans-serif typeface optimised for projection. Contrast ratios are calibrated to ensure readability, even in large lecture halls.
267
268 \vspace{1em}
269
270 \begin{quote}
271 \emph{Simplicity is the ultimate sophistication.}
272
273 \hfill\textcolor{emphasis}{--- Leonardo da Vinci}
274 \end{quote}
275
276 \begin{quote}
277 \emph{The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise.}
278
279 \hfill\textcolor{emphasis}{--- Edsger W. Dijkstra}
280 \end{quote}
281 \end{frame}
282
283 \begin{frame}[standout]
284 Thank you for your attention!
285
286 \vspace{1em}
287 \large celestia v1.2.4
288 \end{frame}
289
290 \end{document}