fixed location of the git revid on the titlepage
[beamer-mako] / template / example.tex
index f890b64d4ccb03f396ae0f97016ae3ccc86f3b46..0b1ff41540e5e87bc3bf94640aeee8e6516b0ad7 100644 (file)
@@ -1,20 +1,77 @@
 \documentclass[xcolor=dvipsnames]{beamer}
 
+% set up the file to create notes in the output PDFs
+\usepackage{pgfpages}
+\input{notes.config}
 
- \renewcommand{\rmdefault}{ugm}
- \renewcommand{\sfdefault}{phv}
-
-\usepackage[garamond]{mathdesign}
+\renewcommand{\sfdefault}{phv}
+\usepackage{relsize}
 
 \usepackage{ucs}
 \usepackage[utf8x]{inputenc}
 \usepackage[T1]{fontenc}
 \usepackage{textcomp}
 
+% add tikz and a bunch of tikz foo
+\usepackage{tikz}
+\usetikzlibrary{shapes,shapes.misc,backgrounds,fit,positioning}
+\tikzstyle{every picture}+=[overlay,remember picture]
+
+% add functions to circle parts of slides (e.g., in tables)
+\newcommand\marktopleft[1]{\tikz \node (marker-#1-a) at (0,1.5ex) {};}
+\newcommand\markbottomright[1]{%
+  \tikz{\node (marker-#1-b) at (0,0) {};}
+  \tikz[dashed,inner sep=3pt]{\node[violet!75,ultra thick,draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};}}
+
+% DEPRECATED function to build a huge centered dropshadow
+\newcommand\dropshadow[3]{%
+  \node[black!30!white] at (#1+0.1,#2-0.1) {
+    \scalebox{2}{\Huge \textbf{#3}}
+  };
+  \node at (#1,#2) {
+    \scalebox{2}{\Huge \e{#3}}
+  };
+}
+
+% create an empty quotetxt so we can reuse it
+\newcommand{\quotetxt}{}
+
+% more flexible non-tikz alternative with no dropshadow 
+\newlength{\centertxtlen}
+\makeatletter
+\newcommand\centertext[2]{%
+  \setlength{\centertxtlen}{#1}%
+  \setlength{\centertxtlen}{0.48\centertxtlen}%
+  {\centering
+    \fontsize{#1}{2\centertxtlen}\selectfont
+    \e{#2}
+
+  }
+}
+
+
+% add function to stop numbering appendix slides
+\newcommand{\backupbegin}{
+   \newcounter{framenumberappendix}
+   \setcounter{framenumberappendix}{\value{framenumber}}
+}
+\newcommand{\backupend}{
+   \addtocounter{framenumberappendix}{-\value{framenumber}}
+   \addtocounter{framenumber}{\value{framenumberappendix}} 
+}
+
 % packages i use in essentially every document
 \usepackage{graphicx}
 \usepackage{url}
+% \usepackage{dcolumn}
+% \usepackage{booktabs}
+
+% replace footnotes with symbols instead of numbers
+\renewcommand*{\thefootnote}{\fnsymbol{footnote}}
+\usepackage{perpage}
+\MakePerPage{footnote}
 
+%% BEAMER THEME STUFF
 \usetheme[pageofpages=/,% String used between the current page and the
                          % total page count.
           bullet=default,% Use circles instead of squares for bullets.
 \setbeamertemplate{items}[default] 
 \setbeamertemplate{blocks}[shadow=true] 
 
-
 \usepackage{tcolorbox}
 % These options will be applied to all `tcolorboxes`
 \tcbset{%
     noparskip,
-    colback=white, %background color of the box
+    colback=makopurple5, %background color of the box
     colframe=makopurple1, %color of frame and title background
     coltext=black, %color of body text
     coltitle=white, %color of title text 
 \setbeamerfont{frametitle}{series=\bfseries}
 \setbeamerfont{title}{series=\bfseries}
 
+% tweak the beamer font to make it a bit lists a bit smaller
+\setbeamerfont*{itemize/enumerate body}{size=\small}
+\setbeamerfont*{itemize/enumerate subbody}{size=\footnotesize}
+\setbeamerfont*{itemize/enumerate subsubbody}{size=\footnotesize}
+
+% indent the margins of the itemize lists a little bit
+\setlength{\leftmargin}{0pt}
+\setlength{\leftmargini}{0.7cm}
+\setlength{\leftmarginii}{0.7cm}
+
+% create a new \e{} command to make things purple and bold
+\newcommand{\e}[1]{\textcolor{makopurple1}{\textbf{#1}}}
+
 % remove the nagivation symbols
 \setbeamertemplate{navigation symbols}{}
 
 \title{Presentation Title}
 % \subtitle{Presentation Subtitle}
-\author[Benj. Mako Hill]{\textbf{Benjamin Mako Hill}\\ mako@mit.edu}
+\author[Benj. Mako Hill]{\textbf{Benjamin Mako Hill}\\ makohill@uw.edu}
 
-\institute[MIT/Harvard]{\textbf{Massachusetts Institute of Technology}\\
-  Sloan School of Management\\
-  MIT Media Lab\\
+\institute[UW/Harvard]{\textbf{University of Washington}\\
+  Department of Communication\\
+  \emph{Assistant Professor}\\
   \hspace{1pt}\\
   \textbf{Harvard University}\\
-  Berkman Center for Internet and Society}
+  Berkman Klein Center\\
+  \emph{Faculty Associate}}
 
 \date{December 2, 1980}
 
+\newcommand{\credit}[1]{%
+  \tikz[overlay]{\node at (current page.south east)
+    [anchor=south east,yshift=1.1em,xshift=0.35em]
+    {\smaller \smaller {[}#1{]}};}}
+
 \begin{document}
 
+% remove some of the space in the itemize to make it quite compact
+\let\olditemize\itemize
+\renewcommand\itemize{\olditemize\itemsep-1pt}
+
 %% SLIDE: Title Slide
 \begin{frame}[plain]
   \titlepage
 
-% pdfpc:begin
-% 
-% This is the slide 1 notes.
-
-% pdfpc:end
-
+% include version control stuff
+\input{vc}
+\tikz[overlay]{\node at (current page.south west) [anchor=south west, xshift=-4pt, yshift=-4pt]{\colorbox{makopurple1}{\color{white} \tt \smaller \smaller \smaller revision:\ \VCRevision\  (\VCDateTEX)}};} 
 \end{frame}
 
 %% SLIDE: Slide 2
@@ -121,17 +197,28 @@ An itemized list:
 \end{tcolorbox}
 }
 
-% pdfpc:begin
-% This is the slide 2 notes.
-% pdfpc:end
+\note{These are the slide 2 notes.}
+\end{frame}
+
+\appendix
+\backupbegin
 
+\begin{frame}[plain]
+\centertext{7em}{Example and Data Appendix}
 \end{frame}
 
 \begin{frame}{A sample slide}
-% pdfpc:begin
-% This is the slide 3 notes.
-% pdfpc:end
-\end{frame}
 
+Final Sample Slide
+\note{These are the slide 4 notes.}
+\end{frame}
+\backupend
 
 \end{document}
+
+%  LocalWords:  xcolor dvipsnames beamer ugm phv sep pageofpages px
+%  LocalWords:  titleline alternativetitlepage titlepagelogo Torino
+%  LocalWords:  watermarkheight watermarkheightmult bg makopurple fg
+%  LocalWords:  noparskip colback colframe coltext coltitle fonttitle
+%  LocalWords:  colorlinks linkcolor citecolor filecolor urlcolor
+%  LocalWords:  unicode frametitle subbody subsubbody

Benjamin Mako Hill || Want to submit a patch?