metropolis_theme/demo.tex

252 lines
6.2 KiB
TeX
Raw Normal View History

2015-06-11 10:58:24 +02:00
\documentclass[10pt]{beamer}
2014-08-28 10:57:04 +02:00
\usetheme{m}
2014-08-28 10:57:04 +02:00
2014-09-04 16:25:58 +02:00
\usepackage{booktabs}
2014-09-19 11:20:52 +02:00
\usepackage[scale=2]{ccicons}
2015-06-22 07:24:49 +02:00
\usepackage{pgfplots}
2014-10-17 08:40:25 +02:00
\usepgfplotslibrary{dateplot}
\title{Metropolis}
\subtitle{A modern beamer theme}
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}
% \titlegraphic{\hfill\includegraphics[height=1.5cm]{logo/logo}}
2014-08-28 10:57:04 +02:00
\begin{document}
\maketitle
2015-06-15 14:33:08 +02:00
\begin{frame}
\frametitle{Table of Contents}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections]
\end{frame}
\section{Introduction}
2014-09-19 11:20:52 +02:00
\begin{frame}[fragile]
\frametitle{mtheme}
The \textsc{Metropolis} theme is a Beamer theme with minimal visual noise
inspired by the \href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{\textsc{hsrm} Beamer
2014-09-19 11:20:52 +02:00
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
\begin{verbatim} \documentclass{beamer}
\usetheme{m}\end{verbatim}
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-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
\begin{verbatim} \section{Elements}\end{verbatim}
2014-09-04 16:25:58 +02:00
for which \textsc{Metropolis} 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}
2015-04-28 20:44:00 +02:00
\begin{verbatim}The theme provides sensible defaults to
\emph{emphasize} text, \alert{accent} parts
or show \textbf{bold} results.\end{verbatim}
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-10-17 08:41:31 +02:00
The theme provides sensible defaults to \emph{emphasize} text,
2014-09-19 11:20:52 +02:00
\alert{accent} parts or show \textbf{bold} results.
\end{frame}
\begin{frame}{Lists}
\begin{columns}[T,onlytextwidth]
\column{0.33\textwidth}
2014-09-19 11:20:52 +02:00
Items
\begin{itemize}
\item Milk \item Eggs \item Potatos
\end{itemize}
\column{0.33\textwidth}
2014-09-19 11:20:52 +02:00
Enumerations
\begin{enumerate}
\item First, \item Second and \item Last.
\end{enumerate}
\column{0.33\textwidth}
Descriptions
\begin{description}
\item[PowerPoint] Meeh. \item[Beamer] Yeeeha.
\end{description}
2014-09-19 11:20:52 +02:00
\end{columns}
\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}
\def\couleur{alerted text.fg}
2014-09-19 15:32:09 +02:00
\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}
Three different block environments are pre-defined and may be styled with an
optional background color.
\begin{columns}[T,onlytextwidth]
\column{0.5\textwidth}
\begin{block}{Default}
Block content.
\end{block}
\begin{alertblock}{Altert}
Block content.
\end{alertblock}
\begin{exampleblock}{Example}
Block content.
\end{exampleblock}
\column{0.5\textwidth}
\metroset{block=fill}
\begin{block}{Default}
Block content.
\end{block}
\begin{alertblock}{Altert}
Block content.
\end{alertblock}
\begin{exampleblock}{Example}
Block content.
\end{exampleblock}
\end{columns}
\end{frame}
2014-08-28 10:57:04 +02:00
\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-10-17 08:40:25 +02:00
\begin{frame}{Line plots}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
mlineplot,
width=0.9\textwidth,
height=6cm,
]
\addplot {sin(deg(x))};
\addplot+[samples=100] {sin(deg(2*x))};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{frame}
\begin{frame}{Bar charts}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
mbarplot,
xlabel={Foo},
ylabel={Bar},
width=0.9\textwidth,
height=6cm,
]
\addplot plot coordinates {(1, 20) (2, 25) (3, 22.4) (4, 12.4)};
\addplot plot coordinates {(1, 18) (2, 24) (3, 23.5) (4, 13.2)};
\addplot plot coordinates {(1, 10) (2, 19) (3, 25) (4, 15.2)};
\legend{lorem, ipsum, dolor}
\end{axis}
\end{tikzpicture}
\end{figure}
\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
2015-06-15 14:19:32 +02:00
\begin{frame}{References}
Some references to showcase [allowframebreaks] \cite{knuth92,ConcreteMath,Simpson,Er01,greenwade93}
2015-06-15 14:19:32 +02:00
\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-10-22 13:38:23 +02:00
\plain{Questions?}
\begin{frame}[allowframebreaks]
\frametitle{References}
\bibliography{demo}
\bibliographystyle{abbrv}
\end{frame}
2014-08-28 10:57:04 +02:00
\end{document}