Permalink
Browse files

Added a footline option, which (partially) fixes #4

  • Loading branch information...
1 parent 324dfb4 commit 7e10dbb740fa9568d857c663629e44ac3aa6468b @pbelmans committed Jun 27, 2012
View
@@ -127,7 +127,8 @@ \section{Theme options}
\toprule
\texttt{faculty=} & Every faculty can (or should) use its own header, as explained at \url{http://www.ugent.be/nl/werken/organisatie/huisstijl/kantoor/presentaties.htm} (only available to UGent members). This option needs a value, see Table~\ref{table:faculty-values} for an overview. Providing this value will only change the header, but it is related to the options \texttt{language} and \texttt{usecolours}. \\\midrule
\texttt{language=} & The official template provides both an English and a Dutch header for each faculty, the default is taken to be the \emph{Dutch version}. In case you want to use the English version, provide the option \texttt{language=english}. Remark that the default corresponds to \texttt{language=dutch}, but it is not necessary to provide this. This valued approach is written with future extension in mind. \\\midrule
- \texttt{nophotos} & If you have provided a value for \texttt{faculty=} and specify this option the pictures in the frame header will be replaced by a monochromous header with the correct faculty color. \\\midrule
+ %\texttt{nophotos} & If you have provided a value for \texttt{faculty=} and specify this option the pictures in the frame header will be replaced by a monochromous header with the correct faculty color. \\\midrule
+ \texttt{footline} \par \texttt{footline=} & Place information about the presentation in the footline. Currently this means that the author is typeset in the center, and the default is to place the institute (as provided by the \verb|\institute| macro available in \textsc{Beamer}) in the left. It is possible to pass a parameter, the only available value is \texttt{sections} in which case the current section (if any) is printed. This serves as an alternative to the navigation bar in some themes, which is ugly. All other values (including no value) are considered as the default. \\\midrule
\texttt{usecolors} & If you have provided a value for \texttt{faculty=} and specify this option the faculty color (which is featured in the header) will be used in other parts of the presentation, e.g.\ in an \texttt{alertblock}. Otherwise the standard color \texttt{ugentyellow} is used (see Section~\ref{section:colors}). \\\midrule
\texttt{framenumber} & The \texttt{framenumber} option makes sure that the number of the current frame is displayed. \\\midrule
\texttt{totalframenumber} & With \texttt{framenumber} turned on, the \texttt{totalframenumber} option makes sure that the total number of frames is displayed alongside with the current frame number.\\\bottomrule
@@ -4,11 +4,12 @@
\usetheme{UniversiteitGent}
%\usetheme[framenumber,totalframenumber]{UniversiteitGent}
%\usetheme[faculty=di,framenumber,totalframenumber]{UniversiteitGent}
-%\usetheme[faculty=we,usecolors,framenumber,totalframenumber]{UniversiteitGent}
-%\usetheme[faculty=lw,language=english,framenumber,totalframenumber]{UniversiteitGent}
+%\usetheme[footline,faculty=we,usecolors,framenumber,totalframenumber]{UniversiteitGent}
+%\usetheme[footline=sections,faculty=lw,language=english,framenumber,totalframenumber]{UniversiteitGent}
-\title{Some slides with a UGent \texttt{beamer} theme}
+\title{Slides with a UGent \texttt{beamer} theme}
\subtitle{This is a dummy subtitle}
+\institute{Department of Nonsense}
\author{Pieter Belmans}
\begin{document}
@@ -62,7 +62,11 @@
\defbeamertemplate*{footline}{ugent theme}
{%
\ifbeamer@footline
- \pgftext[bottom, left, at = \pgfpoint{0.02\paperwidth}{0.02\paperwidth}]{\insertinstitute}%
+ \ifnum\pdf@strcmp{\beamer@footlinevalue}{sections}=0
+ \pgftext[bottom, left, at = \pgfpoint{0.02\paperwidth}{0.02\paperwidth}]{\insertsectionhead}%
+ \else
+ \pgftext[bottom, left, at = \pgfpoint{0.02\paperwidth}{0.02\paperwidth}]{\insertinstitute}%
+ \fi
\pgftext[bottom, at = \pgfpoint{0.5\paperwidth}{0.02\paperwidth}]{\insertauthor}%
\fi
\ifbeamer@framenumber%
@@ -18,8 +18,10 @@
\newif\ifbeamer@usefacultycolors\beamer@usefacultycolorsfalse
\DeclareOptionBeamer{usecolors}{\beamer@usefacultycolorstrue}
-\newif\ifbeamer@footline\beamer@footlinefalse
-\DeclareOptionBeamer{footline}{\beamer@footlinetrue}
+\newif\ifbeamer@footline
+\beamer@footlinefalse
+\newcommand\beamer@footlinevalue{}
+\DeclareOptionBeamer{footline}{\beamer@footlinetrue\renewcommand\beamer@footlinevalue{#1}}
\newcommand\beamer@languagevalue{dutch}
\DeclareOptionBeamer{language}{\renewcommand\beamer@languagevalue{#1}}

0 comments on commit 7e10dbb

Please sign in to comment.