]> projects.mako.cc - beamer-mako/blobdiff - template/example.tex
promotion from assistant to associate
[beamer-mako] / template / example.tex
index 274d5036b739251f579507cb7f3c836ae11a7dfd..41a4c27b982f5f266169feb2b223516a00c57a61 100644 (file)
@@ -1,4 +1,4 @@
-\documentclass[10pt,xcolor=dvipsnames]{beamer}
+\documentclass[10pt,xcolor=dvipsnames,aspectratio=169]{beamer}
 
 \usetheme{metropolis}
 \usepackage{appendixnumberbeamer}
 \metroset{block=fill}
 % \metroset{background=light}
 
-\setsansfont{OpenSans}
-\setmonofont{Roboto}
+\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}
@@ -34,7 +49,7 @@
 \definecolor{makowhite1}{HTML}{f0f3f5}
 
 \setbeamercolor{normal text}{fg=black, bg=white}
-\setbeamercolor{alerted text}{fg=makopurple1}
+\setbeamercolor{alerted text}{fg=makopurple4}
 \setbeamercolor{example text}{fg=makoumber1}
 
 \setbeamercolor{palette primary}{bg=makopurple1, 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}
+\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
 \makeatletter
 \def\beamer@framenotesbegin{% at beginning of slide
   \ifthenelse{\not \boolean{metropolis@standout}}{%
-     \usebeamercolor[fg]{normal text}
+    \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
 
   makohill@uw.edu}
 \institute[UW/Harvard]{\textbf{University of Washington}\\
   Department of Communication\\
-  \emph{Assistant Professor}\\
+  \emph{Associate Professor}\\
   \hspace{1pt}\\
   \textbf{Harvard University}\\
   Berkman Klein Center\\
   \titlepage
 
   \tikz{\node at (current page.center) [anchor=center, yshift=-0.5in, xshift=1in]
-    {\includegraphics[width=0.35\textwidth]{figures/logo.pdf}};
+    {\includegraphics[width=0.25\textwidth]{figures/logo.pdf}};
   }
 
   % include version control stuff
 
 \section{Introduction}
 
+\begin{frame}
+  \sectionpage
+
+  \note{This is an example section page.}
+\end{frame}
+
 %% SLIDE: Slide 2
 \begin{frame}{A sample slide, A sample slide, A sample slide, A sample
     slide, A sample slide, A sample slide}
@@ -191,6 +235,14 @@ An itemized list:
   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]
@@ -199,6 +251,9 @@ An itemized list:
 
 \begin{frame}{A sample slide}
   Final Sample Slide
+
+  \texttt{Monospace font?}
+  
   \note{These are the slide 4 notes.}
 \end{frame}
 

Benjamin Mako Hill || Want to submit a patch?