1 \documentclass[xcolor=dvipsnames]{beamer}
3 % set up the file to create notes in the output PDFs
7 \renewcommand{\rmdefault}{ugm}
8 \usepackage[garamond]{mathdesign}
10 \renewcommand{\sfdefault}{phv}
14 \usepackage[utf8x]{inputenc}
15 \usepackage[T1]{fontenc}
18 % add tikz and a bunch of tikz foo
20 \usetikzlibrary{shapes,shapes.misc,backgrounds,fit,positioning}
21 \tikzstyle{every picture}+=[remember picture]
23 % add functions to circle parts of slides (e.g., in tables)
24 \newcommand\marktopleft[1]{%
25 \tikz[overlay,remember picture]
26 \node (marker-#1-a) at (0,1.5ex) {};%
28 \newcommand\markbottomright[1]{%
29 \tikz[overlay,remember picture]
30 \node (marker-#1-b) at (0,0) {};%
31 \tikz[overlay,remember picture,dashed,inner sep=3pt]
32 \node[violet!75,ultra thick,draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};%
35 % DEPRECATED function to build a huge centered dropshadow
36 \newcommand\dropshadow[3]{%
37 \node[black!30!white] at (#1+0.1,#2-0.1) {
38 \scalebox{2}{\Huge \textbf{#3}}
41 \scalebox{2}{\Huge \e{#3}}
45 % more flexible non-tikz alternative with no dropshadow
46 \newlength{\centertxtlen}
48 \newcommand\centertext[2]{%
49 \setlength{\centertxtlen}{#1}%
50 \setlength{\centertxtlen}{0.35\centertxtlen}%
52 \fontsize{#1}{2\centertxtlen}\selectfont
60 % add function to stop numbering appendix slides
61 \newcommand{\backupbegin}{
62 \newcounter{framenumberappendix}
63 \setcounter{framenumberappendix}{\value{framenumber}}
65 \newcommand{\backupend}{
66 \addtocounter{framenumberappendix}{-\value{framenumber}}
67 \addtocounter{framenumber}{\value{framenumberappendix}}
70 % packages i use in essentially every document
73 % \usepackage{dcolumn}
74 % \usepackage{booktabs}
76 % replace footnotes with symbols instead of numbers
77 \renewcommand*{\thefootnote}{\fnsymbol{footnote}}
79 \MakePerPage{footnote}
82 \usetheme[pageofpages=/,% String used between the current page and the
84 bullet=default,% Use circles instead of squares for bullets.
85 titleline=false,% Show a line below the frame title.
86 alternativetitlepage=true,% Use the fancy title page.
87 titlepagelogo=figures/logo.pdf,% Logo for the first page.
88 %watermark=watermark-polito,% Watermark used in every page.
89 watermarkheight=100px,% Height of the watermark.
90 watermarkheightmult=4,% The watermark image is 4 times bigger
91 % than watermarkheight.
95 \useinnertheme{rectangles}
96 %\setbeamertemplate{blocks}[rounded][]
97 \setbeamercolor{block title}{bg=makopurple3, fg=White}
99 \setbeamertemplate{items}[default]
100 \setbeamertemplate{blocks}[shadow=true]
102 \usepackage{tcolorbox}
103 % These options will be applied to all `tcolorboxes`
106 colback=makopurple5, %background color of the box
107 colframe=makopurple1, %color of frame and title background
108 coltext=black, %color of body text
109 coltitle=white, %color of title text
114 alerted/.style={coltitle=red,
116 example/.style={coltitle=black,
122 %\useoutertheme{infolines}
123 %\usepackage[breaklinks]{hyperref}
125 \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=makopurple1,
126 urlcolor=Plum, unicode=true}
128 % create a boldface version of the header
129 \setbeamerfont{frametitle}{series=\bfseries}
130 \setbeamerfont{title}{series=\bfseries}
132 % tweak the beamer font to make it a bit lists a bit smaller
133 \setbeamerfont*{itemize/enumerate body}{size=\small}
134 \setbeamerfont*{itemize/enumerate subbody}{size=\footnotesize}
135 \setbeamerfont*{itemize/enumerate subsubbody}{size=\footnotesize}
137 % indent the margins of the itemize lists a little bit
138 \setlength{\leftmargin}{0pt}
139 \setlength{\leftmargini}{0.7cm}
140 \setlength{\leftmarginii}{0.7cm}
142 % create a new \e{} command to make things purple and bold
143 \newcommand{\e}[1]{\textcolor{makopurple1}{\textbf{#1}}}
145 % remove the nagivation symbols
146 \setbeamertemplate{navigation symbols}{}
148 \title{Presentation Title}
149 % \subtitle{Presentation Subtitle}
150 \author[Benj. Mako Hill]{\textbf{Benjamin Mako Hill}\\ mako@mit.edu}
152 \institute[MIT/Harvard]{\textbf{Massachusetts Institute of Technology}\\
153 Sloan School of Management\\
156 \textbf{Harvard University}\\
157 Berkman Center for Internet and Society}
159 \date{December 2, 1980}
163 % remove some of the space in the itemize to make it quite compact
164 \let\olditemize\itemize
165 \renewcommand\itemize{\olditemize\itemsep-1pt}
167 %% SLIDE: Title Slide
171 % include version control stuff
173 \tikz[overlay,shift=(current page.south west)]{\node [xshift=5.6em,yshift=0.5em]{\colorbox{makopurple1}{\color{white} \tt \smaller \smaller \smaller revision:\ \VCRevision\ (\VCDateTEX)}};}
177 \begin{frame}{A sample slide, A sample slide, A sample slide, A sample
178 slide, A sample slide, A sample slide}
183 \int_{-\infty}^\infty e^{-x^2} \, dx = \sqrt{\pi}
189 \item<1-> itemized item 1
190 \item<2-> itemized item 2
191 \item<3-> itemized item 3
195 \begin{tcolorbox}[title={Foo, Bar, Baz}]
196 \emph{In a right triangle, the square of hypotenuse equals
197 the sum of squares of two other sides.}
202 % This is the slide 2 notes.
211 \centertext{7em}{Example and Data Appendix}
214 \begin{frame}{A sample slide}
218 % This is the slide 3 notes.