X-Git-Url: https://projects.mako.cc/source/beamer-mako/blobdiff_plain/a50dcf9fdffc22a95ebeb8b359e883386445e53c..d68fdec2bdae9f78194d6c4bfaf46f2a043007b2:/template/example.tex diff --git a/template/example.tex b/template/example.tex index 7a7ea1d..31fdd82 100644 --- a/template/example.tex +++ b/template/example.tex @@ -4,9 +4,6 @@ \usepackage{pgfpages} \input{notes.config} -\renewcommand{\rmdefault}{ugm} -\usepackage[garamond]{mathdesign} - \renewcommand{\sfdefault}{phv} \usepackage{relsize} @@ -18,21 +15,15 @@ % add tikz and a bunch of tikz foo \usepackage{tikz} \usetikzlibrary{shapes,shapes.misc,backgrounds,fit,positioning} -\tikzstyle{every picture}+=[remember picture] +\tikzstyle{every picture}+=[overlay,remember picture] % add functions to circle parts of slides (e.g., in tables) -\newcommand\marktopleft[1]{% - \tikz[overlay,remember picture] - \node (marker-#1-a) at (0,1.5ex) {};% -} +\newcommand\marktopleft[1]{\tikz \node (marker-#1-a) at (0,1.5ex) {};} \newcommand\markbottomright[1]{% - \tikz[overlay,remember picture] - \node (marker-#1-b) at (0,0) {};% - \tikz[overlay,remember picture,dashed,inner sep=3pt] - \node[violet!75,ultra thick,draw,rounded rectangle,fit=(marker-#1-a.center) (marker-#1-b.center)] {};% -} + \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)] {};}} -% add function to build a huge centered dropshadow +% 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}} @@ -42,6 +33,23 @@ }; } +% 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} @@ -132,17 +140,23 @@ \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 @@ -183,29 +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] -\begin{tikzpicture}[remember picture,overlay,shift={(current page.center)}] -\dropshadow{0}{0.7}{Example and} -\dropshadow{0}{-.7}{Data Appendix} -\end{tikzpicture} +\centertext{7em}{Example and Data Appendix} \end{frame} \begin{frame}{A sample slide} Final Sample Slide -% pdfpc:begin -% This is the slide 3 notes. -% pdfpc:end +\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