1 \documentclass[10pt,xcolor=dvipsnames]{beamer}
4 \usepackage{appendixnumberbeamer}
10 \usepgfplotslibrary{dateplot}
13 \usepackage[scale=2]{ccicons}
15 % optional metro things
16 \metroset{numbering=fraction} % page numbering format
17 \metroset{progressbar=foot} % progress bar in footer
18 \metroset{sectionpage=none, subsectionpage=none}
20 % \metroset{background=light}
22 \setsansfont{OpenSans}
25 \definecolor{makopurple1}{RGB}{57,39,91}
26 \definecolor{makopurple2}{RGB}{137,119,173}
27 \definecolor{makopurple3}{RGB}{29,13,59}
28 \definecolor{makopurple4}{RGB}{124,99,173}
30 % \definecolor{makopurple1}{HTML}{3b255b}
31 \definecolor{makogreen1}{HTML}{0b7a75}
32 \definecolor{makovanilla1}{HTML}{d7c9aa}
33 \definecolor{makoumber1}{HTML}{7b2d26}
34 \definecolor{makowhite1}{HTML}{f0f3f5}
36 \setbeamercolor{normal text}{fg=black, bg=white}
37 \setbeamercolor{alerted text}{fg=makopurple1}
38 \setbeamercolor{example text}{fg=makoumber1}
40 \setbeamercolor{palette primary}{bg=makopurple1, fg=normal text.bg}
41 \setbeamercolor{palette secondary}{bg=makogreen1,fg=normal text.bg}
42 \setbeamercolor{palette tertiary}{bg=makovanilla1,fg=normal text.bg}
43 \setbeamercolor{palette quaternary}{bg=makoumber1,fg=normal text.bg}
44 \setbeamercolor{structure}{fg=makopurple1, bg=normal text.bg} % itemize, enumerate, etc
45 \setbeamercolor{section in toc}{fg=makopurple1, bg=normal text.bg} % TOC sections
47 \setbeamercolor{progress bar}{fg=makopurple1}
48 \setbeamercolor{title separator}{fg=makopurple1}
49 \setbeamercolor{progress bar in head/foot}{fg=makopurple1}
50 \setbeamercolor{progress bar in section page}{fg=makopurple1}
52 % this is a fix for a bug with XeTeX and notes pages
53 % see: https://tex.stackexchange.com/questions/232168/normal-text-is-invisible-when-using-beamer-with-notes-and-xelatex
56 \def\beamer@framenotesbegin{% at beginning of slide
57 \ifthenelse{\not \boolean{metropolis@standout}}{%
58 \usebeamercolor[fg]{normal text}
59 \gdef\beamer@noteitems{}%
68 % add tikz and a bunch of tikz foo
70 \usetikzlibrary{shapes,shapes.misc,backgrounds,fit,positioning}
71 \tikzstyle{every picture}+=[overlay,remember picture]
73 % add functions to circle parts of slides (e.g., in tables)
74 \newcommand\marktopleft[1]{\tikz \node (marker-#1-a) at (0,1.5ex) {};}
75 \newcommand\markbottomright[1]{%
76 \tikz{\node (marker-#1-b) at (0,0) {};}
77 \tikz[dashed,inner sep=3pt]{\node[violet!75,ultra thick,draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};}}
79 % create an empty quotetxt so we can reuse it
80 \newcommand{\quotetxt}{}
82 % more flexible non-tikz alternative with no dropshadow
83 \newlength{\centertxtlen}
85 \newcommand\centertext[2]{%
86 \setlength{\centertxtlen}{#1}%
87 \setlength{\centertxtlen}{0.48\centertxtlen}%
89 \fontsize{#1}{2\centertxtlen}\selectfont
95 % packages i use in essentially every document
98 % \usepackage{dcolumn}
99 % \usepackage{booktabs}
101 % replace footnotes with symbols instead of numbers
102 \renewcommand*{\thefootnote}{\fnsymbol{footnote}}
104 \MakePerPage{footnote}
106 % \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=makopurple1,
107 % urlcolor=Plum, unicode=true}
109 % create a new \e{} command to make things purple and bold
110 \newcommand{\e}[1]{\alert{#1}}
112 % remove the nagivation symbols
113 \setbeamertemplate{navigation symbols}{}
115 \newcommand{\credit}[1]{%
116 \tikz[overlay]{\node at (current page.south west)
117 [anchor=south west, yshift=3pt, xshift=2pt]
118 {\smaller \smaller {[}#1{]}};}}
120 \setlength{\parsep}{1em}
122 \title{Presentation Title}
123 \subtitle{Presentation Subtitle}
124 \author[Benj. Mako Hill]{\textbf{Benjamin Mako Hill}\\
126 \institute[UW/Harvard]{\textbf{University of Washington}\\
127 Department of Communication\\
128 \emph{Assistant Professor}\\
130 \textbf{Harvard University}\\
131 Berkman Klein Center\\
132 \emph{Faculty Associate}}
134 \date{December 2, 1980}
138 % remove some of the space in the itemize to make it quite compact
139 % \let\olditemize\itemize
140 % \renewcommand\itemize{\olditemize\itemsep-1pt}
142 %% SLIDE: Title Slide
146 \tikz{\node at (current page.center) [anchor=center, yshift=-0.5in, xshift=1in]
147 {\includegraphics[width=0.35\textwidth]{figures/logo.pdf}};
150 % include version control stuff
152 \credit{Revision:\ \VCRevision\ (\VCDateTEX)}
155 \section{Introduction}
158 \begin{frame}{A sample slide, A sample slide, A sample slide, A sample
159 slide, A sample slide, A sample slide}
164 \int_{-\infty}^\infty e^{-x^2} \, dx = \sqrt{\pi}
170 \item<1-> itemized item 1
171 \item<2-> itemized item 2
172 \item<3-> itemized item 3
177 \emph{In a right triangle, the square of hypotenuse equals
178 the sum of squares of two other sides.}
182 \credit{Image credit: Shaw and Hill, 2099.}
183 \note{These are the slide 2 notes.}
187 \frametitle{Short frame title}
189 \e{A first} paragraph.
191 And then \e{a second} paragraph.
196 \begin{frame}[standout]
197 Example and Data Appendix
200 \begin{frame}{A sample slide}
202 \note{These are the slide 4 notes.}
208 % LocalWords: xcolor dvipsnames beamer ugm phv sep pageofpages px
209 % LocalWords: titleline alternativetitlepage titlepagelogo Torino
210 % LocalWords: watermarkheight watermarkheightmult bg makopurple fg
211 % LocalWords: noparskip colback colframe coltext coltitle fonttitle
212 % LocalWords: colorlinks linkcolor citecolor filecolor urlcolor
213 % LocalWords: unicode frametitle subbody subsubbody