Restructure chapters, delete a bunch of words, add more words, do some things, panic...
[ipdf/sam.git] / presentation / beamerthemeuwa_eng.sty
diff --git a/presentation/beamerthemeuwa_eng.sty b/presentation/beamerthemeuwa_eng.sty
new file mode 100644 (file)
index 0000000..d78ccec
--- /dev/null
@@ -0,0 +1,160 @@
+% Copyright 2007 by Till Tantau
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License and/or
+% 2. under the GNU Public License.
+%
+% See the file doc/licenses/LICENSE for more details.
+% Modifed by CBluteau to create the UWA engineering themes
+
+\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/themes/theme/beamerthemeuwa_eng.sty,v 1.7 2007/01/28 20:48:30 tantau Exp $
+
+\def\themeoption{uwa_pagen}
+
+\DeclareOption{uwa_pagen}{\def\themeoption{uwa_pagen}}
+\DeclareOption{navmenu}{\def\themeoption{navmenu}}
+\DeclareOption{sec_navmenu}{\def\themeoption{sec_navmenu}}
+\DeclareOption{splitfooter}{\def\themeoption{splitfooter}}
+
+%\inserttotalframenumber
+\ProcessOptions
+
+\mode<presentation>
+\usefonttheme{default}
+\usecolortheme{default} 
+\useinnertheme{default}
+\useoutertheme{split}
+
+\usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{uwa_eng.png}} % need this to get the UWA format
+\setbeamertemplate{navigation symbols}{} % remove those weird naviga buttons that are hard to use at the bottom
+
+
+ \setbeamertemplate{headline}[default]
+
+% Defining the 3 UWA footline themes  %=====================================
+
+%Simplest of themes and default one, where currentframenumber / total frame number appears at bottom right
+ % Modifying the [page numbers] option offered in beamer... to get the footer page number out of the UWA orange outline. 
+  \defbeamertemplate*{footline}{uwa_pagen}
+ { 
+       \begin{beamercolorbox}[wd=0.95\textwidth,ht=1cm,right]{page number in head/foot}
+        \vskip2pt \usebeamerfont{page number}\insertframenumber{/}\inserttotalframenumber \vskip3pt
+       \end{beamercolorbox}
+ }
+ % section navigation menu appears at bottom right of each frame
+\defbeamertemplate*{footline}{navmenu}
+ {     
+   \leavevmode%
+   \@tempdimb=2.4375ex%
+  \ifnum\beamer@subsectionmax<\beamer@sectionmax%
+    \multiply\@tempdimb by\beamer@sectionmax%
+  \else%
+    \multiply\@tempdimb by\beamer@subsectionmax%
+  \fi%
+  \ifdim\@tempdimb>0pt%
+    \advance\@tempdimb by 1.125ex
+    \ifdim\@tempdimb<.47in
+      \@tempdimb=.47in%
+    \fi%
+ \begin{beamercolorbox}[wd=0.99\paperwidth,ht=\@tempdimb,right]{section in head/foot}
+   \vbox to\@tempdimb{\vfil\insertsectionnavigation{.9\textwidth}\vfil}
+      \end{beamercolorbox}
+     \fi%
+ }
+
+ %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 
+ \defbeamertemplate*{footline}{sec_navmenu}
+ { 
+       \ifnum\beamer@startpageofsection=\c@page
+        \leavevmode%
+       \@tempdimb=2.4375ex%
+       \ifnum\beamer@subsectionmax<\beamer@sectionmax%
+       \multiply\@tempdimb by\beamer@sectionmax%
+       \else%
+       \multiply\@tempdimb by\beamer@subsectionmax%
+       \fi%
+         \ifdim\@tempdimb>0pt%
+    \advance\@tempdimb by 1.125ex
+    \ifdim\@tempdimb<.47in
+      \@tempdimb=.47in%
+    \fi%
+ \begin{beamercolorbox}[wd=0.99\paperwidth,ht=\@tempdimb,right]{section in head/foot}
+   \vbox to\@tempdimb{\vfil\insertsectionnavigation{.33\textwidth}\vfil}
+      \end{beamercolorbox}
+     \fi%
+     \else % placing pge number
+      \begin{beamercolorbox}[wd=0.95\textwidth,ht=1cm,right]{page number in head/foot}
+       \vskip2pt \usebeamerfont{page number}\insertframenumber{/}\inserttotalframenumber \vskip3pt
+       \end{beamercolorbox}
+ \fi%
+ }
+  % Another custom theme with author in footline (left) and nav menu  (bottom right)... 
+ % You can place anything really in the left or right box
+ \defbeamertemplate*{footline}{splitfooter}
+ {     
+   \leavevmode%
+   \@tempdimb=2.4375ex%
+  \ifnum\beamer@subsectionmax<\beamer@sectionmax%
+    \multiply\@tempdimb by\beamer@sectionmax%
+  \else%
+    \multiply\@tempdimb by\beamer@subsectionmax%
+  \fi%
+  \ifdim\@tempdimb>0pt%
+    \advance\@tempdimb by 1.125ex
+    \ifdim\@tempdimb<.47in
+      \@tempdimb=.47in%
+    \fi%
+    \hskip5pt
+{\begin{beamercolorbox}[wd=.48\paperwidth,dp=1.125ex,leftskip=.3cm plus1fill,left]{author in head/foot}%
+     \usebeamerfont{author in head/foot}{\insertshortauthor}
+      \end{beamercolorbox}
+ \begin{beamercolorbox}[wd=.49\paperwidth,ht=\@tempdimb,right]{section in head/foot}
+   \vbox to\@tempdimb{\vfil\insertsectionnavigation{.48\textwidth}\vfil}%
+      \end{beamercolorbox}}
+     \fi%
+ }
+\setbeamertemplate{footline}[\themeoption] %apply selected theme
+
+
+%% Creating new titlepage format to avoid text going into the banner==========================================
+\defbeamertemplate*{title page}{uwa}
+{
+  \vspace{2.5cm}
+  \begin{flushleft}
+    {\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle} 
+       \vskip0pt plus 0.25fill
+     {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle} 
+       \vskip0pt plus 0.5fill
+    {\usebeamerfont{author}\insertauthor}\\
+     \vskip0pt plus 0.25fill
+  
+  \begin{columns}[totalwidth=\textwidth, t] 
+       \begin{column}{0.65\textwidth}
+               {\usebeamerfont{institute}\insertinstitute}
+       \end{column}    
+       \begin{column}[t]{0.35\textwidth}
+       \vspace{-1.25cm}
+               \begin{center}
+                       \inserttitlegraphic
+               \end{center}
+       \end{column}
+       \end{columns} 
+ \end{flushleft}
+     {\usebeamerfont{date}\insertdate} 
+    \vskip0pt plus 0.25fill
+}
+
+\setbeamertemplate{title page}[uwa]
+
+\setbeamertemplate{headline}{\vspace{0.25cm}} 
+
+
+\mode
+<all>

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