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 \maketitle
\begin{frame}{Table of Contents} \begin{frame}
\frametitle{Table of Contents}
\tableofcontents[hideallsubsections] \tableofcontents[hideallsubsections]
\end{frame} \end{frame}
\section{Introduction} \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 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 \href{https://github.com/matze/mtheme}{metropolis theme} by Matthias Vogelgesang, which in
@ -45,7 +47,8 @@
\begin{verbatim}\documentclass{beamer} \begin{verbatim}\documentclass{beamer}
\usetheme{moloch}\end{verbatim} \usetheme{moloch}\end{verbatim}
\end{frame} \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. 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} \begin{verbatim}\section{Title Formats}\end{verbatim}
@ -53,7 +56,8 @@
\section{Title Formats} \section{Title Formats}
\begin{frame}[fragile]{Moloch Title Formats} \begin{frame}[fragile]
\frametitle{Moloch Title Formats}
\themename supports four different title formats: \themename supports four different title formats:
\begin{itemize} \begin{itemize}
\item \texttt{regular} (Regular) \item \texttt{regular} (Regular)
@ -69,7 +73,8 @@
{ {
\molochset{titleformat frame=smallcaps} \molochset{titleformat frame=smallcaps}
\begin{frame}{Small Caps} \begin{frame}
\frametitle{Small Caps}
This frame uses the \texttt{smallcaps} title format. This frame uses the \texttt{smallcaps} title format.
\begin{alertblock}{Potential Problems} \begin{alertblock}{Potential Problems}
@ -80,7 +85,8 @@
{ {
\molochset{titleformat frame=allsmallcaps} \molochset{titleformat frame=allsmallcaps}
\begin{frame}{All Small Caps} \begin{frame}
\frametitle{All Small Caps}
This frame uses the \texttt{allsmallcaps} title format. This frame uses the \texttt{allsmallcaps} title format.
\begin{alertblock}{Potential Problems} \begin{alertblock}{Potential Problems}
@ -103,7 +109,8 @@
{ {
\molochset{titleformat frame=allcaps} \molochset{titleformat frame=allcaps}
\begin{frame}{All Caps} \begin{frame}
\frametitle{All Caps}
This frame uses the \texttt{allcaps} title format. This frame uses the \texttt{allcaps} title format.
\begin{alertblock}{Potential Problems} \begin{alertblock}{Potential Problems}
@ -114,7 +121,8 @@
\section{Elements} \section{Elements}
\begin{frame}[fragile]{Typography} \begin{frame}[fragile]
\frametitle{Typography}
\begin{verbatim}The theme provides sensible defaults to \begin{verbatim}The theme provides sensible defaults to
\emph{emphasize} text, \alert{accent} parts or show \emph{emphasize} text, \alert{accent} parts or show
\textbf{bold} results.\end{verbatim} \textbf{bold} results.\end{verbatim}
@ -125,7 +133,8 @@
\alert{accent} parts or show \textbf{bold} results. \alert{accent} parts or show \textbf{bold} results.
\end{frame} \end{frame}
\begin{frame}{Font Features Test} \begin{frame}
\frametitle{Font Features Test}
\begin{itemize} \begin{itemize}
\item Regular \item Regular
\item \textit{Italic} \item \textit{Italic}
@ -140,7 +149,8 @@
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame}{Lists} \begin{frame}
\frametitle{Lists}
\begin{columns}[T,onlytextwidth] \begin{columns}[T,onlytextwidth]
\column{0.3\textwidth} \column{0.3\textwidth}
Items Items
@ -161,14 +171,16 @@
\end{description} \end{description}
\end{columns} \end{columns}
\end{frame} \end{frame}
\begin{frame}{Animation} \begin{frame}
\frametitle{Animation}
\begin{itemize}[<+- | alert@+>] \begin{itemize}[<+- | alert@+>]
\item \alert<4>{This is\only<4>{ really} important} \item \alert<4>{This is\only<4>{ really} important}
\item Now this \item Now this
\item And now this \item And now this
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame}{Figures} \begin{frame}
\frametitle{Figures}
\begin{figure} \begin{figure}
\newcounter{density} \newcounter{density}
\setcounter{density}{20} \setcounter{density}{20}
@ -195,7 +207,8 @@
\end{figure} \end{figure}
\end{frame} \end{frame}
\begin{frame}{Tables} \begin{frame}
\frametitle{Tables}
\framesubtitle{Largest cities in the world} \framesubtitle{Largest cities in the world}
\begin{table} \begin{table}
\caption{Largest cities in the world (source: Wikipedia)} \caption{Largest cities in the world (source: Wikipedia)}
@ -211,7 +224,8 @@
\end{tabular} \end{tabular}
\end{table} \end{table}
\end{frame} \end{frame}
\begin{frame}[fragile]{Blocks} \begin{frame}[fragile]
\frametitle{Blocks}
Three different block environments are pre-defined: \verb|block|, \verb|alertblock|, Three different block environments are pre-defined: \verb|block|, \verb|alertblock|,
and \verb|exampleblock|. They can be styled using the option 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). \verb|block|, which takes values \verb|transparent| (default, left column) and \verb|fill| (right column).
@ -250,13 +264,15 @@
\end{columns} \end{columns}
\end{frame} \end{frame}
\begin{frame}{Math} \begin{frame}
\frametitle{Math}
\begin{equation*} \begin{equation*}
e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
\end{equation*} \end{equation*}
\end{frame} \end{frame}
\begin{frame}{Quotes} \begin{frame}
\frametitle{Quotes}
\begin{quote} \begin{quote}
Verily, I say unto you, the days spoken of in the Apocalypse are nigh! Verily, I say unto you, the days spoken of in the Apocalypse are nigh!
\end{quote} \end{quote}
@ -264,19 +280,22 @@
{% {%
\setbeamertemplate{frame footer}{My custom footer} \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 \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} \begin{verbatim}\setbeamertemplate{frame footer}{My custom footer}\end{verbatim}
\end{frame} \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]+. Here are some references~\cite{Knuth92,ConcreteMath,Simpson,Er01,greenwade93} to showcase \verb+[allowframebreaks]+.
\end{frame} \end{frame}
\section{Conclusion} \section{Conclusion}
\begin{frame}{Summary} \begin{frame}
\frametitle{Summary}
Get the source of this theme and the demo presentation from Get the source of this theme and the demo presentation from
\begin{center} \begin{center}