Commit things
[ipdf/sam.git] / presentation / beamerthemeuwa_eng.sty
1 % Copyright 2007 by Till Tantau
2 %
3 % This file may be distributed and/or modified
4 %
5 % 1. under the LaTeX Project Public License and/or
6 % 2. under the GNU Public License.
7 %
8 % See the file doc/licenses/LICENSE for more details.
9 % Modifed by CBluteau to create the UWA engineering themes
10
11 \ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeuwa_eng.sty,v 1.7 2007/01/28 20:48:30 tantau Exp $
12
13 \def\themeoption{uwa_pagen}
14
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}}
19
20 %\inserttotalframenumber
21 \ProcessOptions
22
23  
24 \mode<presentation>
25 \usefonttheme{default}
26 \usecolortheme{default} 
27 \useinnertheme{default}
28 \useoutertheme{split}
29
30 \usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{uwa_eng.png}} % need this to get the UWA format
31  
32 \setbeamertemplate{navigation symbols}{} % remove those weird naviga buttons that are hard to use at the bottom
33
34
35  \setbeamertemplate{headline}[default]
36
37 % Defining the 3 UWA footline themes  %=====================================
38
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}
42  { 
43         \begin{beamercolorbox}[wd=0.95\textwidth,ht=1cm,right]{page number in head/foot}
44          \vskip2pt \usebeamerfont{page number}\insertframenumber{/}\inserttotalframenumber \vskip3pt
45         \end{beamercolorbox}
46  }
47  
48  % section navigation menu appears at bottom right of each frame
49 \defbeamertemplate*{footline}{navmenu}
50  {      
51    \leavevmode%
52    \@tempdimb=2.4375ex%
53   \ifnum\beamer@subsectionmax<\beamer@sectionmax%
54     \multiply\@tempdimb by\beamer@sectionmax%
55   \else%
56     \multiply\@tempdimb by\beamer@subsectionmax%
57   \fi%
58   \ifdim\@tempdimb>0pt%
59     \advance\@tempdimb by 1.125ex
60     \ifdim\@tempdimb<.47in
61       \@tempdimb=.47in%
62     \fi%
63  \begin{beamercolorbox}[wd=0.99\paperwidth,ht=\@tempdimb,right]{section in head/foot}
64    \vbox to\@tempdimb{\vfil\insertsectionnavigation{.9\textwidth}\vfil}
65       \end{beamercolorbox}
66      \fi%
67  }
68  
69
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}
72  { 
73         \ifnum\beamer@startpageofsection=\c@page
74          \leavevmode%
75         \@tempdimb=2.4375ex%
76         \ifnum\beamer@subsectionmax<\beamer@sectionmax%
77         \multiply\@tempdimb by\beamer@sectionmax%
78         \else%
79         \multiply\@tempdimb by\beamer@subsectionmax%
80         \fi%
81           \ifdim\@tempdimb>0pt%
82     \advance\@tempdimb by 1.125ex
83     \ifdim\@tempdimb<.47in
84       \@tempdimb=.47in%
85     \fi%
86  \begin{beamercolorbox}[wd=0.99\paperwidth,ht=\@tempdimb,right]{section in head/foot}
87    \vbox to\@tempdimb{\vfil\insertsectionnavigation{.33\textwidth}\vfil}
88       \end{beamercolorbox}
89      \fi%
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
93         \end{beamercolorbox}
94  \fi%
95  }
96  
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}
100  {      
101    \leavevmode%
102    \@tempdimb=2.4375ex%
103   \ifnum\beamer@subsectionmax<\beamer@sectionmax%
104     \multiply\@tempdimb by\beamer@sectionmax%
105   \else%
106     \multiply\@tempdimb by\beamer@subsectionmax%
107   \fi%
108   \ifdim\@tempdimb>0pt%
109     \advance\@tempdimb by 1.125ex
110     \ifdim\@tempdimb<.47in
111       \@tempdimb=.47in%
112     \fi%
113     \hskip5pt
114 {\begin{beamercolorbox}[wd=.48\paperwidth,dp=1.125ex,leftskip=.3cm plus1fill,left]{author in head/foot}%
115      \usebeamerfont{author in head/foot}{\insertshortauthor}
116       \end{beamercolorbox}
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}}
120      \fi%
121  }
122  
123 \setbeamertemplate{footline}[\themeoption] %apply selected theme
124
125
126 %% Creating new titlepage format to avoid text going into the banner==========================================
127 \defbeamertemplate*{title page}{uwa}
128 {
129   \vspace{2.5cm}
130   \begin{flushleft}
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
137   
138   \begin{columns}[totalwidth=\textwidth, t] 
139         \begin{column}{0.65\textwidth}
140                 {\usebeamerfont{institute}\insertinstitute}
141         \end{column}    
142         \begin{column}[t]{0.35\textwidth}
143         \vspace{-1.25cm}
144                 \begin{center}
145                         \inserttitlegraphic
146                 \end{center}
147         \end{column}
148         \end{columns} 
149  \end{flushleft}
150      {\usebeamerfont{date}\insertdate} 
151     \vskip0pt plus 0.25fill
152 }
153
154 \setbeamertemplate{title page}[uwa]
155
156 \setbeamertemplate{headline}{\vspace{0.25cm}} 
157
158
159 \mode
160 <all>

UCC git Repository :: git.ucc.asn.au