]> projects.mako.cc - beamer-mako/blobdiff - template/example.tex
promotion from assistant to associate
[beamer-mako] / template / example.tex
index f890b64d4ccb03f396ae0f97016ae3ccc86f3b46..41a4c27b982f5f266169feb2b223516a00c57a61 100644 (file)
-\documentclass[xcolor=dvipsnames]{beamer}
-
-
- \renewcommand{\rmdefault}{ugm}
- \renewcommand{\sfdefault}{phv}
-
-\usepackage[garamond]{mathdesign}
-
-\usepackage{ucs}
-\usepackage[utf8x]{inputenc}
-\usepackage[T1]{fontenc}
-\usepackage{textcomp}
+\documentclass[10pt,xcolor=dvipsnames,aspectratio=169]{beamer}
+
+\usetheme{metropolis}
+\usepackage{appendixnumberbeamer}
+
+\usepackage{pgfpages}
+\input{notes.config}
+
+\usepackage{pgfplots}
+\usepgfplotslibrary{dateplot}
+
+\usepackage{booktabs}
+\usepackage[scale=2]{ccicons}
+
+% optional metro things
+\metroset{numbering=fraction} % page numbering format
+\metroset{progressbar=foot} % progress bar in footer
+\metroset{sectionpage=none, subsectionpage=none}
+\metroset{block=fill}
+% \metroset{background=light}
+
+\setsansfont{OpenSans}[
+Path = ./fonts/OpenSans/,
+Extension = .ttf,
+UprightFont     =   *-Regular,
+BoldFont        =   *-Bold,
+ItalicFont      =   *-Italic,
+BoldItalicFont  =   *-BoldItalic
+]
+
+\setmonofont{RobotoMono}[
+Path = ./fonts/RobotoMono/,
+Extension = .ttf,
+UprightFont     =   *-Regular,
+BoldFont        =   *-Bold,
+ItalicFont      =   *-Italic,
+BoldItalicFont  =   *-BoldItalic
+]
+
+\definecolor{makopurple1}{RGB}{57,39,91}
+\definecolor{makopurple2}{RGB}{137,119,173}
+\definecolor{makopurple3}{RGB}{29,13,59}
+\definecolor{makopurple4}{RGB}{124,99,173}
+
+% \definecolor{makopurple1}{HTML}{3b255b}
+\definecolor{makogreen1}{HTML}{0b7a75}
+\definecolor{makovanilla1}{HTML}{d7c9aa}
+\definecolor{makoumber1}{HTML}{7b2d26}
+\definecolor{makowhite1}{HTML}{f0f3f5}
+
+\setbeamercolor{normal text}{fg=black, bg=white}
+\setbeamercolor{alerted text}{fg=makopurple4}
+\setbeamercolor{example text}{fg=makoumber1}
+
+\setbeamercolor{palette primary}{bg=makopurple1, fg=normal text.bg}
+\setbeamercolor{palette secondary}{bg=makogreen1,fg=normal text.bg}
+\setbeamercolor{palette tertiary}{bg=makovanilla1,fg=normal text.bg}
+\setbeamercolor{palette quaternary}{bg=makoumber1,fg=normal text.bg}
+\setbeamercolor{structure}{fg=makopurple1, bg=normal text.bg} % itemize, enumerate, etc
+\setbeamercolor{section in toc}{fg=makopurple1, bg=normal text.bg} % TOC sections
+
+% \setbeamercolor{progress bar}{fg=makopurple1}
+% \setbeamercolor{title separator}{fg=makopurple1}
+% \setbeamercolor{progress bar in head/foot}{fg=makopurple1}
+% \setbeamercolor{progress bar in section page}{fg=makopurple1}
+
+% this is a fix for a bug with XeTeX and notes pages
+% see: https://tex.stackexchange.com/questions/232168/normal-text-is-invisible-when-using-beamer-with-notes-and-xelatex
+\usepackage{ifthen}
+\makeatletter
+\def\beamer@framenotesbegin{% at beginning of slide
+  \ifthenelse{\not \boolean{metropolis@standout}}{%
+    \usebeamercolor[fg]{normal text}%
+      \gdef\beamer@noteitems{}% 
+      \gdef\beamer@notes{}%
+      
+    }{\gdef\beamer@noteitems{}%
+      \gdef\beamer@notes{}%
+    }
+}
+% redfine the notes type to clear things (working around the same bug)
+% https://tex.stackexchange.com/questions/28966/change-beamer-notes-list-type-for-in-frame-notes
+\def\beamer@setupnote{%
+  \gdef\beamer@notesactions{%
+    \beamer@outsideframenote{%
+      \beamer@atbeginnote%
+      {\normalfont%
+       \parskip 0.5em%
+      \usebeamercolor[fg]{normal text}%
+      \beamer@notes%
+      \ifx\beamer@noteitems\@empty\else
+      \beamer@noteitems%
+      \fi%
+      
+      \par}
+      \beamer@atendnote%
+    }%
+    \gdef\beamer@notesactions{}%
+  }
+}
+\makeatother
+
+\usepackage{xspace}
+\usepackage{relsize}
+
+% 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)] {};}}
+
+% 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}
+
+  }
+}
 
 % packages i use in essentially every document
 \usepackage{graphicx}
 \usepackage{url}
+% \usepackage{dcolumn}
+% \usepackage{booktabs}
 
-\usetheme[pageofpages=/,% String used between the current page and the
-                         % total page count.
-          bullet=default,% Use circles instead of squares for bullets.
-          titleline=false,% Show a line below the frame title.
-          alternativetitlepage=true,% Use the fancy title page.
-          titlepagelogo=figures/logo.pdf,% Logo for the first page.
-          %watermark=watermark-polito,% Watermark used in every page.
-          watermarkheight=100px,% Height of the watermark.
-          watermarkheightmult=4,% The watermark image is 4 times bigger
-                                % than watermarkheight.
-          ]{Torino}
-
-\usecolortheme{mako}
-\useinnertheme{rectangles}
-%\setbeamertemplate{blocks}[rounded][]
-\setbeamercolor{block title}{bg=makopurple3, fg=White}
-
-\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
-    colframe=makopurple1, %color of frame and title background
-    coltext=black, %color of body text
-    coltitle=white, %color of title text 
-    arc=0em,
-    left=0.1em,
-    right=0.1em,
-    fonttitle=\bfseries,
-    alerted/.style={coltitle=red, 
-                     colframe=gray!40},
-    example/.style={coltitle=black, 
-                     colframe=green!20,             
-                     colback=green!5},
-    }
-
+% replace footnotes with symbols instead of numbers
+\renewcommand*{\thefootnote}{\fnsymbol{footnote}}
+\usepackage{perpage}
+\MakePerPage{footnote}
 
-%\useoutertheme{infolines}
-%\usepackage[breaklinks]{hyperref}
+% \hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=makopurple1,
+%     urlcolor=Plum, unicode=true}
 
-\hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=makopurple1,
-    urlcolor=Plum, unicode=true}
-
-% create a boldface version of the header
-\setbeamerfont{frametitle}{series=\bfseries}
-\setbeamerfont{title}{series=\bfseries}
+% create a new \e{} command to make things purple and bold
+\newcommand{\e}[1]{\alert{#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}
+\newcommand{\credit}[1]{%
+  \tikz[overlay]{\node at (current page.south west)
+    [anchor=south west, yshift=3pt, xshift=2pt]
+    {\smaller \smaller {[}#1{]}};}}
 
-\institute[MIT/Harvard]{\textbf{Massachusetts Institute of Technology}\\
-  Sloan School of Management\\
-  MIT Media Lab\\
+\setlength{\parsep}{1em}
+
+\title{Presentation Title}
+\subtitle{Presentation Subtitle}
+\author[Benj. Mako Hill]{\textbf{Benjamin Mako Hill}\\
+  makohill@uw.edu}
+\institute[UW/Harvard]{\textbf{University of Washington}\\
+  Department of Communication\\
+  \emph{Associate Professor}\\
   \hspace{1pt}\\
   \textbf{Harvard University}\\
-  Berkman Center for Internet and Society}
+  Berkman Klein Center\\
+  \emph{Faculty Associate}}
 
 \date{December 2, 1980}
 
 \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]
+\begin{frame}
   \titlepage
 
-% pdfpc:begin
-% 
-% This is the slide 1 notes.
+  \tikz{\node at (current page.center) [anchor=center, yshift=-0.5in, xshift=1in]
+    {\includegraphics[width=0.25\textwidth]{figures/logo.pdf}};
+  }
 
-% pdfpc:end
+  % include version control stuff
+  \input{vc}
+  \credit{Revision:\ \VCRevision\  (\VCDateTEX)}
+\end{frame}
+
+\section{Introduction}
 
+\begin{frame}
+  \sectionpage
+
+  \note{This is an example section page.}
 \end{frame}
 
 %% SLIDE: Slide 2
@@ -115,23 +217,52 @@ An itemized list:
 \end{itemize}
 
 \visible<2->{
-\begin{tcolorbox}[title={Foo, Bar, Baz}]
+  \begin{example}
   \emph{In a right triangle, the square of hypotenuse equals
   the sum of squares of two other sides.}
-\end{tcolorbox}
+  \end{example}
 }
 
-% pdfpc:begin
-% This is the slide 2 notes.
-% pdfpc:end
+  \credit{Image credit: Shaw and Hill, 2099.}
+  \note{These are the slide 2 notes.}
+\end{frame}
+
+\begin{frame}
+  \frametitle{Short frame title}
+
+  \e{A first} paragraph.
+  
+  And then \e{a second} paragraph.
+\end{frame}
+
+\subsection{Introductory Subsection}
+
+\begin{frame}
+  \subsectionpage
 
+  \note{This is an example subsection page.}
+\end{frame}
+
+\appendix
+
+\begin{frame}[standout]
+  Example and Data Appendix
 \end{frame}
 
 \begin{frame}{A sample slide}
-% pdfpc:begin
-% This is the slide 3 notes.
-% pdfpc:end
+  Final Sample Slide
+
+  \texttt{Monospace font?}
+  
+  \note{These are the slide 4 notes.}
 \end{frame}
 
 
 \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?