replacing `\begin{frame}{...}` with the more robust and flexible syntax `\begin{frame}\frametitle{...}` (#36)

This commit is contained in:
samcarter 2025-02-10 14:10:17 +01:00 committed by GitHub
parent 055ca31098
commit 579e785b20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 38 additions and 19 deletions

View File

@ -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
@ -45,7 +47,8 @@
\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}
@ -53,7 +56,8 @@
\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)
@ -69,7 +73,8 @@
{
\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}
@ -80,7 +85,8 @@
{
\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}
@ -103,7 +109,8 @@
{
\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}
@ -114,7 +121,8 @@
\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}
@ -125,7 +133,8 @@
\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}
@ -140,7 +149,8 @@
\end{itemize}
\end{frame}
\begin{frame}{Lists}
\begin{frame}
\frametitle{Lists}
\begin{columns}[T,onlytextwidth]
\column{0.3\textwidth}
Items
@ -161,14 +171,16 @@
\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}
@ -195,7 +207,8 @@
\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)}
@ -211,7 +224,8 @@
\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).
@ -250,13 +264,15 @@
\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}
@ -264,19 +280,22 @@
{%
\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}