docs: update demo slides

This commit is contained in:
Johan Larsson 2024-01-15 10:26:21 +01:00
parent c77abe9da4
commit e9f0046a67
1 changed files with 62 additions and 56 deletions

View File

@ -1,26 +1,32 @@
\documentclass[10pt]{beamer} \documentclass[10pt]{beamer}
\usetheme{moloch} \usetheme{moloch}
\usefonttheme{professionalfonts}
\usepackage[T1]{fontenc}
\usepackage{appendixnumberbeamer} \usepackage{appendixnumberbeamer}
\usepackage{booktabs} \usepackage{booktabs}
\usepackage[scale=2]{ccicons} \usepackage[scale=2]{ccicons}
\usepackage[medium,light]{FiraSans}
\usepackage[medium]{FiraMono}
\usepackage{xspace} \usepackage{xspace}
\newcommand{\themename}{\textbf{\textsc{moloch}}\xspace}
\newcommand{\themename}{\textbf{moloch}\xspace}
\title{Moloch} \title{Moloch}
\subtitle{A modern beamer theme} \subtitle{A Minimal Beamer Theme}
\date{\today} \date{\today}
\author{Matthias Vogelgesang} \author{Johan Larsson}
\institute{Center for modern beamer themes} \institute{The Department of Statistics, Lund University}
\begin{document} \begin{document}
\maketitle \maketitle
\begin{frame}{Table of contents} \begin{frame}{Table of Contents}
\setbeamertemplate{section in toc}[sections numbered] \setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections] \tableofcontents[hideallsubsections]
\end{frame} \end{frame}
@ -29,41 +35,38 @@
\begin{frame}[fragile]{Moloch} \begin{frame}[fragile]{Moloch}
The \themename theme is a Beamer theme with minimal visual noise The \themename theme is a Beamer theme with minimal visual noise. It is a fork of the
inspired by the \href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{\textsc{hsrm} Beamer \href{https://github.com/matze/mtheme}{metropolis theme} by Matthias Vogelgesang, which in turn was inspired by
Theme} by Benjamin Weiss. by the \href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{hsrm theme} by Benjamin Weiss.
Enable the theme by loading Enable the theme by calling
\begin{verbatim}\documentclass{beamer}
\begin{verbatim} \usetheme{moloch}\end{verbatim}
\documentclass{beamer}
\usetheme{moloch}
\end{verbatim}
\end{frame} \end{frame}
\begin{frame}[fragile]{Sections} \begin{frame}[fragile]{Sections}
Sections group slides of the same topic 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{Elements}\end{verbatim} \begin{verbatim}\section{Title Formats}\end{verbatim}
for which \themename provides a nice progress indicator \ldots
\end{frame} \end{frame}
\section{Title formats} \section{Title Formats}
\begin{frame}{Moloch title formats} \begin{frame}[fragile]{Moloch Title Formats}
\themename supports 4 different title formats: \themename supports four different title formats:
\begin{itemize} \begin{itemize}
\item Regular \item Regular
\item \textsc{Small caps} \item \textsc{Small Caps}
\item \textsc{all small caps} \item \textsc{All Small Caps}
\item ALL CAPS \item ALL CAPS
\end{itemize} \end{itemize}
They can either be set at once for every title type or individually.
They can either be set globally for every frame or used locally just for the current frame and onwards by using
\begin{verbatim}\molochset{titleformat frame=<option>}\end{verbatim}
\end{frame} \end{frame}
{ {
\molochset{titleformat frame=smallcaps} \molochset{titleformat frame=smallcaps}
\begin{frame}{Small caps} \begin{frame}{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}
@ -74,12 +77,14 @@
{ {
\molochset{titleformat frame=allsmallcaps} \molochset{titleformat frame=allsmallcaps}
\begin{frame}{All small caps} \begin{frame}{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}
As this title format also uses small caps you face the same problems as with the \texttt{smallcaps} title format. Additionally this format can cause some other problems. Please refer to the documentation if you consider using it. As this title format also uses small caps you face the same problems as with the \texttt{smallcaps} title format. Additionally this format can cause some other problems. Please refer to the documentation if you consider using it.
\medskip
As a rule of thumb: just use it for plaintext-only titles. As a rule of thumb: just use it for plaintext-only titles.
\end{alertblock} \end{alertblock}
\end{frame} \end{frame}
@ -87,7 +92,7 @@
{ {
\molochset{titleformat frame=allcaps} \molochset{titleformat frame=allcaps}
\begin{frame}{All caps} \begin{frame}{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}
@ -100,33 +105,33 @@
\begin{frame}[fragile]{Typography} \begin{frame}[fragile]{Typography}
\begin{verbatim}The theme provides sensible defaults to \begin{verbatim}The theme provides sensible defaults to
\emph{emphasize} text, \alert{accent} parts \emph{emphasize} text, \alert{accent} parts or show
or show \textbf{bold} results.\end{verbatim} \textbf{bold} results.\end{verbatim}
\begin{center}
\begin{center}becomes\end{center} becomes
\end{center}
The theme provides sensible defaults to \emph{emphasize} text, The theme provides sensible defaults to \emph{emphasize} text,
\alert{accent} parts or show \textbf{bold} results. \alert{accent} parts or show \textbf{bold} results.
\end{frame} \end{frame}
\begin{frame}{Font feature test} \begin{frame}{Font Features Test}
\begin{itemize} \begin{itemize}
\item Regular \item Regular
\item \textit{Italic} \item \textit{Italic}
\item \textsc{Small Caps}
\item \textbf{Bold} \item \textbf{Bold}
\item \textbf{\textit{Bold Italic}} \item \textbf{\textit{Bold Italic}}
\item \textbf{\textsc{Bold Small Caps}}
\item \texttt{Monospace} \item \texttt{Monospace}
\item \texttt{\textit{Monospace Italic}} \item \texttt{\textit{Monospace Italic}}
\item \texttt{\textbf{Monospace Bold}} \item \texttt{\textbf{Monospace Bold}}
\item \texttt{\textbf{\textit{Monospace Bold Italic}}} \item \texttt{\textbf{\textit{Monospace Bold Italic}}}
\item \textsc{Small Caps}
\item \textbf{\textsc{Bold Small Caps}}
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame}{Lists} \begin{frame}{Lists}
\begin{columns}[T,onlytextwidth] \begin{columns}[T,onlytextwidth]
\column{0.33\textwidth} \column{0.3\textwidth}
Items Items
\begin{itemize} \begin{itemize}
\item Milk \item Eggs \item Potatoes \item Milk \item Eggs \item Potatoes
@ -218,20 +223,20 @@ or show \textbf{bold} results.\end{verbatim}
\begin{frame}{Quotes} \begin{frame}{Quotes}
\begin{quote} \begin{quote}
Veni, Vidi, Vici Verily, I say unto you, the days spoken of in the Apocalypse are nigh!
\end{quote} \end{quote}
\end{frame} \end{frame}
{% {%
\setbeamertemplate{frame footer}{My custom footer} \setbeamertemplate{frame footer}{My custom footer}
\begin{frame}[fragile]{Frame footer} \begin{frame}[fragile]{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}{References} \begin{frame}[fragile]{References}
Some references to showcase [allowframebreaks] \cite{Knuth92,ConcreteMath,Simpson,Er01,greenwade93} Here are some references~\cite{Knuth92,ConcreteMath,Simpson,Er01,greenwade93} to showcase \verb+[allowframebreaks]+.
\end{frame} \end{frame}
\section{Conclusion} \section{Conclusion}
@ -239,14 +244,16 @@ or show \textbf{bold} results.\end{verbatim}
\begin{frame}{Summary} \begin{frame}{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}
\url{github.com/jolars/moloch}
\end{center}
\begin{center}\url{github.com/matze/mtheme}\end{center} The theme is licensed under the
\href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons Attribution-ShareAlike 4.0 International License}.
The theme \emph{itself} is licensed under a \begin{center}
\href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons \ccbysa
Attribution-ShareAlike 4.0 International License}. \end{center}
\begin{center}\ccbysa\end{center}
\end{frame} \end{frame}
@ -256,15 +263,14 @@ or show \textbf{bold} results.\end{verbatim}
\appendix \appendix
\begin{frame}[fragile]{Backup slides} \begin{frame}[fragile]{Backup Slides}
Sometimes, it is useful to add slides at the end of your presentation to To add slides at the end of your presentation for reference during audience questions, you just need to
refer to during audience questions. \begin{enumerate}
\item include the "appendixnumberbeamer" package in your preamble, and
\item call \verb+\appendix+ command before your backup slides.
\end{enumerate}
The best way to do this is to include the \verb|appendixnumberbeamer| By doing this, the \themename theme will automatically disable slide numbering and progress bars for the slides in the appendix.
package in your preamble and call \verb|\appendix| before your backup slides.
\themename will automatically turn off slide numbering and progress bars for
slides in the appendix.
\end{frame} \end{frame}
\begin{frame}[allowframebreaks]{References} \begin{frame}[allowframebreaks]{References}