\documentclass[aspectratio=169]{beamer}

\usetheme{Celestia}

\subject{\LaTeX{} Presentation}
\title[The Celestia Beamer Theme]{A Tour of the Celestia Beamer Theme}
\subtitle{Showcasing the main features}
\author{Razik Ikhlef}
\institute{https://apps.edulatex.xyz}
\date{\today}

\begin{document}

\maketitle

\begin{frame}{Outline}
    \tableofcontents
\end{frame}

\section{Getting started}

\begin{frame}{A simple slide}
    Celestia is a modern, polished Beamer theme designed for professional and visually appealing presentations.

    \medskip

    It ships with:
    \begin{itemize}
        \item 22 carefully crafted color palettes
        \item 9 frame title styles
        \item 11 footer styles
        \item 10 block styles
        \item 4 code styles and 12 preset styles
    \end{itemize}
\end{frame}

\begin{frame}{Numbered lists and descriptions}
    \framesubtitle{Frame subtitle support}

    All three compilation engines are supported:
    \begin{enumerate}
        \item pdfLaTeX --- fast compilation, maximum compatibility
        \item LuaLaTeX --- native access to system fonts
        \item XeLaTeX --- advanced OpenType font handling
    \end{enumerate}

    \medskip

    \begin{description}
        \item[serifface] Serif font (secondary)
        \item[sansface] Sans-serif font (body text)
        \item[monoface] Monospace font for code
        \item[mathface] Font for mathematical formulas
    \end{description}
\end{frame}

\section{Blocks}

\begin{frame}{The three block types}
    \begin{block}{Standard block}
        This block uses the \texttt{blockcolor} defined by the current palette. It highlights important information.
    \end{block}

    \begin{exampleblock}{Example block}
        This block uses the \texttt{examplecolor}. It is well suited for concrete examples and illustrations.
    \end{exampleblock}

    \begin{alertblock}{Alert block}
        This block uses the \texttt{alertcolor}. It draws attention to critical points or common pitfalls.
    \end{alertblock}
\end{frame}

\section{Mathematics}

\begin{frame}{Theorem and proof}
    \begin{theorem}[title=Sum of the first integers]
        For every integer $n \geq 1$:
        \[ 1 + 2 + \cdots + n = \frac{n(n+1)}{2} \]
    \end{theorem}

    \begin{proof}
        Let $S = 1 + 2 + \cdots + n$.
        Writing the sum in reverse order:
        $S = n + (n-1) + \cdots + 1$.
        Adding term by term: $2S = n(n+1)$.
    \end{proof}
\end{frame}

\begin{frame}{Definitions and properties}
    \begin{definition}[title=Prime number]
        An integer $\mathterm{p} \geq 2$ is called \emph{prime} if its only divisors are $1$ and itself.
    \end{definition}

    \begin{property}[title=Infinitude of primes]
        There are infinitely many prime numbers.
    \end{property}

    \begin{remark}
        The number $1$ is not considered prime by convention.
    \end{remark}
\end{frame}

\begin{frame}{Lemma, corollary and proposition}
    \begin{lemma}[title=Euclidean division]
        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$.
    \end{lemma}

    \begin{corollary}
        Every integer is either even or odd.
    \end{corollary}

    \begin{proposition}
        If $p$ is prime and $p \mid ab$, then $p \mid a$ or $p \mid b$.
    \end{proposition}
\end{frame}

\begin{frame}{Method, activity and application}
    \begin{method}[title=Factorization]
        To factor $n$, test divisibility by $2, 3, 5, 7, \ldots$ up to $\sqrt{n}$.
    \end{method}

    \begin{activity}
        Find the prime factorization of $360$.
    \end{activity}

    \begin{application}
        Simplify the fraction $\dfrac{360}{84}$ using prime factorization.
    \end{application}
\end{frame}

\section{Interactive quiz}

\begin{frame}{Multiple choice question}
    \framesubtitle{The \texttt{quiz} environment with \texttt{\textbackslash correct}}

    What is the value of $\displaystyle\int_0^1 2x\,dx$?

    \bigskip

    \begin{quiz}
        \item $0$
        \correct{$1$}
        \item $2$
        \item $\dfrac{1}{2}$
    \end{quiz}

    \bigskip

    \only<2>{\alert{The correct answer is highlighted on click.}}
\end{frame}

\section{Source code}

\begin{frame}[fragile]{Syntax highlighting}
    A ready-to-use \texttt{python} style is included for keyword coloring:

    \begin{lstlisting}[style=python]
def fibonacci(n):
    if n <= 1:
        return n
    return fibonacci(n-1) + fibonacci(n-2)

for i in range(10):
    print(fibonacci(i))
    \end{lstlisting}
\end{frame}

\section{Layout}

\begin{frame}{Columns and blocks}
    \begin{columns}[T]
        \begin{column}{0.48\textwidth}
            \begin{block}{Highlights}
                \begin{itemize}
                    \item Polished design
                    \item Fine-grained customization
                    \item 22 color palettes
                    \item pdfLaTeX compatible
                \end{itemize}
            \end{block}
        \end{column}

        \begin{column}{0.48\textwidth}
            \begin{exampleblock}{Font options}
                Customizable fonts:
                \begin{itemize}
                    \item \texttt{serifface} (literata)
                    \item \texttt{sansface} (inter)
                    \item \texttt{monoface} (plex-mono)
                    \item \texttt{mathface} (iwona)
                \end{itemize}
            \end{exampleblock}
        \end{column}
    \end{columns}
\end{frame}

\begin{frame}{Tables}
    An overview of the dark palettes:

    \bigskip

    \centering
    \begin{tabular}{llc}
        \hline
        \textbf{Palette} & \textbf{Background} & \textbf{Hex code} \\
        \hline
        obsidian & dark anthracite & \texttt{\#22242E} \\
        midnight & deep night blue & \texttt{\#161828} \\
        dusk & dark blue-green & \texttt{\#131C20} \\
        velours & dark purple & \texttt{\#1C1420} \\
        \hline
    \end{tabular}

    \bigskip

    These palettes are ideal for dimly lit rooms.
\end{frame}

\begin{frame}{Formatting commands}
    Celestia provides a set of dedicated commands:

    \medskip

    \begin{itemize}
        \item \alert{Alert text} with \texttt{\textbackslash alert\{...\}}
        \item $\mathterm{x}$ is a math term (\texttt{\textbackslash mathterm})
        \item $\mathdef{f}$ is a math definition (\texttt{\textbackslash mathdef})
        \item \texttt{Inline code} with \texttt{\textbackslash texttt\{...\}}
    \end{itemize}

    \bigskip

    Formulas blend in seamlessly:
    \[
        e^{i\pi} + 1 = 0
    \]
\end{frame}

\section{Preset styles}

\begin{frame}{The 12 preset styles}
    \framesubtitle{Coherent combinations of palette, frametitle, footer and blocks}

    \centering
    \begin{tabular}{llll}
        \hline
        \textbf{Style} & \textbf{Palette} & \textbf{Frametitle} & \textbf{Footer} \\
        \hline
        minimal & sapphire & plain & minimalist \\
        signature & petrol & cosmic & cosmic \\
        studio & oxford & elegant & info \\
        academic & horizon & elegant & classic \\
        modern & nordic & subtle & info \\
        design & imperial & clean & badge \\
        executive & palatial & leftbar & fullbar \\
        sober & terracotta & gradient & info \\
        simple & steel & plain & minimalist \\
        editorial & manuscript & line & ruled \\
        lumiere & lumiere & plainrule & framed \\
        chalk & chalk & subtle & boxedruled \\
        \hline
    \end{tabular}
\end{frame}

\begin{frame}{Text and quotations}
    The body text uses a sans-serif typeface optimised for projection. Contrast ratios are calibrated to ensure readability, even in large lecture halls.

    \vspace{1em}

    \begin{quote}
        \emph{Simplicity is the ultimate sophistication.}

        \hfill\textcolor{emphasis}{--- Leonardo da Vinci}
    \end{quote}

    \begin{quote}
        \emph{The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise.}

        \hfill\textcolor{emphasis}{--- Edsger W. Dijkstra}
    \end{quote}
\end{frame}

\begin{frame}[standout]
    Thank you for your attention!

    \vspace{1em}
    \large celestia v1.2.2
\end{frame}

\end{document}
