1 % Copyright 2007 by Till Tantau
3 % This file may be distributed and/or modified
5 % 1. under the LaTeX Project Public License and/or
6 % 2. under the GNU Public License.
8 % See the file doc/licenses/LICENSE for more details.
9 % Modifed by CBluteau to create the UWA engineering themes
11 \ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeuwa_eng.sty,v 1.7 2007/01/28 20:48:30 tantau Exp $
13 \def\themeoption{uwa_pagen}
15 \DeclareOption{uwa_pagen}{\def\themeoption{uwa_pagen}}
16 \DeclareOption{navmenu}{\def\themeoption{navmenu}}
17 \DeclareOption{sec_navmenu}{\def\themeoption{sec_navmenu}}
18 \DeclareOption{splitfooter}{\def\themeoption{splitfooter}}
20 %\inserttotalframenumber
25 \usefonttheme{default}
26 \usecolortheme{default}
27 \useinnertheme{default}
30 \usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{uwa_eng.png}} % need this to get the UWA format
32 \setbeamertemplate{navigation symbols}{} % remove those weird naviga buttons that are hard to use at the bottom
35 \setbeamertemplate{headline}[default]
37 % Defining the 3 UWA footline themes %=====================================
39 %Simplest of themes and default one, where currentframenumber / total frame number appears at bottom right
40 % Modifying the [page numbers] option offered in beamer... to get the footer page number out of the UWA orange outline.
41 \defbeamertemplate*{footline}{uwa_pagen}
43 \begin{beamercolorbox}[wd=0.95\textwidth,ht=1cm,right]{page number in head/foot}
44 \vskip2pt \usebeamerfont{page number}\insertframenumber{/}\inserttotalframenumber \vskip3pt
48 % section navigation menu appears at bottom right of each frame
49 \defbeamertemplate*{footline}{navmenu}
53 \ifnum\beamer@subsectionmax<\beamer@sectionmax%
54 \multiply\@tempdimb by\beamer@sectionmax%
56 \multiply\@tempdimb by\beamer@subsectionmax%
59 \advance\@tempdimb by 1.125ex
60 \ifdim\@tempdimb<.47in
63 \begin{beamercolorbox}[wd=0.99\paperwidth,ht=\@tempdimb,right]{section in head/foot}
64 \vbox to\@tempdimb{\vfil\insertsectionnavigation{.9\textwidth}\vfil}
70 %Hybrid of the 2 previous themes. When a new section commences, section menu appears at bottom otherwise you see just the page/total frame number
71 \defbeamertemplate*{footline}{sec_navmenu}
73 \ifnum\beamer@startpageofsection=\c@page
76 \ifnum\beamer@subsectionmax<\beamer@sectionmax%
77 \multiply\@tempdimb by\beamer@sectionmax%
79 \multiply\@tempdimb by\beamer@subsectionmax%
82 \advance\@tempdimb by 1.125ex
83 \ifdim\@tempdimb<.47in
86 \begin{beamercolorbox}[wd=0.99\paperwidth,ht=\@tempdimb,right]{section in head/foot}
87 \vbox to\@tempdimb{\vfil\insertsectionnavigation{.33\textwidth}\vfil}
90 \else % placing pge number
91 \begin{beamercolorbox}[wd=0.95\textwidth,ht=1cm,right]{page number in head/foot}
92 \vskip2pt \usebeamerfont{page number}\insertframenumber{/}\inserttotalframenumber \vskip3pt
97 % Another custom theme with author in footline (left) and nav menu (bottom right)...
98 % You can place anything really in the left or right box
99 \defbeamertemplate*{footline}{splitfooter}
103 \ifnum\beamer@subsectionmax<\beamer@sectionmax%
104 \multiply\@tempdimb by\beamer@sectionmax%
106 \multiply\@tempdimb by\beamer@subsectionmax%
108 \ifdim\@tempdimb>0pt%
109 \advance\@tempdimb by 1.125ex
110 \ifdim\@tempdimb<.47in
114 {\begin{beamercolorbox}[wd=.48\paperwidth,dp=1.125ex,leftskip=.3cm plus1fill,left]{author in head/foot}%
115 \usebeamerfont{author in head/foot}{\insertshortauthor}
117 \begin{beamercolorbox}[wd=.49\paperwidth,ht=\@tempdimb,right]{section in head/foot}
118 \vbox to\@tempdimb{\vfil\insertsectionnavigation{.48\textwidth}\vfil}%
119 \end{beamercolorbox}}
123 \setbeamertemplate{footline}[\themeoption] %apply selected theme
126 %% Creating new titlepage format to avoid text going into the banner==========================================
127 \defbeamertemplate*{title page}{uwa}
131 {\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}
132 \vskip0pt plus 0.25fill
133 {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}
134 \vskip0pt plus 0.5fill
135 {\usebeamerfont{author}\insertauthor}\\
136 \vskip0pt plus 0.25fill
138 \begin{columns}[totalwidth=\textwidth, t]
139 \begin{column}{0.65\textwidth}
140 {\usebeamerfont{institute}\insertinstitute}
142 \begin{column}[t]{0.35\textwidth}
150 {\usebeamerfont{date}\insertdate}
151 \vskip0pt plus 0.25fill
154 \setbeamertemplate{title page}[uwa]
156 \setbeamertemplate{headline}{\vspace{0.25cm}}