Created
December 5, 2015 23:29
-
-
Save gragusa/76e9b18abf7b7cb842dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[10pt, aspectratio=169]{beamer} | |
\usetheme{metropolis} | |
\usepackage{booktabs} | |
\usepackage[scale=2]{ccicons} | |
\usepackage{pgfplots} | |
\usepgfplotslibrary{dateplot} | |
\title{Metropolis} | |
\subtitle{A modern beamer theme} | |
\date{\today} | |
\author{Matthias Vogelgesang} | |
\institute{Institute or miscellaneous information} | |
% \titlegraphic{\hfill\includegraphics[height=1.5cm]{logo/logo}} | |
\definecolor{Hohenheim_midgray}{HTML}{FBF8F8} | |
\definecolor{mGray}{HTML}{F2F2F2} | |
\setbeamercolor{block title}{bg=mDarkTeal, fg=Hohenheim_midgray} | |
\setbeamercolor{block body}{ | |
use={block title, normal text}, | |
bg=mGray | |
} | |
\metroset{titleformat frame=smallcaps} | |
\begin{document} | |
\maketitle | |
\begin{frame} | |
\frametitle{Table of Contents} | |
\setbeamertemplate{section in toc}[sections numbered] | |
\tableofcontents[hideallsubsections] | |
\end{frame} | |
\section{Introduction} | |
\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 | |
Theme} by Benjamin Weiss. | |
Enable the theme by loading | |
\begin{verbatim} \documentclass{beamer} | |
\usetheme{m}\end{verbatim} | |
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{verbatim} \section{Elements}\end{verbatim} | |
for which \textsc{Metropolis} provides a nice progress indicator \ldots | |
\end{frame} | |
\plain{It is not clear how do I work \[\int f(x)\, \mathrm{d}\,x = 0\]} | |
\section{Elements} | |
\begin{frame}[fragile] | |
\frametitle{Typography} | |
\begin{verbatim}The theme provides sensible defaults to | |
\emph{emphasize} text, \alert{accent} parts | |
or show \textbf{bold} results.\end{verbatim} | |
\begin{center}becomes\end{center} | |
The theme provides sensible defaults to \emph{emphasize} text, | |
\alert{accent} parts or show \textbf{bold} results. | |
\end{frame} | |
\begin{frame}{Lists} | |
\begin{columns}[T,onlytextwidth] | |
\column{0.33\textwidth} | |
Items | |
\begin{itemize} | |
\item Milk \item Eggs \item Potatos | |
\end{itemize} | |
\column{0.33\textwidth} | |
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} | |
\end{columns} | |
\end{frame} | |
\begin{frame}{Animation} | |
\begin{itemize}[<+- | alert@+>] | |
\item \alert<4>{This is\only<4>{ really} important} | |
\item Now this | |
\item And now this | |
\end{itemize} | |
\end{frame} | |
\begin{frame}{Figures} | |
\begin{figure} | |
\newcounter{density} | |
\setcounter{density}{20} | |
\begin{tikzpicture} | |
\def\couleur{alerted text.fg} | |
\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; | |
} | |
\end{tikzpicture} | |
\caption{Rotated square from | |
\href{http://www.texample.net/tikz/examples/rotated-polygons/}{texample.net}.} | |
\end{figure} | |
\end{frame} | |
\begin{frame}{Tables} | |
\begin{table} | |
\caption{Largest cities in the world (source: Wikipedia)} | |
\begin{tabular}{lr} | |
\toprule | |
City & Population\\ | |
\midrule | |
Mexico City & 20,116,842\\ | |
Shanghai & 19,210,000\\ | |
Peking & 15,796,450\\ | |
Istanbul & 14,160,467\\ | |
\bottomrule | |
\end{tabular} | |
\end{table} | |
\end{frame} | |
\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.45\textwidth} | |
\begin{block}{Default} | |
\[ | |
\int f(x) dx = 4 | |
\] | |
\end{block} | |
\begin{alertblock}{Alert} | |
Block content. | |
\end{alertblock} | |
\begin{exampleblock}{Example} | |
Block content. | |
\end{exampleblock} | |
\column{0.5\textwidth} | |
\metroset{block=fill} | |
\begin{block}{Default} | |
\[ | |
\int f(x) dx = 0 | |
\] | |
\end{block} | |
\begin{exampleblock}{Example} | |
Block content. | |
\end{exampleblock} | |
\end{columns} | |
\end{frame} | |
\begin{frame}{Math} | |
\begin{equation*} | |
e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n | |
\end{equation*} | |
\end{frame} | |
\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} | |
\begin{frame}{Quotes} | |
\begin{quote} | |
Veni, Vidi, Vici | |
\end{quote} | |
\end{frame} | |
\begin{frame}{References} | |
Some references to showcase [allowframebreaks] \cite{knuth92,ConcreteMath,Simpson,Er01,greenwade93} | |
\end{frame} | |
\section{Conclusion} | |
\begin{frame}{Summary} | |
Get the source of this theme and the demo presentation from | |
\begin{center}\url{github.com/matze/mtheme}\end{center} | |
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}\ccbysa\end{center} | |
\end{frame} | |
\plain{Questions?} | |
\begin{frame}[allowframebreaks] | |
\frametitle{References} | |
\bibliography{demo} | |
\bibliographystyle{abbrv} | |
\end{frame} | |
\begin{frame} | |
\begin{itemize} | |
\item \url{http://www.freeimages.com/} | |
\item \url{http://openphoto.net} | |
\end{itemize} | |
\end{frame} | |
\usebackgroundtemplate{ | |
\centering\includegraphics[width=\paperwidth,height=\paperheight]{house.jpg} | |
} | |
\begin{frame}[plain] | |
\end{frame} | |
\usebackgroundtemplate{ \centering\includegraphics[width=\paperwidth,height=\paperheight]{pope_2013.jpg} | |
} | |
\begin{frame}[plain] | |
\end{frame} | |
\usebackgroundtemplate{ \centering\includegraphics[width=\paperwidth,height=\paperheight]{pope_2005.jpg} | |
} | |
\begin{frame}[plain] | |
\end{frame} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment