Debian Codegraph @

texmf-dist/doc/latex/beamerthemecelestia/beamerthemeCelestia.tex

raw
1 \documentclass[
2 compacttoc,
3 twocoltoc,
4 % monotoc,
5 ]{neoschool}
6
7 \title{The Celestia theme for Beamer}
8 \author{Version: 1.2.4 \quad\textemdash{}\quad Author: Razik Ikhlef\\[\baselineskip]
9 {\normalfont\href{https://apps.edulatex.xyz/celestia/}{https://apps.edulatex.xyz/celestia/}}\\[\baselineskip]
10 {\normalfont\href{mailto:[email protected]}{[email protected]}}}
11 \date{\today}
12
13 \begin{document}
14
15 \maketitle
16
17 \vspace*{-0.5cm}
18
19 \tableofcontents
20
21 \section{Introduction}
22
23 The Celestia theme is a modern, elegant Beamer theme designed to produce professional and visually appealing presentations. It offers extensive customization while remaining straightforward to use.
24
25 Celestia ships with 22 color palettes, 9 frame title styles, 11 footer styles, 10 block styles, and 12 preset styles that combine these elements into cohesive looks.
26
27 \subsection{Basic usage}
28
29 \begin{code}{latex}
30 \documentclass{beamer}
31 \usetheme{Celestia}
32
33 \title{My presentation}
34 \author{John Doe}
35 \date{\today}
36
37 \begin{document}
38 \maketitle
39 \end{document}
40 \end{code}
41
42 \subsection{Compilation}
43
44 The Celestia theme is designed to be compiled with \texttt{lualatex} or \texttt{xelatex} for full font management through \texttt{fontspec}. A \texttt{pdflatex} compatibility mode is also available.
45
46 \section{Language}
47
48 \subsection{The \texttt{language} option}
49
50 Sets the presentation language, which is automatically passed to the \texttt{babel} package. In \texttt{french} mode, the names of mathematical environments (theorem, definition, etc.) and code listing captions are automatically translated.
51
52 \textbf{Default:} \texttt{english}
53
54 \begin{code}{latex}
55 \usetheme[language=french]{Celestia}
56 \end{code}
57
58 \section{Preset styles}
59
60 \subsection{The \texttt{style} option}
61
62 The theme provides preset styles that automatically configure several options (palette, frametitle, footerstyle, block) for a cohesive look.
63
64 \subsubsection*{Available styles}
65 \begin{itemize}
66 \item \textbf{minimal}: palette sapphire, frametitle plain, footerstyle minimalist, block soft;
67 \item \textbf{signature}: palette petrol, frametitle cosmic, footerstyle cosmic, block fullbar;
68 \item \textbf{studio}: palette oxford, frametitle elegant, footerstyle info, block sober, emphasis accent;
69 \item \textbf{academic}: palette horizon, frametitle elegant, footerstyle classic, block native, titlealign center;
70 \item \textbf{modern}: palette nordic, frametitle subtle, footerstyle info, block sober;
71 \item \textbf{design}: palette imperial, frametitle clean, footerstyle badge, block bar;
72 \item \textbf{executive}: palette palatial, frametitle leftbar, footerstyle fullbar, block fullbar;
73 \item \textbf{sober}: palette terracotta, frametitle gradient, footerstyle info, block sober;
74 \item \textbf{simple}: palette steel, frametitle plain, footerstyle minimalist, block noback;
75 \item \textbf{editorial}: palette manuscript, frametitle line, footerstyle ruled, block sober;
76 \item \textbf{lumiere}: palette lumiere, frametitle plainrule, footerstyle framed, block soft;
77 \item \textbf{chalk}: palette chalk, frametitle subtle, footerstyle boxedruled, block bar, barblockopacity 0.15.
78 \end{itemize}
79
80 \begin{code}{latex}
81 \usetheme[style=academic]{Celestia}
82 \end{code}
83
84 Individual options can be appended after the style for further customization:
85
86 \begin{code}{latex}
87 \usetheme[style=modern, palette=copper]{Celestia}
88 \end{code}
89
90 \section{Color palettes}
91
92 \subsection{Built-in palettes}
93
94 The theme ships with 22 harmonious palettes. Each palette automatically defines six colors: primary (\texttt{main}), accent, standard block (\texttt{blockcolor}), example (\texttt{examplecolor}), alert (\texttt{alertcolor}), and background (\texttt{background}).
95
96 \subsubsection{The \texttt{palette} option}
97
98 \textbf{Default:} \texttt{nordic}
99
100 \subsubsection*{Available palettes}
101 \begin{itemize}
102 \item \textbf{chalk}: dark text on a warm beige background, chalkboard style;
103 \item \textbf{copper}: gray-blue tones with copper accents;
104 \item \textbf{dusk}: light text on a dark teal background;
105 \item \textbf{horizon}: deep oceanic blues;
106 \item \textbf{imperial}: midnight blue with burgundy accents;
107 \item \textbf{lumiere}: deep blue-gray with pink accents;
108 \item \textbf{manuscript}: indigo and violet tones, manuscript feel;
109 \item \textbf{midnight}: light text on a deep indigo background;
110 \item \textbf{mineral}: dark blue with amber accents;
111 \item \textbf{nordic}: icy Scandinavian blues (default);
112 \item \textbf{obsidian}: light text on a dark background;
113 \item \textbf{oxford}: classic academic blues;
114 \item \textbf{palatial}: midnight blue with gold accents;
115 \item \textbf{petrol}: petrol greens with ochre accents;
116 \item \textbf{prestige}: deep blue-gray with raspberry accents;
117 \item \textbf{royal}: dark, elegant teal tones;
118 \item \textbf{sakura}: soft grays with pink accents;
119 \item \textbf{sapphire}: deep sapphire blues;
120 \item \textbf{steel}: steel blues with muted accents;
121 \item \textbf{terracotta}: warm terracotta tones;
122 \item \textbf{velours}: light text on a deep plum background;
123 \item \textbf{velvet}: dark plum with gold accents.
124 \end{itemize}
125
126 \begin{code}{latex}
127 \usetheme[palette=petrol]{Celestia}
128 \end{code}
129
130 \textbf{Note:} the \textbf{obsidian}, \textbf{midnight}, \textbf{dusk} and \textbf{velours} palettes use a dark background. They work well for presentations projected in dimly lit rooms.
131
132 \subsection{Custom palette}
133
134 \subsubsection{The \texttt{custompalette} option}
135
136 Defines a fully custom palette by specifying six hex color codes (without the \texttt{\#}) in order: primary, accent, standard block, example block, alert block, background.
137
138 \begin{code}{latex}
139 \usetheme[
140 custompalette={2C3E50,E74C3C,3498DB,27AE60,E67E22,ECF0F1}
141 ]{Celestia}
142 \end{code}
143
144 \subsection{Individual colors}
145
146 For finer control, each color can be overridden individually (hex codes without the \texttt{\#}):
147
148 \begin{itemize}
149 \item \textbf{maincolor}: primary color for text and headings;
150 \item \textbf{accentcolor}: secondary color for decorative elements;
151 \item \textbf{backgroundcolor}: slide background color;
152 \item \textbf{codebackgroundcolor}: background color for code blocks;
153 \item \textbf{blockcolor}: color for standard blocks (theorem, property, etc.);
154 \item \textbf{examplecolor}: color for example blocks (definition, example, etc.);
155 \item \textbf{alertcolor}: color for alert blocks (remark, activity, etc.).
156 \end{itemize}
157
158 \begin{code}{latex}
159 \usetheme[
160 maincolor=045549,
161 accentcolor=E63946,
162 backgroundcolor=FAFAFA,
163 blockcolor=1A3B52
164 ]{Celestia}
165 \end{code}
166
167 \subsection{Accessible named colors}
168
169 The colors of the active palette are exposed globally as \LaTeX{} color names, directly usable in \texttt{TikZ}, \verb|\color{...}|, \verb|\textcolor{...}|, etc. Their value automatically follows the selected palette — there is no need to copy the hexadecimal code by hand.
170
171 \begin{itemize}
172 \item \texttt{main}: primary color;
173 \item \texttt{accent}: secondary color;
174 \item \texttt{background}: slide background color;
175 \item \texttt{blockcolor}, \texttt{examplecolor}, \texttt{alertcolor}: colors of the three block families;
176 \item \texttt{emphasis}, \texttt{decoration}: colors resolved according to the \texttt{emphasis} and \texttt{decoration} options.
177 \end{itemize}
178
179 \begin{code}{latex}
180 \begin{tikzpicture}
181 \fill[background] (0,0) rectangle (2,1);
182 \draw[main, thick] (0,0) -- (2,1);
183 \node[fill=accent, text=background] at (1,0.5) {Text};
184 \end{tikzpicture}
185 \end{code}
186
187 \subsection{The \texttt{unicolor} option}
188
189 Enables a monochromatic mode in which the accent color is used for all elements (blocks, items, decorations).
190
191 \begin{code}{latex}
192 \usetheme[unicolor]{Celestia}
193 \end{code}
194
195 \subsection{The \texttt{emphasis} and \texttt{decoration} options}
196
197 These two options control the colors used for emphasis elements (headings, items) and decorations (rules, ornaments), respectively.
198
199 \subsubsection{The \texttt{emphasis} option}
200
201 \textbf{Default:} \texttt{main}
202
203 \begin{itemize}
204 \item \textbf{main}: headings and items use the primary color. The decoration color is then automatically set to \texttt{accent};
205 \item \textbf{accent}: headings and items use the accent color.
206 \end{itemize}
207
208 \subsubsection{The \texttt{decoration} option}
209
210 \textbf{Default:} follows the value of \texttt{emphasis}
211
212 Allows the decoration color to be set independently (\texttt{main} or \texttt{accent}).
213
214 \begin{code}{latex}
215 \usetheme[emphasis=accent, decoration=main]{Celestia}
216 \end{code}
217
218 \section{Fonts}
219
220 \subsection{Default fonts}
221
222 \begin{itemize}
223 \item \textbf{Serif font (main):} Literata (fallback: TeX Gyre Pagella);
224 \item \textbf{Sans-serif font:} Inter with light weights (fallback: TeX Gyre Heros);
225 \item \textbf{Monospaced font:} IBM Plex Mono (fallback: TeX Gyre Cursor).
226 \end{itemize}
227
228 \subsection{Font customization}
229
230 \begin{itemize}
231 \item \textbf{serifface}: main serif font (\texttt{literata} by default);
232 \item \textbf{seriffaceoptions}: \texttt{fontspec} options for the serif font;
233 \item \textbf{sansface}: sans-serif font (\texttt{inter} by default);
234 \item \textbf{sansfaceoptions}: options for the sans-serif font (empty by default; the theme automatically applies \texttt{Scale=0.88} and a light weight depending on the engine);
235 \item \textbf{monoface}: monospaced font for code (\texttt{plex-mono} by default);
236 \item \textbf{monofaceoptions}: \texttt{fontspec} options for the mono font.
237 \end{itemize}
238
239 \begin{code}{latex}
240 \usetheme[
241 serifface=EB Garamond,
242 seriffaceoptions={Scale=1.1},
243 sansface=Montserrat,
244 monoface=Fira Code
245 ]{Celestia}
246 \end{code}
247
248 To disable serif font loading entirely: \texttt{serifface=none}.
249
250 \subsubsection*{Engine differences for font lookup}
251
252 LuaLaTeX and XeLaTeX both use \texttt{fontspec}, but their font discovery mechanisms differ. \textbf{LuaLaTeX} maintains its own font database (\texttt{luaotfload}) and reliably finds fonts by family name (e.g. \texttt{Source Sans 3}). \textbf{XeLaTeX} relies on the system libraries (fontconfig on Linux, Core Text on macOS), which may not recognize the same name.
253
254 If a custom font is not found, the theme falls back to the TeX Gyre family and emits a warning. To avoid the fallback on XeLaTeX, you can:
255
256 \begin{itemize}
257 \item use the exact file name instead of the family name: \texttt{sansface=SourceSans3-Regular.otf};
258 \item check the name registered in fontconfig with \verb|fc-list | grep "Source"|;
259 \item prefer \textbf{LuaLaTeX} for the most reliable font discovery.
260 \end{itemize}
261
262 \subsection{The \texttt{allserif} option}
263
264 Uses the serif main font as the default body font and activates Beamer's \texttt{serif} font theme.
265
266 \begin{code}{latex}
267 \usetheme[allserif]{Celestia}
268 \end{code}
269
270 \subsection{The \texttt{semibold} option}
271
272 Enables semibold (weight 600) as the bold series for the main and sans-serif fonts. With \texttt{pdflatex}, this uses \verb|\DeclareFontSeriesDefault|. With LuaLaTeX/XeLaTeX, it automatically adds \texttt{BoldFeatures=\{Weight=600\}} to the \texttt{fontspec} options.
273
274 \textbf{Default:} \texttt{true}
275
276 \begin{code}{latex}
277 \usetheme[semibold=false]{Celestia}
278 \end{code}
279
280 \subsection{The \texttt{light} option}
281
282 Uses lighter font weights for the body text (weight 300 for the sans-serif font with LuaLaTeX/XeLaTeX, or the \texttt{light} option for Inter with pdflatex). Also applies a lighter weight to the monospaced font.
283
284 \textbf{Default:} \texttt{true}
285
286 \begin{code}{latex}
287 \usetheme[light=false]{Celestia}
288 \end{code}
289
290 \subsection{Math font}
291
292 \subsubsection{The \texttt{mathface} option}
293
294 Sets the math font. With LuaLaTeX/XeLaTeX, the built-in presets use \texttt{unicode-math}. With \texttt{pdflatex}, legacy packages are loaded instead.
295
296 \textbf{Default:} \texttt{iwona}
297
298 \subsubsection*{Built-in presets}
299 \begin{itemize}
300 \item \textbf{iwona}: Iwona math font (default);
301 \item \textbf{kurier}: Kurier math font;
302 \item \textbf{pagella}: TeX Gyre Pagella Math (\texttt{mathpazo} with pdflatex);
303 \item \textbf{termes}: TeX Gyre Termes Math (\texttt{newtxmath} with pdflatex);
304 \item \textbf{stix}: STIX Two Math (\texttt{stix2} with pdflatex);
305 \item \textbf{libertinus}: Libertinus Math (\texttt{libertinust1math} with pdflatex);
306 \item \textbf{fira}: Fira Math;
307 \item \textbf{noto}: Noto Sans Math;
308 \item \textbf{mtpro2}: MathTime Professional 2 (loaded via the \texttt{mtpro2} package with both engines).
309 \end{itemize}
310
311 Any other value is passed directly to \verb|\setmathfont| (LuaLaTeX/XeLaTeX) or \verb|\RequirePackage| (pdflatex).
312
313 \begin{code}{latex}
314 \usetheme[mathface=pagella]{Celestia}
315 \end{code}
316
317 \subsubsection{The \texttt{mathfaceoptions} option}
318
319 Additional options passed to \verb|\setmathfont| (LuaLaTeX/XeLaTeX only).
320
321 \begin{code}{latex}
322 \usetheme[mathface=pagella, mathfaceoptions={Scale=1.05}]{Celestia}
323 \end{code}
324
325 \section{Layout}
326
327 \subsection{Margins}
328
329 \subsubsection{The \texttt{margin} option}
330
331 Sets the left and right margin of the slide content area.
332
333 \textbf{Default:} \texttt{2em}
334
335 \begin{code}{latex}
336 \usetheme[margin=1.5em]{Celestia}
337 \end{code}
338
339 \subsection{Frame title style}
340
341 \subsubsection{The \texttt{frametitle} option}
342
343 Sets the visual style of each slide's frame title.
344
345 \textbf{Default:} \texttt{subtle}
346
347 \subsubsection*{Available values}
348 \begin{itemize}
349 \item \textbf{plain}: simple left-aligned title with no decoration;
350 \item \textbf{cosmic}: title with a horizontal decorative rule and diamond ornament;
351 \item \textbf{line}: title with a full-width horizontal rule;
352 \item \textbf{gradient}: subtle horizontal gradient beneath the title;
353 \item \textbf{clean}: colored vertical sidebar to the left of the title;
354 \item \textbf{elegant}: title on a full-width colored background;
355 \item \textbf{subtle}: title with a short underline rule (default);
356 \item \textbf{plainrule}: title with a gradient separator rule;
357 \item \textbf{leftbar}: thick vertical bar spanning the full height of the title.
358 \end{itemize}
359
360 \begin{code}{latex}
361 \usetheme[frametitle=elegant]{Celestia}
362 \end{code}
363
364 Every style supports a subtitle via \verb|\framesubtitle{...}|.
365
366 \subsubsection{Options \texttt{frametitlepadding} and \texttt{frametitlebottomskip}}
367
368 These allow fine-tuning the title spacing regardless of the selected style. Useful for compacting the title area to gain vertical space without changing the style's aesthetics.
369
370 \begin{itemize}
371 \item \textbf{frametitlepadding}=\texttt{dim}: internal padding (top and bottom) of the title box. Default depends on the style (\texttt{1.35em} for most).
372 \item \textbf{frametitlebottomskip}=\texttt{dim}: \verb|\vskip| added after the title, typically negative (pulls content up). Default \texttt{-1em} for most styles, adjusted for \texttt{clean} when a subtitle is present to preserve breathing room. The more negative the value, the smaller the space after the title. An explicit user-supplied value takes priority over all defaults.
373 \end{itemize}
374
375 \begin{code}{latex}
376 \usetheme[frametitle=subtle, frametitlepadding=0.5em,
377 frametitlebottomskip=-1.5em]{Celestia}
378 \end{code}
379
380 \textbf{Note:} on short frames, beamer vertically centers the content, which can mask the effect of \texttt{frametitlebottomskip}. For strict top alignment, use the \texttt{[t]} option of \verb|\begin{frame}| or of the class.
381
382 \subsection{Title page}
383
384 \subsubsection{The \texttt{titlealign} option}
385
386 Sets the alignment of the title page content.
387
388 \textbf{Default:} \texttt{left}
389
390 \textbf{Available values:} \texttt{left}, \texttt{center}, \texttt{right}
391
392 \begin{code}{latex}
393 \usetheme[titlealign=center]{Celestia}
394 \end{code}
395
396 \subsubsection{The \texttt{titlebackground} option}
397
398 Specifies a background image (displayed at reduced opacity) for the title page.
399
400 \begin{code}{latex}
401 \usetheme[titlebackground=images/background.jpg]{Celestia}
402 \end{code}
403
404 \subsubsection{The \texttt{\textbackslash subject} command}
405
406 Defines a subject line displayed above the main title on the title page and embedded in the PDF metadata.
407
408 \begin{code}{latex}
409 \subject{Computer Science}
410 \title{Introduction to Graph Theory}
411 \end{code}
412
413 \section{Heading style}
414
415 \subsection{Font family}
416
417 \subsubsection{The \texttt{headstyle} option}
418
419 Sets the font family used for headings.
420
421 \textbf{Default:} \texttt{sffamily}
422
423 \textbf{Available values:} \texttt{sffamily} (sans-serif), \texttt{rmfamily} (serif)
424
425 \subsection{Font shape}
426
427 \subsubsection{The \texttt{headshape} option}
428
429 Sets the font shape for headings.
430
431 \textbf{Default:} \texttt{normal}
432
433 \textbf{Available values:} \texttt{normal}, \texttt{sc} (small caps), \texttt{it} (italic)
434
435 \subsection{Font weight}
436
437 \subsubsection{The \texttt{headweight} option}
438
439 Sets the font weight for headings.
440
441 \textbf{Default:} \texttt{bfseries}
442
443 \textbf{Available values:} \texttt{bfseries} (bold), \texttt{mdseries} (medium)
444
445 \subsection{Block title weight}
446
447 \subsubsection{The \texttt{blocktitleweight} option}
448
449 Sets the font weight for tcolorbox block titles.
450
451 \textbf{Default:} \texttt{bfseries}
452
453 \textbf{Available values:} \texttt{bfseries} (bold), \texttt{mdseries} (medium)
454
455 \subsection{Heading sizes}
456
457 The theme allows each heading element to be sized independently. In addition to the standard LaTeX sizes, Celestia defines intermediate sizes for finer control:
458
459 \begin{itemize}
460 \item \textbf{titlesize}: main title on the title page (\texttt{LargeLARGE} by default);
461 \item \textbf{frametitlesize}: frame title (\texttt{normalsize} by default);
462 \item \textbf{sectiontitlesize}: section title (\texttt{LARGE} by default);
463 \item \textbf{subtitlesize}: subtitle (\texttt{Large} by default);
464 \item \textbf{footertextsize}: footer text (\texttt{tiny} by default).
465 \end{itemize}
466
467 \subsubsection*{Available sizes}
468
469 The standard LaTeX sizes are available: \texttt{tiny}, \texttt{scriptsize}, \texttt{footnotesize}, \texttt{small}, \texttt{normalsize}, \texttt{large}, \texttt{Large}, \texttt{LARGE}, \texttt{huge}, \texttt{Huge}.
470
471 Celestia adds an intermediate size between each consecutive pair:
472
473 \begin{itemize}
474 \item \texttt{tinyscriptsize} (between tiny and scriptsize);
475 \item \texttt{scriptsizefootnotesize} (between scriptsize and footnotesize);
476 \item \texttt{footnotesizesmall} (between footnotesize and small);
477 \item \texttt{smallnormalsize} (between small and normalsize);
478 \item \texttt{normalsizelarge} (between normalsize and large);
479 \item \texttt{largeLarge} (between large and Large);
480 \item \texttt{LargeLARGE} (between Large and LARGE);
481 \item \texttt{LARGEhuge} (between LARGE and huge);
482 \item \texttt{hugeHuge} (between huge and Huge).
483 \end{itemize}
484
485 \begin{code}{latex}
486 \usetheme[
487 titlesize=Huge,
488 frametitlesize=Large,
489 sectiontitlesize=huge,
490 footertextsize=scriptsize
491 ]{Celestia}
492 \end{code}
493
494 \subsection{Full example}
495
496 \begin{code}{latex}
497 \usetheme[
498 headstyle=rmfamily,
499 headshape=sc,
500 headweight=mdseries,
501 blocktitleweight=bfseries
502 ]{Celestia}
503 \end{code}
504
505 \section{Footer}
506
507 \subsection{The \texttt{footerstyle} option}
508
509 Sets the footer style (hidden on the title slide).
510
511 \textbf{Default:} \texttt{info}
512
513 \subsubsection*{Available values}
514 \begin{itemize}
515 \item \textbf{prestige}: three-column layout with short dash separators;
516 \item \textbf{cosmic}: three-column layout with author, title, and slide number separated by diamond ornaments;
517 \item \textbf{info}: author and title on the left, slide number on the right, with an optional progress bar (default);
518 \item \textbf{minimalist}: discreet slide number in the bottom-right corner;
519 \item \textbf{badge}: slide number in a colored badge on the bottom right, author and title on the bottom left;
520 \item \textbf{classic}: bar divided into four alternating colored zones (author / title / date / slide number);
521 \item \textbf{fullbar}: similar to classic but entirely on a colored background with circular separators;
522 \item \textbf{ruled}: three-column layout with horizontal rules between entries;
523 \item \textbf{framed}: three-column layout with a top horizontal rule;
524 \item \textbf{boxed}: three-column layout with rounded boxes around each entry;
525 \item \textbf{boxedruled}: combination of boxed entries and horizontal rules.
526 \end{itemize}
527
528 \begin{code}{latex}
529 \usetheme[footerstyle=info]{Celestia}
530 \end{code}
531
532 \subsection{The \texttt{progressbar} option}
533
534 Adds a progress bar at the bottom of each slide. For the \texttt{info} and \texttt{minimalist} styles, the bar is natively integrated into the footer. For other styles, it is overlaid at the bottom of the page.
535
536 \textbf{Default:} \texttt{false}
537
538 \begin{code}{latex}
539 \usetheme[progressbar]{Celestia}
540 \end{code}
541
542 \subsection{The \texttt{shownavigation} option}
543
544 Displays the Beamer navigation symbols (disabled by default).
545
546 \begin{code}{latex}
547 \usetheme[shownavigation]{Celestia}
548 \end{code}
549
550 \section{Table of contents}
551
552 \subsection{The \texttt{compacttoc} option}
553
554 Reduces the vertical spacing between entries in the table of contents.
555
556 \begin{code}{latex}
557 \usetheme[compacttoc]{Celestia}
558 \end{code}
559
560 \subsection{The \texttt{twocoltoc} option}
561
562 Automatically distributes sections across two columns.
563
564 \begin{code}{latex}
565 \usetheme[twocoltoc]{Celestia}
566 \end{code}
567
568 \subsection{The \texttt{\textbackslash twocolumntoc} command}
569
570 Provides manual control over the two-column distribution by specifying section ranges.
571
572 \begin{code}{latex}
573 \twocolumntoc[1][5][10]
574 \end{code}
575
576 This example places sections 1 through 4 in the left column and sections 5 through 10 in the right column.
577
578 \section{Blocks}
579
580 \subsection{Block types}
581
582 Three Beamer block types are available, each associated with a semantic color:
583
584 \begin{code}{latex}
585 \begin{block}{Block title}
586 Standard block content (blockcolor)
587 \end{block}
588
589 \begin{exampleblock}{Example}
590 Example block content (examplecolor)
591 \end{exampleblock}
592
593 \begin{alertblock}{Warning}
594 Alert block content (alertcolor)
595 \end{alertblock}
596 \end{code}
597
598 \subsection{Block style}
599
600 \subsubsection{The \texttt{block} option}
601
602 Sets the visual style of blocks.
603
604 \textbf{Default:} \texttt{sober}
605
606 \subsubsection*{tcolorbox styles}
607 \begin{itemize}
608 \item \textbf{fullbar}: colored sidebar with a separate tinted title area;
609 \item \textbf{bar}: colored sidebar with the title integrated into the content area;
610 \item \textbf{sober}: lightly tinted background with no border, colored title (default);
611 \item \textbf{soft}: uniformly tinted background, soft look;
612 \item \textbf{shaded}: stronger tinted background with a colored title banner;
613 \item \textbf{noback}: no background, minimalist;
614 \item \textbf{plain}: blocks with a classic border and background.
615 \end{itemize}
616
617 \subsubsection*{Native Beamer styles}
618 \begin{itemize}
619 \item \textbf{native}: native Beamer rounded blocks with a colored background;
620 \item \textbf{native-shadow}: native Beamer rounded blocks with a drop shadow;
621 \item \textbf{native-default}: default Beamer blocks (rectangular).
622 \end{itemize}
623
624 \begin{code}{latex}
625 \usetheme[block=sober]{Celestia}
626 \end{code}
627
628 \subsubsection{Block opacity options}
629
630 Controls the intensity of the tinted backgrounds for certain block styles (decimal value between 0 and 1):
631
632 \begin{itemize}
633 \item \textbf{shadedblockopacity}: opacity for the \texttt{shaded} style (\texttt{0.30} by default);
634 \item \textbf{soberblockopacity}: opacity for the \texttt{sober} style (\texttt{0.18} by default);
635 \item \textbf{softblockopacity}: opacity for the \texttt{soft} style (\texttt{0.18} by default);
636 \item \textbf{barblockopacity}: opacity for the \texttt{bar} style (\texttt{0.05} by default).
637 \end{itemize}
638
639 \begin{code}{latex}
640 \usetheme[block=sober, soberblockopacity=0.25]{Celestia}
641 \end{code}
642
643 \section{Special slides}
644
645 \subsection{Standout slides}
646
647 The \texttt{standout} frame option turns a slide into a highlight page with an inverted colored background. This feature requires the \texttt{standout} option to be enabled in the theme options.
648
649 \begin{code}{latex}
650 \usetheme[standout]{Celestia}
651
652 \begin{frame}[standout]
653 Key takeaway
654
655 \vspace{1em}
656 \large --- Quote
657 \end{frame}
658 \end{code}
659
660 \subsection{Section slides}
661
662 \subsubsection{The \texttt{sectionpage} and \texttt{sectionnumber} options}
663
664 Controls the automatic display of section divider slides, which present the section title with a decorative ornament.
665
666 \textbf{Defaults:} \texttt{sectionpage=true}, \texttt{sectionnumber=false}
667
668 \begin{itemize}
669 \item \textbf{sectionpage}: enables or disables automatic section divider slides;
670 \item \textbf{sectionnumber}: displays the section number inside a decorative circle.
671 \end{itemize}
672
673 \begin{code}{latex}
674 \usetheme[sectionpage=false]{Celestia}
675 \usetheme[sectionnumber]{Celestia}
676 \end{code}
677
678 To disable section slides manually within the document:
679
680 \begin{code}{latex}
681 \AtBeginSection{}
682 \end{code}
683
684 \section{Source code}
685
686 \subsection{Code handler}
687
688 \subsubsection{The \texttt{codehandler} option}
689
690 Sets the syntax highlighting backend.
691
692 \textbf{Default:} \texttt{listings}
693
694 \textbf{Available values:} \texttt{listings} (the \texttt{listings} package) or \texttt{minted} (the \texttt{minted} package, requires Pygments)
695
696 \begin{code}{latex}
697 \usetheme[codehandler=minted]{Celestia}
698 \end{code}
699
700 In \texttt{french} mode, code listing captions are automatically relabeled to \emph{Programme}.
701
702 \subsection{Code block style}
703
704 \subsubsection{The \texttt{codestyle} option}
705
706 Sets the visual style of code blocks.
707
708 \textbf{Default:} \texttt{bar}
709
710 \subsubsection*{Available values}
711 \begin{itemize}
712 \item \textbf{bar}: colored sidebar on the left (default);
713 \item \textbf{frame}: full border with a drop shadow;
714 \item \textbf{macos}: macOS-style window chrome with three colored dots;
715 \item \textbf{box}: box with a colored top bar.
716 \end{itemize}
717
718 \begin{code}{latex}
719 \usetheme[codestyle=macos]{Celestia}
720 \end{code}
721
722 \subsection{Code framing}
723
724 \subsubsection{The \texttt{codebox} and \texttt{nocodeframe} options}
725
726 Controls the \texttt{tcolorbox} wrapping around code blocks.
727
728 \textbf{Default:} \texttt{codebox=true} (wrapping enabled)
729
730 \begin{itemize}
731 \item \textbf{codebox}: enables the code wrapper (on by default; use \texttt{codebox=false} to disable);
732 \item \textbf{nocodeframe}: keeps the \texttt{tcolorbox} wrapper but removes the visible border.
733 \end{itemize}
734
735 \begin{code}{latex}
736 \usetheme[codebox=false]{Celestia}
737 \end{code}
738
739 \subsection{Usage with \texttt{listings}}
740
741 \begin{code}{latex}
742 \begin{lstlisting}[style=python]
743 def fibonacci(n):
744 if n <= 1:
745 return n
746 return fibonacci(n-1) + fibonacci(n-2)
747 \end{lstlisting}
748 \end{code}
749
750 A \texttt{python} style is provided out of the box with keyword and built-in function highlighting.
751
752 \section{Text formatting}
753
754 \subsection{Special commands}
755
756 \begin{itemize}
757 \item \verb|\texttt{text}|: monospaced font at a reduced size;
758 \item \verb|\alert{text}|: text in the alert color;
759 \item \verb|\mathterm{x}|: formats a mathematical term (bold, block color);
760 \item \verb|\mathdef{x}|: formats a mathematical definition (italic, example color).
761 \end{itemize}
762
763 \subsection{The \texttt{boldurl} option}
764
765 Renders URLs in bold within hyperlinks.
766
767 \begin{code}{latex}
768 \usetheme[boldurl]{Celestia}
769 \end{code}
770
771 \section{Math environments}
772
773 The theme defines theorem-like environments with a streamlined syntax built on \texttt{tcolorbox}. Each environment accepts key-value options in brackets: \texttt{title} for a subtitle and \texttt{label} for cross-referencing.
774
775 \subsection{Block-type environments}
776
777 \begin{itemize}
778 \item \texttt{theorem}: theorem;
779 \item \texttt{lemma}: lemma;
780 \item \texttt{proposition}: proposition;
781 \item \texttt{corollary}: corollary;
782 \item \texttt{property} / \texttt{properties}: property / properties.
783 \end{itemize}
784
785 \subsection{Example-type environments}
786
787 \begin{itemize}
788 \item \texttt{definition} / \texttt{definitions}: definition / definitions;
789 \item \texttt{example} / \texttt{examples}: example / examples.
790 \end{itemize}
791
792 \subsection{Alert-type environments}
793
794 \begin{itemize}
795 \item \texttt{remark} / \texttt{remarks}: remark / remarks;
796 \item \texttt{method}: method;
797 \item \texttt{activity} / \texttt{activities}: activity / activities;
798 \item \texttt{application} / \texttt{applications}: application / applications.
799 \end{itemize}
800
801 \subsection{Syntax}
802
803 \begin{code}{latex}
804 \begin{theorem}[title=Pythagorean theorem, label=th:pyth]
805 In a right triangle, $a^2 + b^2 = c^2$.
806 \end{theorem}
807 \end{code}
808
809 This key-value syntax applies to all \texttt{tcolorbox}-based block styles (the default). When using \texttt{block=native}, \texttt{block=native-shadow} or \texttt{block=native-default}, the environments use the standard Beamer syntax instead:
810
811 \begin{code}{latex}
812 \begin{theorem}{Pythagorean theorem}
813 In a right triangle, $a^2 + b^2 = c^2$.
814 \end{theorem}
815 \end{code}
816
817 \textbf{Warning:} mixing up the two syntaxes will cause a compilation error. Use \texttt{[title=...]} with tcolorbox blocks and \texttt{\{Title\}} with native blocks.
818
819 Each environment also has a starred (unnumbered) variant:
820
821 \begin{code}{latex}
822 \begin{definition*}[title=Prime number]
823 A prime number is a natural number that has exactly
824 two distinct divisors.
825 \end{definition*}
826 \end{code}
827
828 Additional \texttt{tcolorbox} options can be passed directly:
829
830 \begin{code}{latex}
831 \begin{remark}[title=Important, colback=red!5]
832 Content with local customization.
833 \end{remark}
834 \end{code}
835
836 \subsection{Overlay specifications}
837
838 Each environment accepts a Beamer overlay specification between angle brackets, placed immediately after the name:
839
840 \begin{code}{latex}
841 \begin{definition}<2->[title=Natural numbers]
842 The set $\mathbb{N}$ appears from the second overlay.
843 \end{definition}
844 \end{code}
845
846 The environment counter is frozen across overlays of the same frame, whether you use the \verb|<...>| syntax or the \verb|\pause| command. Numbering therefore remains stable from one overlay to the next.
847
848 \section{The \texttt{quiz} environment}
849
850 The \texttt{quiz} environment creates multiple-choice questions with the correct answer revealed on the second overlay.
851
852 \begin{code}{latex}
853 \begin{quiz}
854 \item Answer A
855 \item Answer B
856 \correct{Answer C (correct answer)}
857 \item Answer D
858 \end{quiz}
859 \end{code}
860
861 The \verb|\correct{...}| command marks the correct answer, which is highlighted in the alert color on \texttt{<2>}.
862
863 \section{Bibliography}
864
865 The theme provides automatic support for \texttt{biblatex} and \texttt{natbib}. Bibliography entry colors are configured to match the active palette.
866
867 \begin{code}{latex}
868 \usepackage[backend=biber]{biblatex}
869 \addbibresource{references.bib}
870
871 \begin{frame}{References}
872 \printbibliography
873 \end{frame}
874 \end{code}
875
876 \section{Options reference}
877
878 \subsection{Boolean options}
879
880 \begin{tabular}{lll}
881 \textbf{Option} & \textbf{Default} & \textbf{Description} \\
882 \hline
883 \texttt{allserif} & \texttt{false} & Use serif font throughout \\
884 \texttt{semibold} & \texttt{true} & Use semibold (weight 600) as the bold series \\
885 \texttt{light} & \texttt{true} & Use light font weights for body text \\
886 \texttt{unicolor} & \texttt{false} & Monochromatic mode \\
887 \texttt{standout} & \texttt{false} & Enable standout frames \\
888 \texttt{compacttoc} & \texttt{false} & Compact table of contents \\
889 \texttt{twocoltoc} & \texttt{false} & Two-column table of contents \\
890 \texttt{codebox} & \texttt{true} & Wrap code blocks in tcolorbox \\
891 \texttt{nocodeframe} & \texttt{false} & Keep tcolorbox wrapper, hide border \\
892 \texttt{shownavigation} & \texttt{false} & Show Beamer navigation symbols \\
893 \texttt{boldurl} & \texttt{false} & Render URLs in bold \\
894 \texttt{sectionpage} & \texttt{true} & Automatic section divider slides \\
895 \texttt{sectionnumber} & \texttt{false} & Section number in a decorative circle \\
896 \texttt{progressbar} & \texttt{false} & Footer progress bar \\
897 \end{tabular}
898
899 \subsection{Key-value options}
900
901 \begin{tabular}{lll}
902 \textbf{Option} & \textbf{Default} & \textbf{Description} \\
903 \hline
904 \texttt{language} & \texttt{english} & Document language \\
905 \texttt{palette} & \texttt{nordic} & Color palette \\
906 \texttt{style} & --- & Preset style \\
907 \texttt{block} & \texttt{sober} & Block style \\
908 \texttt{frametitle} & \texttt{subtle} & Frame title style \\
909 \texttt{footerstyle} & \texttt{info} & Footer style \\
910 \texttt{codestyle} & \texttt{bar} & Code block style \\
911 \texttt{codehandler} & \texttt{listings} & Syntax highlighting backend \\
912 \texttt{titlealign} & \texttt{left} & Title page alignment \\
913 \texttt{emphasis} & \texttt{main} & Emphasis color \\
914 \texttt{decoration} & (follows emphasis) & Decoration color \\
915 \texttt{margin} & \texttt{2em} & Slide margins \\
916 \texttt{serifface} & \texttt{literata} & Serif font \\
917 \texttt{sansface} & \texttt{inter} & Sans-serif font \\
918 \texttt{monoface} & \texttt{plex-mono} & Monospaced font \\
919 \texttt{seriffaceoptions} & (empty) & Serif font options \\
920 \texttt{sansfaceoptions} & (empty) & Sans-serif font options \\
921 \texttt{monofaceoptions} & (empty) & Monospaced font options \\
922 \texttt{mathface} & \texttt{iwona} & Math font \\
923 \texttt{mathfaceoptions} & (empty) & Math font options \\
924 \texttt{custompalette} & (empty) & Custom palette (6 hex colors) \\
925 \texttt{titlebackground} & (empty) & Title page background image \\
926 \texttt{shadedblockopacity} & \texttt{0.30} & Opacity for the shaded style \\
927 \texttt{soberblockopacity} & \texttt{0.18} & Opacity for the sober style \\
928 \texttt{softblockopacity} & \texttt{0.18} & Opacity for the soft style \\
929 \texttt{barblockopacity} & \texttt{0.05} & Opacity for the bar style \\
930 \texttt{codebackgroundcolor} & (empty) & Code background color \\
931 \texttt{headstyle} & \texttt{sffamily} & Heading font family \\
932 \texttt{headshape} & \texttt{normal} & Heading font shape \\
933 \texttt{headweight} & \texttt{bfseries} & Heading font weight \\
934 \texttt{blocktitleweight} & \texttt{bfseries} & Block title font weight \\
935 \texttt{titlesize} & \texttt{LargeLARGE} & Main title size \\
936 \texttt{frametitlesize} & \texttt{normalsize} & Frame title size \\
937 \texttt{sectiontitlesize} & \texttt{LARGE} & Section title size \\
938 \texttt{subtitlesize} & \texttt{Large} & Subtitle size \\
939 \texttt{footertextsize} & \texttt{tiny} & Footer text size \\
940 \end{tabular}
941
942 \section{Available color names}
943
944 The theme exposes the following color names for use anywhere in the document:
945
946 \begin{itemize}
947 \item \texttt{main}: primary color;
948 \item \texttt{accent}: accent color;
949 \item \texttt{background}: background color;
950 \item \texttt{emphasis}: emphasis color (depends on the \texttt{emphasis} option);
951 \item \texttt{decoration}: decoration color (depends on the \texttt{decoration} option);
952 \item \texttt{blockcolor}: standard block color;
953 \item \texttt{examplecolor}: example block color;
954 \item \texttt{alertcolor}: alert block color;
955 \item \texttt{codebackground}: code background color.
956 \end{itemize}
957
958 \begin{code}{latex}
959 \textcolor{accent}{Text in the accent color}
960 \colorlet{myCustom}{blockcolor!50!background}
961 \end{code}
962
963 \end{document}