1 % Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>
3 % This program can be redistributed and/or modified under the terms
4 % of the GNU Public License, version 2.
6 \newdimen\beamer@debiansidebarwidth
7 \newdimen\beamer@headheight
8 \usebeamerfont{frametitle}
9 \beamer@debiansidebarwidth=2.5\baselineskip
10 \beamer@headheight=2.5\baselineskip
13 \def\beamer@lefttext{left}
15 \DeclareOptionBeamer{hideothersubsections}[]{\beamer@nav@subsectionstyle{show/show/hide}}
16 \DeclareOptionBeamer{hideallsubsections}[]{\beamer@nav@subsectionstyle{hide}}
18 \DeclareOptionBeamer{width}{\beamer@debiansidebarwidth=#1}
19 \DeclareOptionBeamer{height}{\beamer@headheight=#1}
20 \DeclareOptionBeamer{left}{\def\beamer@debiansidebarside{left}}
21 \DeclareOptionBeamer{right}{\def\beamer@debiansidebarside{right}}
22 \ExecuteOptionsBeamer{left}
28 \ifdim\beamer@headheight>0pt
29 % if head height is 0pt, use default frame title
31 \setbeamercolor*{frametitle}{parent=debiansidebar}
33 \defbeamertemplate*{frametitle}{debiansidebar theme}
36 \vskip-\beamer@headheight%
37 \vbox to \beamer@headheight{%
39 \leftskip=-\beamer@leftmargin%
40 \advance\leftskip by0.3cm%
41 \rightskip=-\beamer@rightmargin%
42 \advance\rightskip by0.3cm plus1fil%
43 {\usebeamercolor[fg]{frametitle}\usebeamerfont{frametitle}\insertframetitle\par}%
44 {\usebeamercolor[fg]{framesubtitle}\usebeamerfont{framesubtitle}\insertframesubtitle\par}%
51 \defbeamertemplate*{headline}{debiansidebar theme}
53 \begin{beamercolorbox}[wd=\paperwidth]{frametitle}
54 \ifx\beamer@debiansidebarside\beamer@lefttext%
58 \ifdim\beamer@debiansidebarwidth>0pt%
59 \usebeamercolor[bg]{logo}%
60 \vrule width\beamer@debiansidebarwidth height \beamer@headheight%
61 \hskip-\beamer@debiansidebarwidth%
62 \hbox to \beamer@debiansidebarwidth{\hss\vbox to
63 \beamer@headheight{\vss\hbox{\color{fg}\insertlogo}\vss}\hss}%
65 \vrule width0pt height \beamer@headheight%
72 \def\beamer@debiansidebarformat#1#2#3{%
73 \begin{beamercolorbox}[wd=\beamer@debiansidebarwidth,leftskip=#1,rightskip=1ex plus1fil,vmode]{#2}
81 \defbeamertemplate*{section in debiansidebar}{debiansidebar theme}
85 \beamer@debiansidebarformat{3pt}{section in debiansidebar}{\insertsectionhead}%
89 \defbeamertemplate*{section in debiansidebar shaded}{debiansidebar theme}
93 \beamer@debiansidebarformat{3pt}{section in debiansidebar shaded}{\insertsectionhead}%
97 \defbeamertemplate*{subsection in debiansidebar}{debiansidebar theme}
99 \beamer@debiansidebarformat{5pt}{subsection in debiansidebar}{\insertsubsectionhead}%
102 \defbeamertemplate*{subsection in debiansidebar shaded}{debiansidebar theme}
104 \beamer@debiansidebarformat{5pt}{subsection in debiansidebar shaded}{\insertsubsectionhead}%
107 \defbeamertemplate*{subsubsection in debiansidebar}{debiansidebar theme}
109 \beamer@debiansidebarformat{7pt}{subsubsection in debiansidebar}{\insertsubsubsectionhead}%
112 \defbeamertemplate*{subsubsection in debiansidebar shaded}{debiansidebar theme}
114 \beamer@debiansidebarformat{7pt}{subsubsection in debiansidebar shaded}{\insertsubsubsectionhead}%
118 \ifdim\beamer@debiansidebarwidth>0pt
121 \setbeamersize{debiansidebar width \beamer@debiansidebarside=\beamer@debiansidebarwidth}
122 \defbeamertemplate*{debiansidebar \beamer@debiansidebarside}{debiansidebar theme}
124 \beamer@tempdim=\beamer@debiansidebarwidth%
125 \advance\beamer@tempdim by -6pt%
126 {\usebeamerfont{title in debiansidebar}%
129 \usebeamercolor[fg]{title in debiansidebar}%
130 \includegraphics[width=5cm]{openlogo-crop.pdf}%
131 \insertshorttitle[width=\beamer@tempdim,center,respectlinebreaks]\par%
136 \usebeamercolor[fg]{author in debiansidebar}%
137 \usebeamerfont{author in debiansidebar}%
138 \insertshortauthor[width=\beamer@tempdim,center,respectlinebreaks]\par%
141 \insertverticalnavigation{\beamer@debiansidebarwidth}%
143 \ifx\beamer@debiansidebarside\beamer@lefttext%
145 \usebeamercolor{normal text}%
146 \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
151 \ifx\beamer@debiansidebarside\beamer@lefttext%
152 \defbeamertemplate*{debiansidebar right}{debiansidebar theme}
155 \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
159 \setbeamersize{text margin left=0.5cm,text margin right=0.5cm}