]> projects.mako.cc - beamer-mako/blob - template/example.tex
added a bunch of changes to the basic beamer template
[beamer-mako] / template / example.tex
1 \documentclass[xcolor=dvipsnames]{beamer}
2
3 \renewcommand{\rmdefault}{ugm}
4 \usepackage[garamond]{mathdesign}
5
6 \renewcommand{\sfdefault}{phv}
7 \usepackage{relsize}
8
9 \usepackage{ucs}
10 \usepackage[utf8x]{inputenc}
11 \usepackage[T1]{fontenc}
12 \usepackage{textcomp}
13
14 % add tikz and a bunch of tikz foo
15 \usepackage{tikz}
16 \usetikzlibrary{shapes,shapes.misc,backgrounds,fit,positioning}
17 \tikzstyle{every picture}+=[remember picture]
18
19 % add functions to circle parts of slides (e.g., in tables)
20 \newcommand\marktopleft[1]{%
21     \tikz[overlay,remember picture] 
22         \node (marker-#1-a) at (0,1.5ex) {};%
23 }
24 \newcommand\markbottomright[1]{%
25     \tikz[overlay,remember picture] 
26         \node (marker-#1-b) at (0,0) {};%
27     \tikz[overlay,remember picture,dashed,inner sep=3pt]
28         \node[violet!75,ultra thick,draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};%
29 }
30
31 % add function to build a huge centered dropshadow
32 \newcommand\dropshadow[3]{%
33   \node[black!30!white] at (#1+0.1,#2-0.1) {
34     \scalebox{2}{\Huge \textbf{#3}}
35   };
36   \node at (#1,#2) {
37     \scalebox{2}{\Huge \e{#3}}
38   };
39 }
40
41 % add function to stop numbering appendix slides
42 \newcommand{\backupbegin}{
43    \newcounter{framenumberappendix}
44    \setcounter{framenumberappendix}{\value{framenumber}}
45 }
46 \newcommand{\backupend}{
47    \addtocounter{framenumberappendix}{-\value{framenumber}}
48    \addtocounter{framenumber}{\value{framenumberappendix}} 
49 }
50
51 % packages i use in essentially every document
52 \usepackage{graphicx}
53 \usepackage{url}
54 % \usepackage{dcolumn}
55 % \usepackage{booktabs}
56
57 %% BEAMER THEME STUFF
58 \usetheme[pageofpages=/,% String used between the current page and the
59                          % total page count.
60           bullet=default,% Use circles instead of squares for bullets.
61           titleline=false,% Show a line below the frame title.
62           alternativetitlepage=true,% Use the fancy title page.
63           titlepagelogo=figures/logo.pdf,% Logo for the first page.
64           %watermark=watermark-polito,% Watermark used in every page.
65           watermarkheight=100px,% Height of the watermark.
66           watermarkheightmult=4,% The watermark image is 4 times bigger
67                                 % than watermarkheight.
68           ]{Torino}
69
70 \usecolortheme{mako}
71 \useinnertheme{rectangles}
72 %\setbeamertemplate{blocks}[rounded][]
73 \setbeamercolor{block title}{bg=makopurple3, fg=White}
74
75 \setbeamertemplate{items}[default] 
76 \setbeamertemplate{blocks}[shadow=true] 
77
78 \usepackage{tcolorbox}
79 % These options will be applied to all `tcolorboxes`
80 \tcbset{%
81     noparskip,
82     colback=makopurple5, %background color of the box
83     colframe=makopurple1, %color of frame and title background
84     coltext=black, %color of body text
85     coltitle=white, %color of title text 
86     arc=0em,
87     left=0.1em,
88     right=0.1em,
89     fonttitle=\bfseries,
90     alerted/.style={coltitle=red, 
91                      colframe=gray!40},
92     example/.style={coltitle=black, 
93                      colframe=green!20,             
94                      colback=green!5},
95     }
96
97
98 %\useoutertheme{infolines}
99 %\usepackage[breaklinks]{hyperref}
100
101 \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=makopurple1,
102     urlcolor=Plum, unicode=true}
103
104 % create a boldface version of the header
105 \setbeamerfont{frametitle}{series=\bfseries}
106 \setbeamerfont{title}{series=\bfseries}
107
108 % tweak the beamer font to make it a bit lists a bit smaller
109 \setbeamerfont*{itemize/enumerate body}{size=\small}
110 \setbeamerfont*{itemize/enumerate subbody}{size=\footnotesize}
111 \setbeamerfont*{itemize/enumerate subsubbody}{size=\footnotesize}
112
113 % indent the margins of the itemize lists a little bit
114 \setlength{\leftmargin}{0pt}
115 \setlength{\leftmargini}{0.7cm}
116 \setlength{\leftmarginii}{0.7cm}
117
118 % create a new \e{} command to make things purple and bold
119 \newcommand{\e}[1]{\textcolor{makopurple1}{\textbf{#1}}}
120
121 % remove the nagivation symbols
122 \setbeamertemplate{navigation symbols}{}
123
124 \title{Presentation Title}
125 % \subtitle{Presentation Subtitle}
126 \author[Benj. Mako Hill]{\textbf{Benjamin Mako Hill}\\ mako@mit.edu}
127
128 \institute[MIT/Harvard]{\textbf{Massachusetts Institute of Technology}\\
129   Sloan School of Management\\
130   MIT Media Lab\\
131   \hspace{1pt}\\
132   \textbf{Harvard University}\\
133   Berkman Center for Internet and Society}
134
135 \date{December 2, 1980}
136
137 \begin{document}
138
139 % remove some of the space in the itemize to make it quite compact
140 \let\olditemize\itemize
141 \renewcommand\itemize{\olditemize\itemsep-1pt}
142
143 %% SLIDE: Title Slide
144 \begin{frame}[plain]
145   \titlepage
146
147 % pdfpc:begin
148
149 % This is the slide 1 notes.
150
151 % pdfpc:end
152 \end{frame}
153
154 %% SLIDE: Slide 2
155 \begin{frame}{A sample slide, A sample slide, A sample slide, A sample
156     slide, A sample slide, A sample slide}
157
158 A displayed formula:
159
160 \[
161   \int_{-\infty}^\infty e^{-x^2} \, dx = \sqrt{\pi}
162 \]
163
164 An itemized list:
165
166 \begin{itemize}
167   \item<1-> itemized item 1
168   \item<2-> itemized item 2
169   \item<3-> itemized item 3
170 \end{itemize}
171
172 \visible<2->{
173 \begin{tcolorbox}[title={Foo, Bar, Baz}]
174   \emph{In a right triangle, the square of hypotenuse equals
175   the sum of squares of two other sides.}
176 \end{tcolorbox}
177 }
178
179 % pdfpc:begin
180 % This is the slide 2 notes.
181 % pdfpc:end
182
183 \end{frame}
184
185 \appendix
186 \backupbegin
187
188 \begin{frame}[plain]
189 \begin{tikzpicture}[remember picture,overlay,shift={(current page.center)}]
190 \dropshadow{0}{0.7}{Example and}
191 \dropshadow{0}{-.7}{Data Appendix}
192 \end{tikzpicture}
193 \end{frame}
194
195 \begin{frame}{A sample slide}
196
197 Final Sample Slide
198 % pdfpc:begin
199 % This is the slide 3 notes.
200 % pdfpc:end
201 \end{frame}
202 \backupend
203
204 \end{document}

Benjamin Mako Hill || Want to submit a patch?