Update slides

This commit is contained in:
Matthias Vogelgesang 2014-09-19 11:20:52 +02:00
parent 867c01d8fa
commit 23c5099d3e
2 changed files with 74 additions and 53 deletions

View File

@ -2,6 +2,7 @@ SRC = demo.tex
PDF = demo.pdf PDF = demo.pdf
AUX = demo.aux AUX = demo.aux
TEXC := xelatex TEXC := xelatex
TEXC_OPTS += -shell-escape
.PHONY: clean .PHONY: clean
@ -11,7 +12,7 @@ $(AUX):
$(TEXC) $(SRC) $(TEXC) $(SRC)
$(PDF): $(AUX) $(SRC) $(PDF): $(AUX) $(SRC)
$(TEXC) $(SRC) $(TEXC) $(TEXC_OPTS) $(SRC)
clean: clean:
@rm -f $(PDF) @rm -f $(PDF)

116
demo.tex
View File

@ -3,68 +3,93 @@
\usetheme{m} \usetheme{m}
\usepackage{booktabs} \usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{minted}
\usemintedstyle{trac}
\title{A clean, modern beamer theme} \title{A clean, modern beamer theme}
\subtitle{} \subtitle{}
\date{\today} \date{\today}
\author{Matthias Vogelgesang} \author{Matthias Vogelgesang}
\institute{Institute for foo bar} \institute{Institute or miscellaneous information}
\begin{document} \begin{document}
\maketitle \maketitle
\begin{frame}{The mtheme} \begin{frame}[fragile]
\frametitle{mtheme}
The \emph{mtheme} is a clean beamer theme based on Fira Sans. The \emph{mtheme} is a Beamer theme with minimal visual noise inspired by the
\href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{\textsc{hsrm} Beamer
Theme} by Benjamin Weiss.
Sections separate frames of the same topic. They also have a nice progress Enable the theme by loading
indicator.
\begin{minted}[fontsize=\small]{latex}
\documentclass{beamer}
\usetheme{m}
\end{minted}
Note, that you have to have Mozilla's \emph{Fira Sans} font and XeTeX
installed to enjoy this wonderful typography.
\end{frame}
\begin{frame}[fragile]
\frametitle{Sections}
Sections group slides of the same topic
\begin{minted}[fontsize=\small]{latex}
\section{Elements}
\end{minted}
for which the \emph{mtheme} provides a nice progress indicator \ldots
\end{frame} \end{frame}
\section{Elements} \section{Elements}
\begin{frame}{Typography} \begin{frame}[fragile]
This is with \emph{emphasis} on that sometimes sets \alert{accents} but never \frametitle{Typography}
comes across outright \textbf{bold}. The class style is hosted at \begin{minted}[fontsize=\small]{latex}
\url{http://github.com/matze/mtheme}. The theme provides sensible defaults to \emph{emphasis}
text, \alert{accent} parts or show \textbf{bold} results.
\end{minted}
How much space do we need? \begin{center}becomes\end{center}
The theme provides sensible defaults to \emph{emphasis} text,
\alert{accent} parts or show \textbf{bold} results.
\end{frame} \end{frame}
\begin{frame}{Lists} \begin{frame}{Lists}
\begin{columns}[onlytextwidth]
\column{0.5\textwidth}
Items
\begin{itemize} \begin{itemize}
\item Milk \item Milk \item Eggs \item Potatos
\item Eggs
\item Potatos
\end{itemize} \end{itemize}
\column{0.5\textwidth}
Enumerations
\begin{enumerate} \begin{enumerate}
\item First, \item First, \item Second and \item Last.
\item Second and
\item Last.
\end{enumerate} \end{enumerate}
\end{columns}
\end{frame}
\begin{frame}{Descriptions}
\begin{description} \begin{description}
\item[PowerPoint] Meeh. \item[PowerPoint] Meeh.
\item[Beamer] Yeeeha. \item[Beamer] Yeeeha.
\end{description} \end{description}
\end{frame} \end{frame}
\begin{frame}{Animation} \begin{frame}{Animation}
\begin{itemize}[<+- | alert@+>] \begin{itemize}[<+- | alert@+>]
\item \alert<4>{Hey} \item \alert<4>{This is\only<4>{ really} important}
\item Ho \item Now this
\item Let's go \item And now this
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame}{Figures} \begin{frame}{Figures}
Figures play a vital role to \emph{visualize} an idea. Here's one made with
TikZ:
\begin{figure} \begin{figure}
\begin{tikzpicture} \begin{tikzpicture}
\node[circle, draw=black] at (0, 0) {foo}; \node[circle, draw=black] at (0, 0) {foo};
@ -73,40 +98,33 @@
\caption{A circle and a rectangle.} \caption{A circle and a rectangle.}
\end{figure} \end{figure}
\end{frame} \end{frame}
\begin{frame}{Tables} \begin{frame}{Tables}
\begin{table} \begin{table}
\caption{A table} \caption{Largest cities in the world (source: Wikipedia)}
\begin{tabular}{lll} \begin{tabular}{lr}
\toprule \toprule
Foo & Bar & Baz\\ City & Population\\
\midrule \midrule
Foo & Bar & Baz\\ Mexico City & 20,116,842\\
Shanghai & 19,210,000\\
Peking & 15,796,450\\
Istanbul & 14,160,467\\
\bottomrule \bottomrule
\end{tabular} \end{tabular}
\end{table} \end{table}
\end{frame} \end{frame}
\begin{frame}{Blocks} \begin{frame}{Blocks}
\begin{block}{A descriptive title} \begin{block}{This is a block title}
Blocks can give your slides structure. Unfortunately, most themes put fling This is soothing.
them right at your face.
\end{block} \end{block}
Maybe we should play outside.
\end{frame} \end{frame}
\begin{frame}{Math} \begin{frame}{Math}
\begin{equation*} \begin{equation*}
I_c(x,y) = \sum_{i=-n}^n\sum_{j=-n}^n w\left( e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
\mathcal{N}_{x,y},\ \mathcal{N}_{x-i, y-j}\right)
\cdot
I_r(x-i,y-j)
\end{equation*} \end{equation*}
\end{frame} \end{frame}
\begin{frame}{Quotes} \begin{frame}{Quotes}
\begin{quote} \begin{quote}
Veni, Vidi, Vici Veni, Vidi, Vici
@ -116,15 +134,17 @@
\section{Conclusion} \section{Conclusion}
\begin{frame}{Summary} \begin{frame}{Summary}
Get it at
Get the source of this theme and the demo presentation from
\begin{center}\url{github.com/matze/mtheme}\end{center} \begin{center}\url{github.com/matze/mtheme}\end{center}
or read some non-fiction at The theme \emph{itself} is licensed under a
\href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons
Attribution-ShareAlike 4.0 International License}.
\begin{center}\url{bloerg.net}\end{center} \begin{center}\ccbysa\end{center}
Oh, it's licensed \textsc{cc-by-sa} but you don't need to slap my name on every slide.
\end{frame} \end{frame}
\statement{Questions?} \statement{Questions?}