metropolis_theme/demo.tex

170 lines
4.2 KiB
TeX
Raw Normal View History

2014-09-05 10:53:01 +02:00
\documentclass[10pt, compress]{beamer}
2014-08-28 10:57:04 +02:00
\usetheme{m}
2014-09-04 16:25:58 +02:00
\usepackage{booktabs}
2014-09-19 11:20:52 +02:00
\usepackage[scale=2]{ccicons}
\usepackage{minted}
\usemintedstyle{trac}
2014-09-04 16:25:58 +02:00
2014-09-19 22:46:29 +02:00
\title{A modern beamer theme}
2014-09-04 16:25:58 +02:00
\subtitle{}
2014-08-28 10:57:04 +02:00
\date{\today}
2014-09-04 16:25:58 +02:00
\author{Matthias Vogelgesang}
2014-09-19 11:20:52 +02:00
\institute{Institute or miscellaneous information}
2014-08-28 10:57:04 +02:00
\begin{document}
\maketitle
2014-09-19 11:20:52 +02:00
\begin{frame}[fragile]
\frametitle{mtheme}
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.
2014-08-28 10:57:04 +02:00
2014-09-19 11:20:52 +02:00
Enable the theme by loading
2014-08-28 10:57:04 +02:00
2014-09-19 11:20:52 +02:00
\begin{minted}[fontsize=\small]{latex}
\documentclass{beamer}
\usetheme{m}
\end{minted}
2014-08-28 10:57:04 +02:00
2014-09-19 11:20:52 +02:00
Note, that you have to have Mozilla's \emph{Fira Sans} font and XeTeX
installed to enjoy this wonderful typography.
2014-09-04 16:25:58 +02:00
\end{frame}
2014-08-28 10:57:04 +02:00
2014-09-19 11:20:52 +02:00
\begin{frame}[fragile]
\frametitle{Sections}
Sections group slides of the same topic
2014-08-28 10:57:04 +02:00
2014-09-19 11:20:52 +02:00
\begin{minted}[fontsize=\small]{latex}
\section{Elements}
\end{minted}
2014-09-04 16:25:58 +02:00
2014-09-19 11:20:52 +02:00
for which the \emph{mtheme} provides a nice progress indicator \ldots
2014-09-04 16:25:58 +02:00
\end{frame}
2014-09-19 11:20:52 +02:00
\section{Elements}
\begin{frame}[fragile]
\frametitle{Typography}
\begin{minted}[fontsize=\small]{latex}
The theme provides sensible defaults to \emph{emphasis}
text, \alert{accent} parts or show \textbf{bold} results.
\end{minted}
2014-08-28 10:57:04 +02:00
2014-09-19 11:20:52 +02:00
\begin{center}becomes\end{center}
2014-09-04 16:25:58 +02:00
2014-09-19 11:20:52 +02:00
The theme provides sensible defaults to \emph{emphasis} text,
\alert{accent} parts or show \textbf{bold} results.
\end{frame}
\begin{frame}{Lists}
\begin{columns}[onlytextwidth]
\column{0.5\textwidth}
Items
\begin{itemize}
\item Milk \item Eggs \item Potatos
\end{itemize}
\column{0.5\textwidth}
Enumerations
\begin{enumerate}
\item First, \item Second and \item Last.
\end{enumerate}
\end{columns}
\end{frame}
\begin{frame}{Descriptions}
2014-09-04 16:25:58 +02:00
\begin{description}
\item[PowerPoint] Meeh.
\item[Beamer] Yeeeha.
\end{description}
2014-08-28 10:57:04 +02:00
\end{frame}
2014-09-03 14:37:29 +02:00
\begin{frame}{Animation}
\begin{itemize}[<+- | alert@+>]
2014-09-19 11:20:52 +02:00
\item \alert<4>{This is\only<4>{ really} important}
\item Now this
\item And now this
2014-09-03 14:37:29 +02:00
\end{itemize}
\end{frame}
2014-08-28 10:57:04 +02:00
\begin{frame}{Figures}
\begin{figure}
2014-09-19 15:32:09 +02:00
\newcounter{density}
\setcounter{density}{20}
2014-08-28 10:57:04 +02:00
\begin{tikzpicture}
2014-09-19 15:32:09 +02:00
\def\couleur{mLightBrown}
\path[coordinate] (0,0) coordinate(A)
++( 90:5cm) coordinate(B)
++(0:5cm) coordinate(C)
++(-90:5cm) coordinate(D);
\draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) --(D) -- cycle;
\foreach \x in {1,...,40}{%
\pgfmathsetcounter{density}{\thedensity+20}
\setcounter{density}{\thedensity}
\path[coordinate] coordinate(X) at (A){};
\path[coordinate] (A) -- (B) coordinate[pos=.10](A)
-- (C) coordinate[pos=.10](B)
-- (D) coordinate[pos=.10](C)
-- (X) coordinate[pos=.10](D);
\draw[fill=\couleur!\thedensity] (A)--(B)--(C)-- (D) -- cycle;
}
2014-08-28 10:57:04 +02:00
\end{tikzpicture}
2014-09-19 15:32:09 +02:00
\caption{Rotated square from
\href{http://www.texample.net/tikz/examples/rotated-polygons/}{texample.net}.}
2014-08-28 10:57:04 +02:00
\end{figure}
\end{frame}
2014-09-04 16:25:58 +02:00
\begin{frame}{Tables}
\begin{table}
2014-09-19 11:20:52 +02:00
\caption{Largest cities in the world (source: Wikipedia)}
\begin{tabular}{lr}
2014-09-04 16:25:58 +02:00
\toprule
2014-09-19 11:20:52 +02:00
City & Population\\
2014-09-04 16:25:58 +02:00
\midrule
2014-09-19 11:20:52 +02:00
Mexico City & 20,116,842\\
Shanghai & 19,210,000\\
Peking & 15,796,450\\
Istanbul & 14,160,467\\
2014-09-04 16:25:58 +02:00
\bottomrule
\end{tabular}
\end{table}
\end{frame}
2014-08-28 10:57:04 +02:00
\begin{frame}{Blocks}
2014-09-04 16:25:58 +02:00
2014-09-19 11:20:52 +02:00
\begin{block}{This is a block title}
This is soothing.
2014-08-28 10:57:04 +02:00
\end{block}
\end{frame}
\begin{frame}{Math}
\begin{equation*}
2014-09-19 11:20:52 +02:00
e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
2014-08-28 10:57:04 +02:00
\end{equation*}
\end{frame}
2014-09-03 14:37:45 +02:00
\begin{frame}{Quotes}
\begin{quote}
Veni, Vidi, Vici
\end{quote}
\end{frame}
2014-08-28 10:57:04 +02:00
\section{Conclusion}
\begin{frame}{Summary}
2014-09-19 11:20:52 +02:00
Get the source of this theme and the demo presentation from
2014-09-04 16:25:58 +02:00
\begin{center}\url{github.com/matze/mtheme}\end{center}
2014-09-19 11:20:52 +02:00
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}.
2014-09-04 16:25:58 +02:00
2014-09-19 11:20:52 +02:00
\begin{center}\ccbysa\end{center}
2014-09-04 16:25:58 +02:00
2014-08-28 10:57:04 +02:00
\end{frame}
2014-08-28 17:53:56 +02:00
\statement{Questions?}
2014-08-28 10:57:04 +02:00
\end{document}