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}+=[overlay,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
59 % add function to stop numbering appendix slides
60 \newcommand{\backupbegin}{
61 \newcounter{framenumberappendix}
62 \setcounter{framenumberappendix}{\value{framenumber}}
64 \newcommand{\backupend}{
65 \addtocounter{framenumberappendix}{-\value{framenumber}}
66 \addtocounter{framenumber}{\value{framenumberappendix}}
69 % packages i use in essentially every document
72 % \usepackage{dcolumn}
73 % \usepackage{booktabs}
75 % replace footnotes with symbols instead of numbers
76 \renewcommand*{\thefootnote}{\fnsymbol{footnote}}
78 \MakePerPage{footnote}
81 \usetheme[pageofpages=/,% String used between the current page and the
83 bullet=default,% Use circles instead of squares for bullets.
84 titleline=false,% Show a line below the frame title.
85 alternativetitlepage=true,% Use the fancy title page.
86 titlepagelogo=figures/logo.pdf,% Logo for the first page.
87 %watermark=watermark-polito,% Watermark used in every page.
88 watermarkheight=100px,% Height of the watermark.
89 watermarkheightmult=4,% The watermark image is 4 times bigger
90 % than watermarkheight.
94 \useinnertheme{rectangles}
95 %\setbeamertemplate{blocks}[rounded][]
96 \setbeamercolor{block title}{bg=makopurple3, fg=White}
98 \setbeamertemplate{items}[default]
99 \setbeamertemplate{blocks}[shadow=true]
101 \usepackage{tcolorbox}
102 % These options will be applied to all `tcolorboxes`
105 colback=makopurple5, %background color of the box
106 colframe=makopurple1, %color of frame and title background
107 coltext=black, %color of body text
108 coltitle=white, %color of title text
113 alerted/.style={coltitle=red,
115 example/.style={coltitle=black,
121 %\useoutertheme{infolines}
122 %\usepackage[breaklinks]{hyperref}
124 \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=makopurple1,
125 urlcolor=Plum, unicode=true}
127 % create a boldface version of the header
128 \setbeamerfont{frametitle}{series=\bfseries}
129 \setbeamerfont{title}{series=\bfseries}
131 % tweak the beamer font to make it a bit lists a bit smaller
132 \setbeamerfont*{itemize/enumerate body}{size=\small}
133 \setbeamerfont*{itemize/enumerate subbody}{size=\footnotesize}
134 \setbeamerfont*{itemize/enumerate subsubbody}{size=\footnotesize}
136 % indent the margins of the itemize lists a little bit
137 \setlength{\leftmargin}{0pt}
138 \setlength{\leftmargini}{0.7cm}
139 \setlength{\leftmarginii}{0.7cm}
141 % create a new \e{} command to make things purple and bold
142 \newcommand{\e}[1]{\textcolor{makopurple1}{\textbf{#1}}}
144 % remove the nagivation symbols
145 \setbeamertemplate{navigation symbols}{}
147 \title{Presentation Title}
148 % \subtitle{Presentation Subtitle}
149 \author[Benj. Mako Hill]{\textbf{Benjamin Mako Hill}\\ mako@mit.edu}
151 \institute[MIT/Harvard]{\textbf{Massachusetts Institute of Technology}\\
152 Sloan School of Management\\
155 \textbf{Harvard University}\\
156 Berkman Center for Internet and Society}
158 \date{December 2, 1980}
162 % remove some of the space in the itemize to make it quite compact
163 \let\olditemize\itemize
164 \renewcommand\itemize{\olditemize\itemsep-1pt}
166 %% SLIDE: Title Slide
170 % include version control stuff
172 \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)}};}
176 \begin{frame}{A sample slide, A sample slide, A sample slide, A sample
177 slide, A sample slide, A sample slide}
182 \int_{-\infty}^\infty e^{-x^2} \, dx = \sqrt{\pi}
188 \item<1-> itemized item 1
189 \item<2-> itemized item 2
190 \item<3-> itemized item 3
194 \begin{tcolorbox}[title={Foo, Bar, Baz}]
195 \emph{In a right triangle, the square of hypotenuse equals
196 the sum of squares of two other sides.}
201 % This is the slide 2 notes.
210 \centertext{7em}{Example and Data Appendix}
213 \begin{frame}{A sample slide}
217 % This is the slide 3 notes.