\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://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 7 carefully crafted color palettes
        \item 10 frame title styles
        \item 11 footer styles
        \item 12 block styles
        \item 5 code styles and 6 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 7 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} (inter)
                \end{itemize}
            \end{exampleblock}
        \end{column}
    \end{columns}
\end{frame}

\begin{frame}{Tables}
    The seven palettes of the theme:

    \medskip

    \centering
    \begin{tabular}{llc}
        \hline
        \tablehead{Palette} & \tablehead{Character} & \tablehead{Background} \\
        \hline
        nordic & icy blues (default) & \texttt{\#F5F8F8} \\
        palatial & midnight blue and gold & \texttt{\#F8FAFC} \\
        petrol & petrol green and brass & \texttt{\#F9FBF9} \\
        terracotta & terracotta & \texttt{\#FFF9F5} \\
        velvet & plum and gold & \texttt{\#FBF9F8} \\
        midnight & deep indigo, dark background & \texttt{\#161828} \\
        dusk & dark teal, dark background & \texttt{\#131C20} \\
        \hline
    \end{tabular}

    \bigskip

    The last two suit dimly lit rooms.
\end{frame}

\begin{frame}{Key figures and source}
    \begin{columns}[T]
        \begin{column}{0.3\textwidth}
            \keyfigure{7}{color palettes}
        \end{column}
        \begin{column}{0.3\textwidth}
            \keyfigure{6}{preset styles}
        \end{column}
        \begin{column}{0.3\textwidth}
            \keyfigure{3}{compilation engines}
        \end{column}
    \end{columns}

    \vspace{2em}

    The \texttt{\textbackslash keyfigure} command sets a number in a large size, followed by its label. The \texttt{\textbackslash source} command writes a source line above the footer.

    \source{Source: Celestia documentation.}
\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 6 preset styles}
    \framesubtitle{Coherent combinations of palette, frametitle, footer and blocks}

    \centering
    \begin{tabular}{lllll}
        \hline
        \tablehead{Style} & \tablehead{Palette} & \tablehead{Title} & \tablehead{Footer} & \tablehead{Blocks} \\
        \hline
        celestia & nordic & ruled & info & ribbon \\
        modern & nordic & subtle & info & sober \\
        signature & petrol & cosmic & cosmic & fullbar \\
        executive & palatial & leftbar & fullbar & fullbar \\
        sober & terracotta & gradient & info & sober \\
        stage & midnight & ruled & minimalist & ribbon \\
        \hline
    \end{tabular}

    \bigskip

    Every setting of a style can still be changed: \texttt{style=modern, palette=petrol}.
\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}[quote]
    Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.\\[0.6em]
    {\small Antoine de Saint-Exupéry}
\end{frame}

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

    \vspace{1em}
    \large celestia v2.0.0
\end{frame}

\end{document}
