Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 329 lines (297 sloc) 14.9 KB
\documentclass[xelatex,10pt]{beamer}
\usetheme[
%%% options passed to the outer theme
% hidetitle, % hide the (short) title in the sidebar
% hideauthor, % hide the (short) author in the sidebar
% hideinstitute, % hide the (short) institute in the bottom of the sidebar
% shownavsym, % show the navigation symbols
% width=2cm, % width of the sidebar (default is 2 cm)
% hideothersubsections,% hide all subsections but the subsections in the current section
% hideallsubsections, % hide all subsections
% right % right of left position of sidebar (default is right)
]{Aalborg}
% If you want to change the colors of the various elements in the theme, edit and uncomment the following lines
% Change the bar and sidebar colors:
%\setbeamercolor{Aalborg}{fg=red!20,bg=red}
%\setbeamercolor{sidebar}{bg=red!20}
% Change the color of the structural elements:
%\setbeamercolor{structure}{fg=red}
% Change the frame title text color:
%\setbeamercolor{frametitle}{fg=blue}
% Change the normal text color background:
%\setbeamercolor{normal text}{bg=gray!10}
% ... and you can of course change a lot more - see the beamer user manual.
\usepackage{zhfontcfg}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
% ... or whatever. Note that the encoding and the font should match. If T1
% does not look nice, try deleting the line with the fontenc.
\usepackage{lmodern} %optional
% colored hyperlinks
\newcommand{\chref}[2]{%
\href{#1}{{\usebeamercolor[bg]{Aalborg}#2}}
}
\title[The Aalborg Beamer Theme]% optional, use only with long paper titles
{The Aalborg Beamer Theme}
\subtitle[v.\ 0.1.1] %optional
{v.\ 0.1.1}
\author[Dunrong Huang] % optional, use only with lots of authors
{
Dunrong Huang\\
\href{mailto:jkn@es.aau.dk}{{\tt jkn@es.aau.dk}}
}
% - Give the names in the same order as they appear in the paper.
% - Use the \inst{?} command only if the authors have different
% affiliation. See the beamer manual for an example
%specify some optional logos
\pgfdeclareimage[height=1.2cm]{mainlogo}{aau_logo.pdf} % placed in the upper left/right corner
\logo{\pgfuseimage{mainlogo}}
\pgfdeclareimage[height=0.75cm]{logo2}{tu-logo} % placed in the lower left/right corner if the \pgfuseimage{logo2} command is uncommented in the \institute command below
\institute[
% {\pgfuseimage{logo2}}\\ %insert a company or department logo
Dept.\ of Electronic Systems,\\
Aalborg University,\\
Denmark
] % optional - is placed in the bottom of the sidebar on every slide
{%
Department of Electronic Systems,\\
Aalborg University,\\
Denmark
%there must be an empty line above this line - otherwise some unwanted space is added between the university and the country (I do not know why;( )
}
\date{\today}
\begin{document}
% the titlepage
\begin{frame}[plain] % the plain option removes the sidebar and header from the title page
\titlepage
\end{frame}
%%%%%%%%%%%%%%%%
% TOC
\begin{frame}{Agenda}{}
\tableofcontents
\end{frame}
%%%%%%%%%%%%%%%%
\section{Introduction}
% motivation for creating this theme
\begin{frame}{Introduction}{}
\begin{block}{Why the Aalborg beamer theme?}
\begin{itemize}
\item<1-> In August 2010, I gave a presentation at the European Signal Processing Conference (EUSIPCO) here in Aalborg. For that purpose, I created the aausidebar beamer theme.
\item<2-> Since there was no Aalborg University (AAU) branded beamer theme, I published the theme after the conference on my website so that other researches and students at AAU could use the theme for their presentations.
\item<3-> During the last year, I have received a lot of positive feedback. To my surprise, several people not affiliated with AAU have used the theme despite the heavy AAU branding.
\item<4-> To make the theme more usable to people not affiliated with AAU, I have decided to create a new theme called Aalborg which is very similar to the aausidebar theme, but it does not come with the heavy AAU branding.
\end{itemize}
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%
\subsection{License}
% the license
\begin{frame}{Introduction}{License}
\begin{itemize}
\item The theme is provided under the GNU General Public License v. 3 (GPLv3). This basically means that you can redistribute it and/or modify it under the same license. For more information on the GPL license see \chref{http://www.gnu.org/licenses/}{http://www.gnu.org/licenses/}
\item The AAU logo is included in this documentation file. If you are not affiliated with Aalborg University, you should NOT use it. Either remove it or replace it with your own logo.
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%
\section{Installation}
% general installation instructions
\begin{frame}{Installation}
The theme consists of four files
\begin{enumerate}
\item {\tt beamerthemeAalborg.sty}
\item {\tt beamerinnerthemeAalborg.sty}
\item {\tt beamerouterthemeAalborg.sty}
\item {\tt beamercolorthemeAalborg.sty}
\end{enumerate}
The theme can either be installed for local or global use.
\pause
\begin{block}{Local Installation}
The simplest way of installing the theme is by placing the four theme files in the same folder as your presentation. When you download the theme, the four theme files are located in the {\tt local} folder.
\end{block}
\end{frame}
% general installation instructions
\begin{frame}{Installation}
\begin{block}{Global Installation}
\begin{itemize}
\item If you wish to make the theme globally available, you must put the files in your local latex directory tree. The location of the root of the local directory tree depends on the operating system and the latex distribution. On the following slides, you can read the instructions for some common setups.
\item When you download the theme, the four theme files are embedded in a directory structure (in the {\tt global} folder) ready to be copied directly to the root of your local directory tree.
\item On the following slides, we refer to this directory structure as {\tt <dirstruct>}. \alert{Note} that some parts of the directory may already exist if you have installed other packages in your local latex directory tree. If this is the case, you simply merge {\tt <dirstruct>} with your existing setup.
\end{itemize}
\end{block}
\end{frame}
\subsection{GNU/Linux}
% installation on GNU/Linux
\begin{frame}{Installation}{GNU/Linux}
\begin{block}{Ubuntu with TeX Live}
\begin{enumerate}
\item Place the {\tt <dirstruct>} in the root of your local latex directory tree. By default it is\\
{\tt \textasciitilde /texmf}\\
If the root does not exist, create it. The symbol {\tt \textasciitilde} refers to your home folder, i.e., {\tt /home/<username>}
\item In a terminal run\\
{\tt \$ texhash \textasciitilde /texmf}
\end{enumerate}
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%
\subsection{Microsoft Windows}
% installation on Microsoft Windows
\begin{frame}{Installation}{Microsoft Windows}
\begin{block}{Windows with MiKTeX}
Apparently, MiKTeX does not include a local latex directory tree by default. Therefore, you first have to create it.
\begin{enumerate}
\item To do this, create a folder {\tt <somewhere>} named, e.g., {\tt texmf}
\item Add this folder in the Roots tab of the MiKTeX Settings dialog
\item Place the {\tt <dirstruct>} in your newly created local latex directory tree\\
{\tt <somewhere>\textbackslash texmf}\\
\item Open the MiKTeX Settings dialog and click Refresh FNDB.
\end{enumerate}
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%
% installation on Microsoft Windows Cont'd
\begin{frame}{Installation}{Microsoft Windows}
\begin{block}{Windows with TeX Live}
In the advanced TeX Live Installer, you can manually change the default position of the root of the local latex directory tree. However, we assume the default position below.
\begin{enumerate}
\item Place the {\tt <dirstruct>} in your local latex directory tree\\
{\tt \%USERPROFILE\%\textbackslash texmf}\\
If it does not exist, create it. In XP {\tt \%USERPROFILE\%} is\\
{\tt c:\textbackslash Document and Settings\textbackslash<username>}\\
by default, and in Vista and above it is by default\\
{\tt c:\textbackslash Users\textbackslash<username>}
\item Open the TeX Live Manager dialog and select 'Update filename database' under 'Actions'.
\end{enumerate}
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%
\subsection{Mac OS X}
% text
\begin{frame}{Installation}{Mac OS X}
\begin{block}{Mac OS X with MacTeX}
Place the {\tt <dirstruct>} in the root of your local latex directory tree. By default it is\\
{\tt \textasciitilde /Library/texmf}\\
If the root does not exist, create it. The symbol {\tt \textasciitilde} refers to your home folder, i.e., {\tt /home/<username>}
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%
\subsection{Required Packages}
% list of required packages
\begin{frame}{Installation}{Required Packages}
Of course, you have to have the Beamer class installed. In addition, the theme loads two packages
\begin{itemize}
\item TikZ\footnote{By the way, TikZ is an awesome package for creating beautiful graphics. If you do not believe me, then have a look at these \chref{http://www.texample.net/tikz/examples/}{online examples} or the \chref{http://tug.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf}{pgf user manual}. If you want to create beautiful plots, you should use the pgfplots package which is based on TikZ.}
\item calc
\end{itemize}
These packages are very common and should therefore be included in your latex distribution.
\end{frame}
%%%%%%%%%%%%%%%%
\section{User Interface}
\subsection{Loading the Theme and Theme Options}
% list of the themes and options
\begin{frame}{User Interface}{Loading the Theme and Theme Options}
\begin{block}{The Presentation Theme}
It is very simple to load the presentation theme. Just type\\
{\tt \textbackslash usetheme[<options>]\{Aalborg\}}\\
which is exactly the same way other beamer presentation themes are loaded. The presentation theme loads the inner, outer and color Aalborg theme files and passes the {\tt <options>} on to these files.
\end{block}
\begin{block}{The Inner Theme}
You can load the inner theme directly by\\
{\tt \textbackslash useinnertheme\{Aalborg\}}\\
and it has no options.
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%
% list of the themes and options
\begin{frame}{User Interface}{Loading the Theme and Theme Options}
\begin{block}{The Outer Theme}
You can load the outer theme directly by\\
{\tt \textbackslash useoutertheme[<options>]\{Aalborg\}}\\
Currently, the theme options are
\begin{itemize}
\item {\tt hidetitle}: Hide the (short) title in the sidebar
\item {\tt hideauthor}: hide the (short) author in the sidebar
\item {\tt hideinstitute}: hide the (short) institute in the bottom of the sidebar
\item {\tt shownavsym}: show the navigation symbols
\item {\tt left} or {\tt right}: position of the sidebar (default is right)
\item {\tt width=<length>}: width of the sidebar (default is 2 cm).
\item {\tt hideothersubsections}: hide all subsections but the subsections in the current section
\item {\tt hideallsubsections}: hide all subsections
\end{itemize}
The last four options are inherited from the outer sidebar theme.
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%
% list of the themes and options
\begin{frame}{User Interface}{Loading the Theme and Theme Options}
\begin{block}{The Color Theme}
You can load the color theme directly by\\
{\tt \textbackslash usecolortheme[<options>]\{Aalborg\}}\\
and it has no options.
\end{block}
\pause
\begin{block}{The Color Element {\tt Aalborg}}
The color theme defines a new beamer color element named {\tt Aalborg} whose foreground and background colors are
\begin{itemize}
\item fg: {\usebeamercolor[fg]{Aalborg}light blue (\{rgb\}\{0.55,0.79,0.94\})}
\item bg: {\usebeamercolor[bg]{Aalborg}dark blue (\{rgb\}\{0.00,0.41,0.66\})}
\end{itemize}
Use can use these colors in the standard beamer way by using the command
{\tt \textbackslash usebeamercolor[<fg or bg>]\{Aalborg\}}. See the beamer manual for instructions.
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%
\subsection{Compilation}
% compilation
\begin{frame}{User Interface}{Compilation}
\begin{block}{Compiling Your Presentation With the Aalborg Theme}
Unlike most other beamer themes, this theme must be compiled at least \alert{three} times to make everything look right. For most other themes (including the aausidebar theme), you do not have to compile your presentation more than two times. For the Aalborg theme, the third compilation is necessary to determine the position of the circle with the current frame number and the length of the "progress bar".
\end{block}
\end{frame}
%%%%%%%%%%%%%%%%
% how to modify the theme
{\setbeamercolor{Aalborg}{fg=gray!50,bg=gray}
\setbeamercolor{sidebar}{bg=red!20}
\setbeamercolor{frametitle}{use=structure,fg=structure.fg}
\setbeamercolor{structure}{fg=red}
\setbeamercolor{normal text}{bg=gray!10}
\begin{frame}{User Interface}{Modifying the Theme}
\begin{itemize}
\item<1-> You can modify specific elements of the theme through the templates provided by the beamer class. Please refer to the beamer user manual for instructions.
\item<2-> For example, on this slide the following commands have been used
\begin{itemize}
\item Change the bar and sidebar colors:\\
{\tt \textbackslash setbeamercolor\{Aalborg\}\{fg=gray!20,bg=gray\}}
{\tt \textbackslash setbeamercolor\{sidebar\}\{bg=red!20\}}
\item Change the color of the structural elements:\\
{\tt \textbackslash setbeamercolor\{structure\}\{fg=red\}}\\
\item Change the frame title text color:
{\tt \textbackslash setbeamercolor\{frametitle\}\{use=structure, fg=structure.fg\}}
\item Change the normal text color background:
{\tt \textbackslash setbeamercolor\{normal text\}\{bg=gray!10\}}
\end{itemize}
\end{itemize}
\end{frame}}
%%%%%%%%%%%%%%%%
\section{Feedback}
\subsection{Bugs, Comments and Suggestions}
% help me iron out the bugs or give me some comment and suggestions
\begin{frame}{Feedback}{Bugs, Comments and Suggestions}
\begin{itemize}
\item<1-> There are probably still some bugs in the theme. If you should find one, then please let me know. No bug is too small!
\item<2-> Also, please contact me, if you have some exciting new ideas or just some simple usability improvements.
\end{itemize}
\end{frame}
%%%%%%%%%%%%%%%%
\subsection{Contact Information}
% contact information
\begin{frame}{Feedback}{Contact Information}
In case you have any comments, suggestions or have found a bug, please do not hesitate to contact me. You can find my contact details below.
\begin{center}
\insertauthor\\
\chref{http://kom.aau.dk/~jkn}{http://kom.aau.dk/\textasciitilde jkn}\\
Niels Jernes Vej 12, A6-302\\
9220 Aalborg
\end{center}
\end{frame}
%%%%%%%%%%%%%%%%
\end{document}