1% Copyright 2007 by Till Tantau 2% Copyright 2015 by Vedran Mileti\'c, Joseph Wright 3% 4% This file may be distributed and/or modified 5% 6% 1. under the LaTeX Project Public License and/or 7% 2. under the GNU Public License. 8% 9% See the file doc/licenses/LICENSE for more details. 10 11\mode<presentation> 12 13\setbeamercolor*{sidebar}{parent=block title} 14\setbeamercolor{local structure}{parent=sidebar} 15\setbeamercolor{section in toc}{parent=sidebar} 16 17\setbeamercolor{button}{use=structure,bg=structure.fg!50!bg,fg=white} 18 19\setbeamercolor*{title}{parent=structure} 20 21\setbeamercolor{block title alerted}{use=sidebar,fg=sidebar.fg!25!red} 22\setbeamercolor{block title example}{use=sidebar,fg=sidebar.fg!50!green} 23 24\setbeamersize{text margin left=1.5ex} 25\setbeamersize{text margin right=1.5ex} 26\setbeamersize{sidebar width left=.25\paperwidth} 27\setlength\leftmargini{0pt} 28\setlength\leftmarginii{1.5ex} 29\setlength\leftmarginiii{1.5ex} 30 31 32\newcommand\beamer@putleft[2]{% 33 \hbox to 0pt{\hss\vtop{% 34 \normalsize% 35 \@tempdima=\beamer@leftsidebar% 36 \advance\@tempdima by-3ex% 37 \hsize=\@tempdima% 38 \leftskip=0pt plus 1fill% 39 \rightskip=0pt\relax% 40 \leavevmode#1}\kern#2}% 41} 42\newenvironment{beamer@putright}{\vtop\bgroup\leavevmode}{\egroup} 43 44\defbeamertemplate*{section in toc}{inmargin} 45{\beamer@putleft{\inserttocsection\strut}{2.5ex}} 46 47\defbeamertemplate*{subsection in toc}{inmargin} 48{\leavevmode% 49 \inserttocsubsection\par\vskip.5ex} 50 51\defbeamertemplate*{subsubsection in toc}{inmargin} 52{\leavevmode% 53 \inserttocsubsubsection\par\vskip.5ex} 54 55 56\def\inserttitleindicator{} 57\def\insertauthorindicator{Who?} 58\def\insertinstituteindicator{From?} 59\def\insertdateindicator{When?} 60 61\defbeamertemplate*{title page}{inmargin} 62{ 63 \begin{block}{\inserttitleindicator} 64 \usebeamercolor[fg]{title}\usebeamerfont{title}\inserttitle\par 65 \usebeamercolor[fg]{subtitle}\usebeamerfont{subtitle}\insertsubtitle 66 \end{block} 67 \vfill 68 \ifx\insertauthor\@empty 69 \else 70 \begin{block}{\insertauthorindicator} 71 \usebeamercolor[fg]{author}\usebeamerfont{author}\insertauthor\par 72 \end{block} 73 \fi 74 \ifx\insertinstitute\@empty 75 \else 76 \begin{block}{\insertinstituteindicator} 77 \usebeamercolor[fg]{institute}\usebeamerfont{institute}\insertinstitute\par 78 \end{block} 79 \fi 80 \ifx\insertdate\@empty 81 \else 82 \begin{block}{\insertdateindicator} 83 \usebeamercolor[fg]{date}\usebeamerfont{date}\insertdate\par 84 \end{block} 85 \fi 86} 87 88\defbeamertemplate*{block begin}{inmargin} 89{ 90 \par\vskip\medskipamount% 91 \leavevmode% 92 \beamer@putleft{\normalfont{\usebeamercolor[fg]{block title}\usebeamerfont*{block title}\insertblocktitle}}{2.5ex}% 93 \beamer@putright\usebeamercolor[fg]{block body}% 94} 95\defbeamertemplate*{block end}{inmargin} 96{\endbeamer@putright\vskip\smallskipamount} 97 98\defbeamertemplate*{block alerted begin}{inmargin} 99{ 100 \par\vskip\medskipamount% 101 \leavevmode% 102 \beamer@putleft{\normalfont{\usebeamercolor[fg]{block title alerted}\usebeamerfont*{block title alerted}\insertblocktitle}}{2.5ex}% 103 \beamer@putright\usebeamercolor[fg]{block body alerted}% 104} 105\defbeamertemplate*{block alerted end}{inmargin} 106{\endbeamer@putright\vskip\smallskipamount} 107 108\defbeamertemplate*{block example begin}{inmargin} 109{ 110 \par\vskip\medskipamount% 111 \leavevmode% 112 \beamer@putleft{\normalfont{\usebeamercolor[fg]{block title example}\usebeamerfont*{block title example}\insertblocktitle}}{2.5ex}% 113 \beamer@putright\usebeamercolor[fg]{block body example}% 114} 115\defbeamertemplate*{block example end}{inmargin} 116{\endbeamer@putright\vskip\smallskipamount} 117 118\AtBeginDocument 119{ 120 \addtobeamertemplate{enumerate item}{\llap\bgroup}{\normalsize\kern1.5ex\egroup} 121 \addtobeamertemplate{enumerate subitem}{\llap\bgroup}{\normalsize\kern1.5ex\kern\leftmarginii\egroup} 122 \addtobeamertemplate{enumerate subsubitem}{\llap\bgroup}{\normalsize\kern1.5ex\kern\leftmarginii\kern\leftmarginiii\egroup} 123 \addtobeamertemplate{itemize item}{\llap\bgroup}{\normalsize\kern1.5ex\egroup} 124 \addtobeamertemplate{itemize subitem}{\llap\bgroup}{\normalsize\kern1.125ex\kern\leftmarginii\egroup} 125 \addtobeamertemplate{itemize subsubitem}{\llap\bgroup}{\small\kern0.75ex\kern\leftmarginii\kern\leftmarginiii\egroup} 126} 127 128\mode 129<all> 130