]> projects.mako.cc - state_of_wikimedia_research_2013/commitdiff
opening slide for the talk
authorBenjamin Mako Hill <mako@atdot.cc>
Tue, 6 Aug 2013 22:56:12 +0000 (18:56 -0400)
committerBenjamin Mako Hill <mako@atdot.cc>
Tue, 6 Aug 2013 22:56:12 +0000 (18:56 -0400)
20130809-wikimania_research.tex [new file with mode: 0644]
Makefile [new file with mode: 0644]
beamercolorthememako.sty [new file with mode: 0644]
beamerinnerthemefancy.sty [new file with mode: 0644]
beamerouterthemedecolines.sty [new file with mode: 0644]
beamerthemeTorino.sty [new file with mode: 0644]
extract-notes [new file with mode: 0755]
figures/wikimedia_projects.png [new file with mode: 0644]

diff --git a/20130809-wikimania_research.tex b/20130809-wikimania_research.tex
new file mode 100644 (file)
index 0000000..3dddda9
--- /dev/null
@@ -0,0 +1,200 @@
+\documentclass[xcolor=dvipsnames]{beamer}
+
+% set up the file to create notes in the output PDFs
+\usepackage{pgfpages}
+\input{notes.config}
+
+\renewcommand{\rmdefault}{ugm}
+\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[overlay,remember picture] 
+        \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)] {};%
+}
+
+% 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}}
+  };
+}
+
+% more flexible non-tikz alternative with no dropshadow 
+\newlength{\centertxtlen}
+\makeatletter
+\newcommand\centertext[2]{%
+  \setlength{\centertxtlen}{#1}%
+  \setlength{\centertxtlen}{0.35\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.
+          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=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 
+    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},
+    }
+
+
+%\useoutertheme{infolines}
+%\usepackage[breaklinks]{hyperref}
+
+\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}
+
+% 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}
+
+\institute[MIT/Harvard]{\textbf{Massachusetts Institute of Technology}\\
+  Sloan School of Management\\
+  MIT Media Lab\\
+  \hspace{1pt}\\
+  \textbf{Harvard University}\\
+  Berkman Center for Internet and Society}
+
+\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{tikzpicture}
+    \node at (current page.center) [xshift=-3.5cm, yshift=0.5cm, opacity=0.4]
+      {\includegraphics[height=\paperheight]{figures/wikimedia_projects.png}};
+
+
+    \node at (current page.south east)
+    [anchor=south east,text width=1.8\paperwidth,align=right,color=black]
+    {
+      {\spaceskip 0.3em%
+        \fontsize{2.5em}{2.5em}
+        \selectfont {\bf \color{makopurple4} The State of Wikimedia\\
+          Research: 2012-2013} \par}
+
+      \vspace{1em}
+
+      {\spaceskip 0.3em%
+        \fontsize{2.0em}{2.1em}
+        \selectfont {\bf \color{black} Benjamin Mako Hill\\
+          Wikimania 2013, Hong Kong\\
+          August 6, 2013} \par}
+
+    };
+  \end{tikzpicture}
+  
+  \input{vc}
+  \tikz[overlay,shift=(current page.south west)]{\node [xshift=5.6em,yshift=0.5em]{\colorbox{makopurple1}{\color{white} \tt \smaller \smaller \smaller revision:\ \VCRevision\  (\VCDateTEX)}};}
+
+\end{frame}
+
+
+
+\end{document}
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..82020c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,43 @@
+#!/usr/bin/make
+
+all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
+pdf: all
+
+%.pdf: %.tex 
+       rubber -fd $<
+       extract-notes $<
+
+# by default, we produce combined notes/slides output
+notes.config:
+       echo '\setbeameroption{show notes on second screen}' > notes.config
+
+# rules for generating notesonly
+notesonly-config:
+       echo '\setbeameroption{show only notes}' > notes.config
+notesonly: notesonly-config pdf
+
+# rules for generating slides only
+slides-config:
+       echo '' > notes.config
+slides: slides-config pdf
+
+viewpdf: all
+       evince *.pdf
+
+pdfpc: notes.config
+       pdfpc -n right *pdf
+
+spell:
+       aspell -c -t --tex-check-comments -b text.tex
+
+vc:
+       vc-git
+
+clean: 
+       rubber -d --clean *.tex
+       rm -f *.tmp
+       rm -f vc
+       rm -f notes.config
+       rm -f *.pdfpc
+
+.PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell
diff --git a/beamercolorthememako.sty b/beamercolorthememako.sty
new file mode 100644 (file)
index 0000000..d6e5fce
--- /dev/null
@@ -0,0 +1,30 @@
+% Copyright 2007 by Marco Barisione
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Public License.
+
+\mode<presentation>
+
+\definecolor{makopurple1}{RGB}{116,25,189}
+\definecolor{makopurple2}{RGB}{178,141,225}
+\definecolor{makopurple3}{RGB}{146,48,149}
+\definecolor{makopurple4}{RGB}{130,34,110}
+\definecolor{makopurple5}{RGB}{238,225,255}
+
+\setbeamercolor*{palette primary}{fg=white,bg=makopurple2}
+\setbeamercolor*{palette secondary}{fg=white,bg=makopurple3}
+\setbeamercolor*{palette tertiary}{fg=white,bg=makopurple1}
+\setbeamercolor*{palette quaternary}{fg=white,bg=makopurple1}
+
+\setbeamercolor*{titlelike}{bg=makopurple1}
+\setbeamercolor*{frametitle}{bg=white,fg=white}
+\setbeamercolor*{part title}{bg=black,fg=black}
+\setbeamercolor*{item}{fg=makopurple3}
+
+\setbeamercolor*{separation line}{}
+\setbeamercolor*{fine separation line}{}
+
+\mode
+<all>
diff --git a/beamerinnerthemefancy.sty b/beamerinnerthemefancy.sty
new file mode 100644 (file)
index 0000000..38b8353
--- /dev/null
@@ -0,0 +1,182 @@
+% Copyright 2007 by Marco Barisione
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Public License.
+
+\mode<presentation>
+
+% Use alternative title page style.
+\DeclareOptionBeamer{alternativetitlepage}[true]{\def\beamer@fancy@alternativetitlepage{#1}}
+
+% Logo to use in the alternative title page.
+\def\beamer@fancy@titlepagelogo{}
+\DeclareOptionBeamer{titlepagelogo}{\def\beamer@fancy@titlepagelogo{#1}}
+
+% Bullet shape.
+\DeclareOptionBeamer{bullet}{\def\beamer@fancy@bullet{#1}}
+
+\ExecuteOptionsBeamer{alternativetitlepage=false,bullet=square}
+\ProcessOptionsBeamer
+
+% Colors.
+\setbeamercolor*{lineup}{parent=palette primary}
+\setbeamercolor*{linemid}{parent=palette secondary}
+\setbeamercolor*{linebottom}{parent=palette tertiary}
+\setbeamercolor*{title page header}{parent=palette quaternary}
+
+% Lengths.
+\newlength{\beamer@fancy@lineup}
+\setlength{\beamer@fancy@lineup}{.025\paperheight}
+\newlength{\beamer@fancy@linemid}
+\setlength{\beamer@fancy@linemid}{.015\paperheight}
+\newlength{\beamer@fancy@linebottom}
+\setlength{\beamer@fancy@linebottom}{.01\paperheight}
+
+% Margins.
+\newlength{\beamer@fancy@normalmargin}
+\setlength{\beamer@fancy@normalmargin}{.06\paperwidth}
+\setbeamersize{text margin left=\beamer@fancy@normalmargin}
+\setbeamersize{text margin right=\beamer@fancy@normalmargin}
+\setlength\leftmargini{.6\beamer@fancy@normalmargin}
+\setlength\leftmarginii{.6\beamer@fancy@normalmargin}
+\setlength\leftmarginiii{.6\beamer@fancy@normalmargin}
+
+% Normal title page.
+\defbeamertemplate*{title page normal}{fancy theme}[1][]
+{
+  \vbox{}
+  \vfill
+  \begin{centering}
+    \begin{beamercolorbox}[wd=\paperwidth,sep=8pt,center,#1]{title page header}
+      \usebeamerfont{title}\inserttitle\par%
+      \ifx\insertsubtitle\@empty%
+      \else%
+        \vskip0.25em%
+        {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
+      \fi%     
+    \end{beamercolorbox}%
+    \vskip1em\par
+    \begin{beamercolorbox}[sep=8pt,center,#1]{author}
+      \usebeamerfont{author}\insertauthor
+    \end{beamercolorbox}
+    \begin{beamercolorbox}[sep=8pt,center,#1]{institute}
+      \usebeamerfont{institute}\insertinstitute
+    \end{beamercolorbox}
+    \begin{beamercolorbox}[sep=8pt,center,#1]{date}
+      \usebeamerfont{date}\insertdate
+    \end{beamercolorbox}\vskip0.5em
+    {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
+  \end{centering}
+  \vfill
+}
+
+% Alternative title page, you should use this in a frame with the [plain]
+% option.
+\defbeamertemplate*{title page alternative}{fancy theme}[1][]
+{
+  {\parskip0pt\offinterlineskip%
+  \hbox{\hskip-\Gm@lmargin\hbox{\vbox{%
+  \@tempdima=\textwidth\textwidth=\paperwidth\hsize=\textwidth\def\\{,}\vbox{}\vskip-1.5ex%
+    % Title.
+    \begin{beamercolorbox}[wd=\paperwidth,ht=.4\paperheight,center,#1]{title page header}
+      \usebeamerfont{title}\inserttitle\par%
+      \ifx\insertsubtitle\@empty%
+      \else%
+        \vskip0.25em%
+        {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
+      \fi%     
+      \vspace{.125\paperheight}%
+    \end{beamercolorbox}%
+    \vbox{}\vskip-\beamer@fancy@lineup%
+    \vbox{}\vskip-\beamer@fancy@linemid%
+    % First line.
+    \hbox{%
+    \begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@fancy@lineup,dp=0pt]{}%
+    \end{beamercolorbox}%
+    \begin{beamercolorbox}[wd=.8\paperwidth,ht=\beamer@fancy@lineup,dp=0pt]{lineup}%
+    \end{beamercolorbox}%
+    }%
+    \vbox{}\vskip0ex%
+    % Second line.
+    \hbox{%
+    \begin{beamercolorbox}[wd=.1\paperwidth,ht=\beamer@fancy@linemid,dp=0pt]{}%
+    \end{beamercolorbox}%
+    \begin{beamercolorbox}[wd=.9\paperwidth,ht=\beamer@fancy@linemid,dp=0pt]{linemid}%
+    \end{beamercolorbox}%
+    }%
+    % Third line.
+    \hbox{%
+    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\beamer@fancy@linebottom,dp=0pt]{}%
+    \end{beamercolorbox}%
+    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\beamer@fancy@linebottom,dp=0pt]{linebottom}%
+    \end{beamercolorbox}%
+    }%
+    \vskip0pt%
+  }}%
+  \hskip-\Gm@rmargin%
+  }}\hfil%
+  %
+  \begin{columns}
+      \ifx\beamer@fancy@titlepagelogo\@empty%
+          \column{\textwidth}
+      \else
+          \column{.5\textwidth}
+              % Logo.
+              \begin{centering}
+                  \vbox{}\vfill
+                  \includegraphics[height=.4\paperheight]{\beamer@fancy@titlepagelogo}
+                  \vfill
+              \end{centering}
+          \column{.5\textwidth}
+       \fi
+          % Authors, institute and date
+          \vskip1em\par
+          \begin{beamercolorbox}[sep=8pt,center,#1]{author}
+            \usebeamerfont{author}\insertauthor
+          \end{beamercolorbox}
+          \begin{beamercolorbox}[sep=8pt,center,#1]{institute}
+            \usebeamerfont{institute}\insertinstitute
+          \end{beamercolorbox}
+          \begin{beamercolorbox}[sep=8pt,center,#1]{date}
+            \usebeamerfont{date}\insertdate
+          \end{beamercolorbox}\vskip0.5em
+          {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
+  \end{columns}
+}
+
+\defbeamertemplate*{title page}{fancy}[1][]
+{
+  \def\beamer@fancy@truetext{true}%
+  \ifx\beamer@fancy@alternativetitlepage\beamer@fancy@truetext%
+    \usebeamertemplate{title page alternative}%
+  \else%
+    \usebeamertemplate{title page normal}%
+  \fi%
+}
+
+% Items.
+\defbeamertemplate{itemize item}{squarealt}%
+{\tiny\raise.5ex\hbox{\donotcoloroutermaths$\blacksquare$}}
+\defbeamertemplate{itemize subitem}{squarealt}%
+{\tiny\raise.4ex\hbox{\donotcoloroutermaths$\square$}}
+\defbeamertemplate{itemize subsubitem}{squarealt}%
+{\tiny\raise.3ex\hbox{\donotcoloroutermaths$\blacksquare$}}
+
+\defbeamertemplate{itemize item}{circlealt}%
+{\small\raise.2ex\hbox{\donotcoloroutermaths$\bullet$}}
+\defbeamertemplate{itemize subitem}{circlealt}%
+{\small\raise.1ex\hbox{\donotcoloroutermaths$\circ$}}
+\defbeamertemplate{itemize subsubitem}{circlealt}%
+{\scriptsize\raise.1ex\hbox{\donotcoloroutermaths$\bullet$}}
+
+\def\circletext{circle}
+\ifx\beamer@fancy@bullet\circletext
+  \setbeamertemplate{items}[circlealt]
+\else
+  \setbeamertemplate{items}[squarealt]
+\fi
+
+\mode<all>
+
diff --git a/beamerouterthemedecolines.sty b/beamerouterthemedecolines.sty
new file mode 100644 (file)
index 0000000..6979f88
--- /dev/null
@@ -0,0 +1,160 @@
+% Copyright 2007 by Marco Barisione
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Public License.
+
+\mode<presentation>
+
+% String used between the current page and the total page count.
+\def\beamer@decolines@pageofpages{/}
+\DeclareOptionBeamer{pageofpages}{\def\beamer@decolines@pageofpages{#1}}
+
+% Show a line below the frame title.
+\DeclareOptionBeamer{titleline}[true]{\def\beamer@decolines@titleline{#1}}
+
+% Image used for the watermark.
+\def\beamer@decolines@watermarkorig{}
+\DeclareOptionBeamer{watermark}{\def\beamer@decolines@watermarkorig{#1}}
+
+% Height of the watermark.
+\def\beamer@decolines@watermarkheight{100px}
+\DeclareOptionBeamer{watermarkheight}{\def\beamer@decolines@watermarkheight{#1}}
+
+% The original image height is watermarkheightmult * watermarkheight.
+\def\beamer@decolines@watermarkheightmult{1}
+\DeclareOptionBeamer{watermarkheightmult}{\def\beamer@decolines@watermarkheightmult{#1}}
+
+\ExecuteOptionsBeamer{titleline=false}
+\ProcessOptionsBeamer
+
+% Enable/disable the watermark.
+\def\watermarkon{%
+  \def\beamer@decolines@watermark{\beamer@decolines@watermarkorig}%
+}
+\def\watermarkoff{\def\beamer@decolines@watermark{}}
+
+% Initially enable the watermark.
+\watermarkon
+
+% Colors.
+\setbeamercolor*{lineup}{parent=palette primary}
+\setbeamercolor*{linemid}{parent=palette secondary}
+\setbeamercolor*{linebottom}{parent=palette tertiary}
+\setbeamercolor*{page header}{parent=titlelike}
+
+% Lengths
+\newlength{\headerheight}
+\setlength{\headerheight}{.045\paperheight}
+\newlength{\beamer@decolines@lineup}
+\setlength{\beamer@decolines@lineup}{.018\paperheight}
+\newlength{\beamer@decolines@linemid}
+\setlength{\beamer@decolines@linemid}{.015\paperheight}
+\newlength{\beamer@decolines@linebottom}
+\setlength{\beamer@decolines@linebottom}{.01\paperheight}
+
+% The height of the watermark part below the 3 bottom lines.
+\newlength{\beamer@decolines@watermarkheightbottom}
+\addtolength{\beamer@decolines@watermarkheightbottom}{\beamer@decolines@lineup}
+\addtolength{\beamer@decolines@watermarkheightbottom}{\beamer@decolines@linemid}
+\addtolength{\beamer@decolines@watermarkheightbottom}{\beamer@decolines@linebottom}
+
+% The height of the watermark part over the 3 bottom lines before shrinking.
+\newlength{\beamer@decolines@watermarkheightupperorig}
+\setlength{\beamer@decolines@watermarkheightupperorig}{\beamer@decolines@watermarkheight}
+\addtolength{\beamer@decolines@watermarkheightupperorig}{-\beamer@decolines@watermarkheightbottom}
+\multiply\beamer@decolines@watermarkheightupperorig by \beamer@decolines@watermarkheightmult
+
+% Footer.
+\defbeamertemplate*{footline}{decolines theme}
+{
+  \leavevmode%
+  % First line.
+  \hbox{%
+  \begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@decolines@lineup,dp=1.5pt]{}%
+  \end{beamercolorbox}%
+  \begin{beamercolorbox}[wd=.8\paperwidth,ht=\beamer@decolines@lineup,dp=1.5pt,right]{lineup}%
+    \usebeamerfont{palette primary}\insertframenumber{} \beamer@decolines@pageofpages{} \inserttotalframenumber%
+  \end{beamercolorbox}%
+  } %
+  % Second line.
+  \hbox{%
+  \begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@decolines@linemid,dp=0pt]{linemid}%
+  \end{beamercolorbox}%
+  } %
+  % Third line.
+  \hbox{%
+  \begin{beamercolorbox}[wd=.1\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{}%
+  \end{beamercolorbox}%
+  \begin{beamercolorbox}[wd=.9\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{linebottom}%
+  \end{beamercolorbox}%
+  }%
+  % This seems to fix some alignment problems with the watermark. It has to be
+  % always applied if you do not want to see the footer moving up and down when
+  % moving from a page with watermark to a page without or vice versa.
+  \vskip-.5px%
+  % Watermark.
+  \if\beamer@decolines@watermark\@empty\else%
+    \vskip-\beamer@decolines@watermarkheightbottom%
+    \llap{\includegraphics[height=\beamer@decolines@watermarkheightbottom,clip=true,%
+      trim=0pt 0pt 0pt \beamer@decolines@watermarkheightupperorig]{\beamer@decolines@watermark}\hskip-\paperwidth}%
+  \fi%
+}
+
+\defbeamertemplate*{headline}{decolines theme}{}
+%
+%{
+%  \leavevmode%
+%  \hbox{%
+%  \begin{beamercolorbox}[wd=\paperwidth,ht=\headerheight,dp=0pt]{page header}%
+%  \end{beamercolorbox}%
+%  } %
+%  \vskip0pt%
+%}
+
+\defbeamertemplate*{frametitle}{decolines theme}[1][left]
+{
+  \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
+  \@tempdima=\textwidth%
+  \advance\@tempdima by\beamer@leftmargin%
+  \advance\@tempdima by\beamer@rightmargin%
+  \vbox{}\vskip-.5\beamer@leftmargin%
+  \begin{beamercolorbox}[sep=.5\beamer@leftmargin,#1,wd=\the\@tempdima]{page header}
+    \usebeamerfont{frametitle}\usebeamercolor[bg]{framesubtitle}%
+    \vbox{}\vskip0ex%
+    \if@tempswa\else\csname beamer@fte#1\endcsname\fi%
+    \strut\insertframetitle\strut\par%
+    {%
+      \ifx\insertframesubtitle\@empty%
+      \else%
+      {\usebeamerfont{framesubtitle}\usebeamercolor[bg]{framesubtitle}\insertframesubtitle\strut\par}%
+      \fi
+    }%
+    \vskip-1ex%
+    \if@tempswa\else\vskip-\beamer@leftmargin\fi
+  \end{beamercolorbox}%
+  \def\beamer@decolines@truetext{true}%
+  \ifx\beamer@decolines@titleline\beamer@decolines@truetext%
+    \vskip-.5\beamer@leftmargin%
+    \begin{beamercolorbox}[wd=\textwidth,ht=.1ex,dp=0ex]{linemid}%
+    \end{beamercolorbox}%
+  \fi
+}
+
+% Frame title continuations, default
+\defbeamertemplate*{frametitle continuation}{decolines theme}{(\insertcontinuationcount)}
+
+\defbeamertemplate*{sidebar right}{decolines theme}
+{
+  \vskip.1\beamer@leftmargin%
+  \llap{\insertlogo\hskip.5\beamer@leftmargin}%
+  \vfill%
+  \if\beamer@decolines@watermark\@empty\else%
+  \llap{\includegraphics[height=\beamer@decolines@watermarkheight]{\beamer@decolines@watermark}}%
+  \vskip-\beamer@decolines@watermarkheightbottom%
+  \fi
+}
+
+\mode
+<all>
diff --git a/beamerthemeTorino.sty b/beamerthemeTorino.sty
new file mode 100644 (file)
index 0000000..5756c97
--- /dev/null
@@ -0,0 +1,26 @@
+% Copyright 2007 by Marco Barisione
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Public License.
+
+\mode<presentation>
+
+\DeclareOptionBeamer{alternativetitlepage}[true]{\PassOptionsToPackage{alternativetitlepage=#1}{beamerinnerthemefancy}}
+\DeclareOptionBeamer{titlepagelogo}{\PassOptionsToPackage{titlepagelogo=#1}{beamerinnerthemefancy}}
+\DeclareOptionBeamer{bullet}{\PassOptionsToPackage{bullet=#1}{beamerinnerthemefancy}}
+\DeclareOptionBeamer{pageofpages}{\PassOptionsToPackage{pageofpages=#1}{beamerouterthemedecolines}}
+\DeclareOptionBeamer{titleline}[true]{\PassOptionsToPackage{titleline=#1}{beamerouterthemedecolines}}
+\DeclareOptionBeamer{watermark}{\PassOptionsToPackage{watermark=#1}{beamerouterthemedecolines}}
+\DeclareOptionBeamer{watermarkheight}{\PassOptionsToPackage{watermarkheight=#1}{beamerouterthemedecolines}}
+\DeclareOptionBeamer{watermarkheightmult}{\PassOptionsToPackage{watermarkheightmult=#1}{beamerouterthemedecolines}}
+
+\ProcessOptionsBeamer
+
+\useinnertheme{fancy}
+\useoutertheme{decolines}
+\usecolortheme{mako}
+
+\mode
+<all>
diff --git a/extract-notes b/extract-notes
new file mode 100755 (executable)
index 0000000..0d11083
--- /dev/null
@@ -0,0 +1,48 @@
+#!/usr/bin/perl -w
+
+foreach $filename (@ARGV) {
+    chomp $filename;
+    open(TEXFILE, "<$filename");
+
+    $notes_filename = $filename;
+    $notes_filename =~ s/\.tex$/.pdfpc/;
+
+    $pdf_filename = $filename;
+    $pdf_filename =~ s/\.tex$/.pdf/;
+
+    open(NOTESFILE, "\>$notes_filename");
+    print NOTESFILE "[file]\n$pdf_filename\n[notes]\n";
+
+    $note_record = 0;
+    $slide_counter = 1;
+    while ($line = <TEXFILE>) {
+        # if this is a new frame
+        if ($line =~ /^\\begin\{frame\}/) {
+            $slide_counter++;
+        }
+        
+        if ($line =~ /^\% pdfpc\:end/) {
+            $note_record = 0;
+            $note_text =~ s/^\s*(.*?)\s*$/$1/;
+            print NOTESFILE "\#\#\# $slide_counter\n$note_text\n";
+        }
+        
+        # record if we're between a begin and an end
+        if ($note_record) {
+            $line_tmp = $line;
+            $line_tmp =~ s/^\%\s*//; 
+            $note_text = $note_text . $line_tmp;
+        }
+
+        # if this a new note
+        if ($line =~ /^\% pdfpc\:begin/) {
+            $note_text = "";
+            $note_record = 1;
+        }
+    }
+
+    close(TEXFILE);
+    close(NOTESFILE);
+
+}
+
diff --git a/figures/wikimedia_projects.png b/figures/wikimedia_projects.png
new file mode 100644 (file)
index 0000000..67ca39b
Binary files /dev/null and b/figures/wikimedia_projects.png differ

Benjamin Mako Hill || Want to submit a patch?