Last active
April 24, 2018 19:47
-
-
Save diego898/763a3bbc3eca2876557eec10f694e1c8 to your computer and use it in GitHub Desktop.
A sample beamer presentation using the metropolis theme. These slides where generated white watching Michelle Krummel`s excellent youtube tutorial: 'https://www.youtube.com/watch?v=0fsWGg81RwU Also see: http://www.cpt.univ-mrs.fr/~masson/latex/Beamer-appearance-cheat-sheet.pdf There are also a bunch of random experiments from the tikz and beamer…
This file contains hidden or 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[xcolor=dvipsnames]{beamer} | |
\usepackage{tikz,ifthen} | |
\usetikzlibrary{calc, intersections,through,backgrounds,positioning} | |
\usepackage{pgfpages} | |
\usepackage{blindtext} | |
\usepackage{multicol} | |
% \setbeameroption{show notes on second screen} | |
\usetheme[progressbar=frametitle]{metropolis} | |
\setbeamertemplate{frame numbering}[none] | |
\metroset{block=fill} | |
\setbeamercovered{transparent=15} | |
\usepackage{amsmath,amssymb,amsthm,mathrsfs,bbm,bm} | |
\usepackage{graphicx,subcaption,float,enumerate} | |
\title[short title]{Functions Testing} | |
\subtitle{Lecture 1} | |
% \date{4/19/18} | |
\date{} | |
% \author{Diego Mesa} | |
\author{} | |
% \logo{\includegraphics[height=0.5cm]{Vanderbilt}} | |
\institute{\large \textbf{Learning Outcomes}: \\ This is a test for | |
sample learning outcomes, its important to do some kind of testing here.} | |
% \setbeamersize{sidebar width left=0.5cm,sidebar width right=0.5cm} | |
% {\usebeamercolor{sidebar}} | |
% \setbeamertemplate{sidebar canvas left}[horizontal shading] | |
% [left=green,middle=sidebar.bg,right=red] \setbeamertemplate{sidebar canvas | |
% right}[horizontal shading] [left=green,middle=sidebar.bg,right=red] | |
% \setbeamercolor{normal text}{bg=red!20} | |
% \setbeamercolor{background canvas}{bg=red!20} | |
\begin{document} | |
\maketitle | |
% \setbeamertemplate{background}[grid][color=white] | |
% \setbeamertemplate{background canvas}[vertical shading][top=red,bottom=orange] | |
\begin{frame} | |
\begin{tikzpicture}[show background rectangle, remember picture, overlay] | |
\coordinate (A) at (0,0); | |
\draw (A) circle [radius=2pt]; | |
\coordinate (B) at (-60:2cm); | |
\coordinate (C) at (240:2cm); | |
\foreach \density in {20,30,...,180}{% | |
\fill[fill=MidnightBlue!\density] (A)--(B)--(C); | |
\path | |
(A) coordinate (X) | |
-- (B) coordinate[pos=.15](A) | |
-- (C) coordinate[pos=.15](B) | |
-- (X) coordinate[pos=.15](C); | |
} | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame}{AS} | |
\begin{tikzpicture} | |
[place/.style={circle,draw=blue!50,fill=blue!20,thick, inner | |
sep=0pt,minimum size=6mm}, | |
transition/.style={rectangle,draw=black!50,fill=black!20,thick, inner | |
sep=0pt,minimum size=4mm}] | |
\node[place] (waiting) {}; | |
\node[place] (critical) [below=of waiting] {}; | |
\node [place] (semaphore) [below=of critical] {}; | |
\node[transition] (leave critical) [right=of critical] {}; | |
\node[transition] (enter critical) [left=of critical] {}; | |
\draw [->] (enter critical) to (critical); | |
% \draw [->] (waiting) to [out=180,in=90] (enter critical); | |
\draw [->] (waiting) to [bend right=45] (enter critical); | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\begin{tikzpicture}[remember picture,overlay] | |
\node at (current page.north west) [fill=red!20,rounded | |
corners,below right] {Top Left}; | |
\node at (current page.south west) [fill=red!20,rounded | |
corners,above right] {Bottom Left}; | |
\node at (current page.south east) [fill=red!20,rounded | |
corners,above left] {Bottom Right}; | |
\node at (current page.north east) [fill=red!20,rounded | |
corners,below left] {Top Right}; | |
\node at (current page) [fill=red!20,rounded | |
corners] {Center}; | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\begin{tikzpicture}[remember picture,overlay] | |
\draw[very thick,red] (current page.north west) -- (current page.north) -- | |
(current page.center) -- (current page.south) -- (current page.south west) | |
-- cycle; | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\begin{tikzpicture}[remember picture,overlay] | |
\draw[very thick,red] (current page.west) rectangle (current | |
page.south) ; | |
\draw[very thick,blue] (current page.north west) rectangle (current | |
page.center); | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\begin{tikzpicture} | |
\foreach \x in {1,2,5} | |
\foreach \y in {13,14,15} | |
{ | |
\draw (\x,\y) +(-.5,-.5) rectangle ++(.5,.5); | |
\draw (\x,\y) node{\x,\y}; | |
} | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\begin{tikzpicture}[scale=3] | |
% \clip (-0.6,-0.2) rectangle (0.6,1.51); | |
\draw[step=.5cm,help lines] (-1.4,-1.4) grid (1.4,1.4); | |
\filldraw[fill=green!20,draw=green!50!black] (0,0) -- (3mm,0mm) arc [start angle=0, end angle=30, radius=3mm] -- cycle; | |
\draw[->] (-1.5,0) -- (1.5,0); | |
\draw[->] (0,-1.5) -- (0,1.5); | |
\draw (0,0) circle [radius=1cm]; | |
\foreach \x in {-1,-0.5,1} | |
\draw (\x cm,3pt) -- (\x cm,-3pt) node[anchor=north] {$\x$}; | |
\foreach \y in {-1,-0.5,0.5,1} | |
\draw (1pt,\y cm) -- (-1pt,\y cm) node[anchor=east] {$\y$}; | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\begin{tikzpicture}[show background rectangle] | |
\draw[help lines] (0,0) grid (5,5); | |
\draw (canvas cs:x=0cm,y=2mm) -- (canvas polar cs:radius=2cm,angle=30); | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame}{Slide} | |
\begin{tikzpicture}[show background rectangle] | |
\draw[help lines] (0,0) grid (0.5\textwidth,0.5\textheight); | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\begin{tikzpicture}[show background rectangle] | |
\draw[help lines] (0,0) grid (3,2); | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\begin{tikzpicture}[show background rectangle] | |
\draw[help lines] (0,0) grid (3,2); | |
\fill (canvas cs:x=0cm,y=0cm) circle (10pt); | |
\fill (canvas cs:x=1cm,y=1cm) circle (2pt); | |
\end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\begin{tikzpicture}[show background rectangle,->] | |
\draw (0,0) -- (1,0); \draw | |
(0,0) -- (0,1,0); | |
\draw (0,0) -- (0,0,1); \end{tikzpicture} | |
\end{frame} | |
\begin{frame} | |
\frametitle{title} | |
\begin{columns}[t] | |
\begin{column}{.48\textwidth} | |
Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, | |
\end{column} | |
\begin{column}{.48\textwidth} | |
whatever should be on the right | |
\end{column} | |
\end{columns} | |
\vfill | |
\begin{columns}[t] | |
\begin{column}{.48\textwidth} | |
Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, | |
\end{column} | |
\begin{column}{.48\textwidth} | |
\end{column} | |
\end{columns} | |
\end{frame} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment