Skip to content

Commit

Permalink
replacing \begin{frame}{...} with the more robust and flexible synt…
Browse files Browse the repository at this point in the history
…ax `\begin{frame}\frametitle{...}` (#36)
  • Loading branch information
samcarter authored Feb 10, 2025
1 parent 055ca31 commit 579e785
Showing 1 changed file with 38 additions and 19 deletions.
57 changes: 38 additions & 19 deletions examples/demo/demo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@

\maketitle

\begin{frame}{Table of Contents}
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[hideallsubsections]
\end{frame}

\section{Introduction}

\begin{frame}[fragile]{Moloch}
\begin{frame}[fragile]
\frametitle{Moloch}

The \themename theme is a Beamer theme with minimal visual noise. It is a fork of the
\href{https://github.com/matze/mtheme}{metropolis theme} by Matthias Vogelgesang, which in
Expand All @@ -45,15 +47,17 @@ \section{Introduction}
\begin{verbatim}\documentclass{beamer}
\usetheme{moloch}\end{verbatim}
\end{frame}
\begin{frame}[fragile]{Sections}
\begin{frame}[fragile]
\frametitle{Sections}
Sections group slides of the same topic by introducing a section page between them. A progress bar is shown which indicates how far along in the presentation you are.

\begin{verbatim}\section{Title Formats}\end{verbatim}
\end{frame}

\section{Title Formats}

\begin{frame}[fragile]{Moloch Title Formats}
\begin{frame}[fragile]
\frametitle{Moloch Title Formats}
\themename supports four different title formats:
\begin{itemize}
\item \texttt{regular} (Regular)
Expand All @@ -69,7 +73,8 @@ \section{Title Formats}

{
\molochset{titleformat frame=smallcaps}
\begin{frame}{Small Caps}
\begin{frame}
\frametitle{Small Caps}
This frame uses the \texttt{smallcaps} title format.

\begin{alertblock}{Potential Problems}
Expand All @@ -80,7 +85,8 @@ \section{Title Formats}

{
\molochset{titleformat frame=allsmallcaps}
\begin{frame}{All Small Caps}
\begin{frame}
\frametitle{All Small Caps}
This frame uses the \texttt{allsmallcaps} title format.

\begin{alertblock}{Potential Problems}
Expand All @@ -103,7 +109,8 @@ \section{Title Formats}

{
\molochset{titleformat frame=allcaps}
\begin{frame}{All Caps}
\begin{frame}
\frametitle{All Caps}
This frame uses the \texttt{allcaps} title format.

\begin{alertblock}{Potential Problems}
Expand All @@ -114,7 +121,8 @@ \section{Title Formats}

\section{Elements}

\begin{frame}[fragile]{Typography}
\begin{frame}[fragile]
\frametitle{Typography}
\begin{verbatim}The theme provides sensible defaults to
\emph{emphasize} text, \alert{accent} parts or show
\textbf{bold} results.\end{verbatim}
Expand All @@ -125,7 +133,8 @@ \section{Elements}
\alert{accent} parts or show \textbf{bold} results.
\end{frame}

\begin{frame}{Font Features Test}
\begin{frame}
\frametitle{Font Features Test}
\begin{itemize}
\item Regular
\item \textit{Italic}
Expand All @@ -140,7 +149,8 @@ \section{Elements}
\end{itemize}
\end{frame}

\begin{frame}{Lists}
\begin{frame}
\frametitle{Lists}
\begin{columns}[T,onlytextwidth]
\column{0.3\textwidth}
Items
Expand All @@ -161,14 +171,16 @@ \section{Elements}
\end{description}
\end{columns}
\end{frame}
\begin{frame}{Animation}
\begin{frame}
\frametitle{Animation}
\begin{itemize}[<+- | alert@+>]
\item \alert<4>{This is\only<4>{ really} important}
\item Now this
\item And now this
\end{itemize}
\end{frame}
\begin{frame}{Figures}
\begin{frame}
\frametitle{Figures}
\begin{figure}
\newcounter{density}
\setcounter{density}{20}
Expand All @@ -195,7 +207,8 @@ \section{Elements}
\end{figure}
\end{frame}

\begin{frame}{Tables}
\begin{frame}
\frametitle{Tables}
\framesubtitle{Largest cities in the world}
\begin{table}
\caption{Largest cities in the world (source: Wikipedia)}
Expand All @@ -211,7 +224,8 @@ \section{Elements}
\end{tabular}
\end{table}
\end{frame}
\begin{frame}[fragile]{Blocks}
\begin{frame}[fragile]
\frametitle{Blocks}
Three different block environments are pre-defined: \verb|block|, \verb|alertblock|,
and \verb|exampleblock|. They can be styled using the option
\verb|block|, which takes values \verb|transparent| (default, left column) and \verb|fill| (right column).
Expand Down Expand Up @@ -250,33 +264,38 @@ \section{Elements}
\end{columns}
\end{frame}

\begin{frame}{Math}
\begin{frame}
\frametitle{Math}
\begin{equation*}
e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
\end{equation*}
\end{frame}

\begin{frame}{Quotes}
\begin{frame}
\frametitle{Quotes}
\begin{quote}
Verily, I say unto you, the days spoken of in the Apocalypse are nigh!
\end{quote}
\end{frame}

{%
\setbeamertemplate{frame footer}{My custom footer}
\begin{frame}[fragile]{Frame Footer}
\begin{frame}[fragile]
\frametitle{Frame Footer}
\themename defines a custom beamer template to add a text to the footer. It can be set via
\begin{verbatim}\setbeamertemplate{frame footer}{My custom footer}\end{verbatim}
\end{frame}
}

\begin{frame}[fragile]{References}
\begin{frame}[fragile]
\frametitle{References}
Here are some references~\cite{Knuth92,ConcreteMath,Simpson,Er01,greenwade93} to showcase \verb+[allowframebreaks]+.
\end{frame}

\section{Conclusion}

\begin{frame}{Summary}
\begin{frame}
\frametitle{Summary}

Get the source of this theme and the demo presentation from
\begin{center}
Expand Down

0 comments on commit 579e785

Please sign in to comment.