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=makopurple4}
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{}%
62 }{\gdef\beamer@noteitems{}%
66 % redfine the notes type to clear things (working around the same bug)
67 % https://tex.stackexchange.com/questions/28966/change-beamer-notes-list-type-for-in-frame-notes
68 \def\beamer@setupnote{%
69 \gdef\beamer@notesactions{%
70 \beamer@outsideframenote{%
74 \usebeamercolor[fg]{normal text}%
76 \ifx\beamer@noteitems\@empty\else
83 \gdef\beamer@notesactions{}%
91 % add tikz and a bunch of tikz foo
93 \usetikzlibrary{shapes,shapes.misc,backgrounds,fit,positioning}
94 \tikzstyle{every picture}+=[overlay,remember picture]
96 % add functions to circle parts of slides (e.g., in tables)
97 \newcommand\marktopleft[1]{\tikz \node (marker-#1-a) at (0,1.5ex) {};}
98 \newcommand\markbottomright[1]{%
99 \tikz{\node (marker-#1-b) at (0,0) {};}
100 \tikz[dashed,inner sep=3pt]{\node[violet!75,ultra thick,draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};}}
102 % create an empty quotetxt so we can reuse it
103 \newcommand{\quotetxt}{}
105 % more flexible non-tikz alternative with no dropshadow
106 \newlength{\centertxtlen}
108 \newcommand\centertext[2]{%
109 \setlength{\centertxtlen}{#1}%
110 \setlength{\centertxtlen}{0.48\centertxtlen}%
112 \fontsize{#1}{2\centertxtlen}\selectfont
118 % packages i use in essentially every document
119 \usepackage{graphicx}
121 % \usepackage{dcolumn}
122 % \usepackage{booktabs}
124 % replace footnotes with symbols instead of numbers
125 \renewcommand*{\thefootnote}{\fnsymbol{footnote}}
127 \MakePerPage{footnote}
129 % \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=makopurple1,
130 % urlcolor=Plum, unicode=true}
132 % create a new \e{} command to make things purple and bold
133 \newcommand{\e}[1]{\alert{#1}}
135 % remove the nagivation symbols
136 \setbeamertemplate{navigation symbols}{}
138 \newcommand{\credit}[1]{%
139 \tikz[overlay]{\node at (current page.south west)
140 [anchor=south west, yshift=3pt, xshift=2pt]
141 {\smaller \smaller {[}#1{]}};}}
143 \setlength{\parsep}{1em}
145 \title{Presentation Title}
146 \subtitle{Presentation Subtitle}
147 \author[Benj. Mako Hill]{\textbf{Benjamin Mako Hill}\\
149 \institute[UW/Harvard]{\textbf{University of Washington}\\
150 Department of Communication\\
151 \emph{Assistant Professor}\\
153 \textbf{Harvard University}\\
154 Berkman Klein Center\\
155 \emph{Faculty Associate}}
157 \date{December 2, 1980}
161 % remove some of the space in the itemize to make it quite compact
162 % \let\olditemize\itemize
163 % \renewcommand\itemize{\olditemize\itemsep-1pt}
165 %% SLIDE: Title Slide
169 \tikz{\node at (current page.center) [anchor=center, yshift=-0.5in, xshift=1in]
170 {\includegraphics[width=0.35\textwidth]{figures/logo.pdf}};
173 % include version control stuff
175 \credit{Revision:\ \VCRevision\ (\VCDateTEX)}
178 \section{Introduction}
183 \note{This is an example section page.}
187 \begin{frame}{A sample slide, A sample slide, A sample slide, A sample
188 slide, A sample slide, A sample slide}
193 \int_{-\infty}^\infty e^{-x^2} \, dx = \sqrt{\pi}
199 \item<1-> itemized item 1
200 \item<2-> itemized item 2
201 \item<3-> itemized item 3
206 \emph{In a right triangle, the square of hypotenuse equals
207 the sum of squares of two other sides.}
211 \credit{Image credit: Shaw and Hill, 2099.}
212 \note{These are the slide 2 notes.}
216 \frametitle{Short frame title}
218 \e{A first} paragraph.
220 And then \e{a second} paragraph.
223 \subsection{Introductory Subsection}
228 \note{This is an example subsection page.}
233 \begin{frame}[standout]
234 Example and Data Appendix
237 \begin{frame}{A sample slide}
239 \note{These are the slide 4 notes.}
245 % LocalWords: xcolor dvipsnames beamer ugm phv sep pageofpages px
246 % LocalWords: titleline alternativetitlepage titlepagelogo Torino
247 % LocalWords: watermarkheight watermarkheightmult bg makopurple fg
248 % LocalWords: noparskip colback colframe coltext coltitle fonttitle
249 % LocalWords: colorlinks linkcolor citecolor filecolor urlcolor
250 % LocalWords: unicode frametitle subbody subsubbody