Anonymous avatar Anonymous committed 5c98ce8

*** empty log message ***

Comments (0)

Files changed (16)

base/beamerbaseauxtemplates.sty

   \end{pgfpicture}%    
 }
 
-\defbeamertemplate{background canvas}{transparent}
-{}
-
 
 \define@key{beamer@backgroundshade}{top}{\def\beamer@bgst{#1}}
 \define@key{beamer@backgroundshade}{bottom}{\def\beamer@bgsb{#1}}
       \usebeamerfont*{block title}\insertblockname%
     \end{beamercolorbox}%
     {\parskip0pt\par}%
-    \ifbeamercolorempty[bg]{block title}{}{\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip}}%
+    \ifbeamercolorempty[bg]{block title}{}{\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
     \begin{beamercolorbox}[colsep*=.75ex,vmode]{block body}\vskip-.75ex\vbox{}%
     }{\end{beamercolorbox}\vskip\smallskipamount}
   \usealertblocktemplate{%
       \usebeamerfont*{alerted block title}\insertblockname%
     \end{beamercolorbox}%
     {\parskip0pt\par}%
-    \ifbeamercolorempty[bg]{block title alerted}{}{\ifbeamercolorempty[bg]{block body alerted}{}{\nointerlineskip}}%
+    \ifbeamercolorempty[bg]{block title alerted}{}{\ifbeamercolorempty[bg]{block body alerted}{}{\nointerlineskip\vskip-0.5pt}}%
     \begin{beamercolorbox}[colsep*=.75ex,vmode]{block body alerted}\vskip-.75ex\vbox{}%
     }{\end{beamercolorbox}\vskip\smallskipamount}
   \useexampleblocktemplate{%
       \usebeamerfont*{example block title}\insertblockname%
     \end{beamercolorbox}%
     {\parskip0pt\par}%
-    \ifbeamercolorempty[bg]{block title example}{}{\ifbeamercolorempty[bg]{block body example}{}{\nointerlineskip}}%
+    \ifbeamercolorempty[bg]{block title example}{}{\ifbeamercolorempty[bg]{block body example}{}{\nointerlineskip\vskip-0.5pt}}%
     \begin{beamercolorbox}[colsep*=.75ex,vmode]{block body example}\vskip-.75ex\vbox{}%
     }{\end{beamercolorbox}\vskip\smallskipamount}
 }

base/beamerbaseboxes.sty

     \end{pgfpicture}%
   }%
   \nointerlineskip%
+  \vskip-0.5pt%
   \fi%
   \ifbmb@shadow%
     \setbox\bmb@boxshadow=\hbox{\pgfuseshading{bmb@shadow}}%
 
 fontthemes = default serif structurebold structureitalicserif structuresmallcapsserif 
 
-colorthemes = default crane albatross seahorse whale rose orchid sidebartab lily structure dove seagull
+colorthemes = default crane albatross seahorse whale rose orchid sidebartab lily structure dove seagull beetle fly
 
 layoutthemes = default infolines miniframes shadow sidebar smoothbars smoothtree split tree
 

doc/beamercolorthemeexample.tex

 \uselayouttheme[height=0pt]{sidebar}
 
 \def\albatrossname{albatross}
+\def\albatrossname{fly}
 \def\structurename{structure}
 
 \ifx\themename\structurename
   \makeatother
 \fi
 
+\ifx\themename\flyname
+  \makeatletter
+  \let\beamertemplatesolidbackgroundcolor=\@gobble
+  \makeatother
+\fi
+
 
 
 \input{beamerthemeexamplebase}

doc/beamerug-color.tex

 
 \subsection{Color Themes}
 
+In order to also show the effect of the different color themes on the
+sidebar, in the following examples the color themes are used together
+with the layout theme |sidebar|.
+
 \subsubsection{Default and Special-Purpose Color Themes}
 
 \begin{colorthemeexample}{default}
     |structure| is set to a light version of MidnightBlue
     (more precisely, 20\% red, 20\% green, and 70\% blue).  
   \end{itemize}
-  Use this theme for a no-nonsense presentation. Note, however, that
-  since this theme is loaded by default, you cannot ``reload'' it
-  after having loaded another color theme.
+  Use this theme for a no-nonsense presentation. Since this theme is
+  loaded by default, you cannot ``reload'' it after having loaded
+  another color theme.
+
+  For a detailed explanation of all the colors this theme installs by
+  default, see Section~\ref{section-color-listing}.
 \end{colorthemeexample}
 
 \begin{colorthemeexample}[\oarg{options}]{structure}
 A ``complete'' color theme is a color theme that completely specifies
 all colors for all parts of a frame. It installs specific colors and
 does not derive the colors from, say, the |structure| \beamer-color.
-Complete complete themes happen to have bird names.
+Complete complete themes happen to have names of flying animals.
 
 \begin{colorthemeexample}{albatross}
   The color theme is a ``dark'' or ``inverted'' theme using yellow on
 \end{colorthemeexample}
 
 
+\begin{colorthemeexample}{beetle}
+  The main ``theme behing this theme'' is to use white and black text
+  on gray background. The white text is used for special emphasis, the
+  black text for normal text. The gray background is, however, only
+  used in ``special places'' like theorems or blocks. For a  more
+  consequent theme that uses a gray background throughout, see the
+  |fly| theme.
+
+  Great care must be taken with this theme since both the white/gray
+  and the black/gray contrasts are much lower than with other
+  themes. Make sure that the contrast is high enough for the actual
+  presentation.
+
+  You can change the ``grayish'' background color of structural
+  elements by changing the background of the \beamer-color |structure|.
+\end{colorthemeexample}
+
+
+
 \begin{colorthemeexample}{crane}
   This theme uses the colors of the Lufthansa, whose logo is a crane.
 \end{colorthemeexample}
 \end{colorthemeexample}
 
 
+\begin{colorthemeexample}{fly}
+  This theme is somewhat similar to the |beetle| theme, it is only
+  more consequent. The downside is the even smaller contrast when
+  compared to the |beetle| theme. To change the background gray,
+  adjust the normal background color, that is, the background of the
+  \beamer-color |normal text|.
+\end{colorthemeexample}
+
+
 
 \begin{colorthemeexample}{seagull}
   Like the |dove| color theme, this theme is useful for printing on a
 changes during the presentation, the derived colors automatically also
 change.
 
+The default color theme, which is always loaded, installs numerous
+\beamer-colors and inheritance relations between them. See
+Section~\ref{section-color-listing} for details.
 
 \subsubsection{Using Beamer's Colors}
 
   all the time, at least not without a |\usebeamercolor{structure}|
   close by.
 
+  \example
+\begin{verbatim}
+  This text is {\usebeamercolor[fg]{alerted text} alerted}. The
+  following box uses the fore- and background of frametitles:
+  {
+    \usebeamercolor[fg]{frametitle}
+    \colorbox{bg}{Frame Title}
+  }
+\end{verbatim}
+  
   \articlenote
   This command has no effect in |article| mode.
 \end{command}
 
 
+\begin{command}{\ifbeamercolorempty\oarg{fg or bg}\marg{beamer-color
+      name}\marg{if undefined}\marg{if defined}}
+  This command can be used to check whether the foreground or
+  background of some \meta{beamer-color name} is non-empty. If the
+  foreground or background of \meta{beamer-color name} is defined,
+  \meta{if defined} will be executed, otherwise the \meta{if undefined} code.
+
+  \example
+\begin{verbatim}
+\ifbeamercolorempty[bg]{frametitle}
+{ % ``Transparent background''
+  \usebeamercolor[fg]{frametitle}
+  \insertframetitle
+}
+{ % Opaque background
+  \usebeamercolor[fg]{frametitle}
+  \colorbox{bg}{\insertframetitle}
+}
+\end{verbatim}
+\end{command}
+
+
+
 
 \subsubsection{Setting Beamer's Colors}
 
   punctuation symbols), but it may contain spaces. Thus, |normal text|
   is a valid \meta{beamer-color name} and so is |My Color Number 2|.
 
+  In the most simple case, you just specify a foreground by giving the
+  |fg=| option and, possibly, also a background using the |bg=|
+  option.
+
+  \example |\setbeamercolor{normal text}{fg=black,bg=mylightgrey}|
+  \example |\setbeamercolor{alerted text}{fg=red!80!black}|
+  
   The effect of this command is accumulative, thus the following two
   commands
 \begin{verbatim}
   a different value overrides a previous call.
 
   The starred version first resets everything, thereby ``switching
-  off'' the accumulative effect. Use this starred version 
-  
+  off'' the accumulative effect. Use this starred version to
+  completely reset the definition of some \beamer-color.
+
+  The following \meta{options} may be given:
+  \begin{itemize}
+  \item \declare{|fg=|\meta{color}} sets the foreground color of
+    \meta{beamer-color name} to the given (normal)   \meta{color}. The
+    \meta{color} may also be a color expression like |red!50!black|,
+    see the manual of the \textsc{xcolor} package. If \meta{color}
+    is empty, the \meta{beamer-color name} ``has no special
+    foreground'' and when the color is used, the foreground
+    currently in force should not be changed.
+
+    Specifying a foreground this way will override any inherited
+    foreground color.
+  \item  \declare{|bg=|\meta{color}} does the same as the |fg|
+    option, but for the background.
+  \item \declare{|parent=|\meta{parent beamer-color(s)}} specifies
+    that \meta{beamer-color name} should inherit from the specified
+    \meta{parent beamer-color(s)}. Any foreground and/or background
+    color set by the parents will also be used when
+    \meta{beamer-color name} is used. If multiple parents specify
+    a foreground, the last one ``wins''; and likewise for the
+    backgrounds.
+
+    \example
+\begin{verbatim}
+\setbeamercolor{father}{fg=red}
+\setbeamercolor{mother}{bg=green}
+\setbeamercolor{child}{parent={father,mother}}
+\begin{beamercolorbox}{child}
+  Terrible red on green text.
+\end{beamercolorbox}
+
+\setbeamercolor{father}{fg=blue}
+\begin{beamercolorbox}{child}
+  Now terrible blue on green text, since parent was changed.
+\end{beamercolorbox}
+\end{verbatim}
+
+    Note that a change of the foreground or background of a parent
+    changes the corresponding foreground or background of the child
+    (unless it is overruled).
+
+    A \beamer-color cannot only have parents, but also grandparents
+    and so on.
+  \item \declare{|use=|\meta{another beamer-color}} is used to
+    make sure that another \beamer-color is setup correctly before the
+    foreground or background color specification are evaluated.
+
+    Suppose you wish the foreground of items to be a mixture
+    of 50\% of the foreground of structural elements and 50\% of the
+    normal foreground color. You could try
+\begin{verbatim}
+\setbeamercolor{item}{fg=structure.fg!50!normal text.fg}
+\end{verbatim}
+    However, this will not necessarily give the desired result: If
+    the \beamer-color |structure| changes, the (normal) color
+    |structure.fg| is not immediately updated. In order to ensure
+    that the normal color |structure.fg| is correct, use the
+    following:
+\begin{verbatim}
+\setbeamercolor{item}{use={structure,normal text},fg=structure.fg!50!normal text.fg}
+\end{verbatim}
+    This will guarantee that the colors |structure.fg| and
+    |normal text.fg| are setup correctly when the foreground of
+    |item| is computed.
+
+    To show the difference, consider the following example:
+\begin{verbatim}
+\setbeamercolor{grandfather}{fg=red}
+\setbeamercolor{grandmother}{bg=white}
+\setbeamercolor{father}{parent={grandfather,grandmother}}
+\setbeamercolor{mother}{fg=black}
+{
+  \usebeamercolor{father}\usebeamercolor{mother}
+  %% Defines father.fg and mother.fg globally
+}
+\setbeamercolor{my color A}{fg=father.fg!50!mother.fg}
+\setbeamercolor{my color B}{use={father,mother},fg=father.fg!50!mother.fg}
+
+{\usebeamercolor[fg]{my color A} dark red text}
+{\usebeamercolor[fg]{my color b} also dark red text}
+
+\setbeamercolor{grandfather}{fg=green}
+
+{\usebeamercolor[fg]{my color A} still dark red text}
+{\usebeamercolor[fg]{my color b} now dark green text}
+\end{verbatim}
+  \end{itemize}
 \end{command}
 
 
 
 
 
-
-
-
-
-
-
-
-
-
 \subsection{Transparency Effects}
 \label{section-transparent}
 

doc/beamerug-customatization.tex

-
-% Copyright 2003, 2004 by Till Tantau <tantau@users.sourceforge.net>.
-%
-% This program can be redistributed and/or modified under the terms
-% of the GNU Public License, version 2.
-
-
-\section{Templates}
-
-\label{section-customization}
-
-
-
-%% \subsection{Themes}
-
-%% Just like \LaTeX\ in general, the \beamer\ class tries to separate the
-%% contents of a text from the way it is typeset (displayed). There are two ways in
-%% which you can change how a presentation is typeset: you can specify a
-%% different theme and you can specify different templates. A theme is
-%% a predefined collection of templates.
-
-%% There exist a number of different predefined themes that can be used
-%% together with the \beamer\ class. Feel free to add further themes.
-%% Themes are used by including an appropriate \LaTeX\ style file, using
-%% the standard |\usepackage| command.
-
-
-%% \begin{smallpackage}{{beamerthemebars}}
-%%   \example
-
-%%   \pgfuseimage{themebars}\quad\pgfuseimage{themebars2}
-%% \end{smallpackage}
-
-
-%% \begin{package}{{beamerthemeboxes}\opt{|[headheight=|\meta{head height}|,footheight=|\meta{foot height}|]|}}
-%%   \example
-
-%%   \pgfuseimage{themeboxes}\quad\pgfuseimage{themeboxes2}
-
-%%   \example
-%% \begin{verbatim}
-%% \usepackage[headheight=12pt,footheight=12pt]{beamerthemeboxes}
-%% \end{verbatim}
-
-%%   For this theme, you can specify an arbitrary number of templates for
-%%   the boxes in the headline and in the footline. You can add a
-%%   template for another box by using the following commands.
-%% \end{package}
-
-%% \begin{command}{\addheadboxtemplate%
-%%     \marg{background color command}\marg{box template}}
-%%   Each time this command is invoked, a new box is added to the head
-%%   line, with the first added box being shown on the left. All boxes
-%%   will have the same size.
-%%   \example
-%% \begin{verbatim}
-%% \addheadboxtemplate{\color{black}}{\color{white}\tiny\quad 1. Box}
-%% \addheadboxtemplate{\color{structure}}{\color{white}\tiny\quad 2. Box}
-%% \addheadboxtemplate{\color{structure!50}}{\color{white}\tiny\quad 3. Box}
-%% \end{verbatim}
-%% \end{command}
-
-%% \begin{command}{\addfootboxtemplate%
-%%     \marg{background color command}\marg{box template}}
-%%   \example
-%% \begin{verbatim}
-%% \addfootboxtemplate{\color{black}}{\color{white}\tiny\quad 1. Box}
-%% \addfootboxtemplate{\color{structure}}{\color{white}\tiny\quad 2. Box}
-%% \end{verbatim}
-%% \end{command}
-
-
-%% \begin{smallpackage}{{beamerthemeclassic}}
-%%   \example
-
-%%   \pgfuseimage{themeclassic}\quad\pgfuseimage{themeclassic2}
-%% \end{smallpackage}
-
-
-%% \begin{smallpackage}{{beamerthemelined}}
-%%   \example
-
-%%   \pgfuseimage{themelined}\quad\pgfuseimage{themelined2}
-%% \end{smallpackage}
-
-
-%% \begin{smallpackage}{{beamerthemeplain}}
-%%   \example
-
-%%   \pgfuseimage{themeplain}\quad\pgfuseimage{themeplain2}
-%% \end{smallpackage}
-
-
-%% \begin{package}{{beamerthemesidebar}\opt{|[width=|\meta{sidebar
-%%         width}|,dark,tab]|}}
-%%   The option |width| sets the width of the sidebar to \meta{sidebar
-%%     width}. The option |dark| makes the sidebar and the whole theme
-%%   darked. The option |tab| causes the current section or subsection to
-%%   be hilighted by changing the background behind the entry, rather
-%%   than hilighting the entry itself.
-  
-%%   \example |\usepackage{beamerthemesidebar}|
-
-%%   \pgfuseimage{themesidebar}\quad\pgfuseimage{themesidebar2}
-
-%%   \example |\usepackage[tab]{beamerthemesidebar}|
-
-%%   \pgfuseimage{themesidebartab}\quad\pgfuseimage{themesidebartab2}
-
-%%   \example |\usepackage[dark]{beamerthemesidebar}|
-
-%%   \pgfuseimage{themesidebardark}\quad\pgfuseimage{themesidebardark2}
-
-%%   \example |\usepackage[dark,tab]{beamerthemesidebar}|
-
-%%   \pgfuseimage{themesidebardarktab}\quad\pgfuseimage{themesidebardarktab2}
-%% \end{package}
-
-
-%% \begin{smallpackage}{{beamerthemeshadow}}
-%%   \example
-
-%%   \pgfuseimage{themeshadow}\quad\pgfuseimage{themeshadow2}
-%% \end{smallpackage}
-
-%% \begin{smallpackage}{{beamerthemesplit}}
-%%   \example
-
-%%   \pgfuseimage{themesplit}\quad\pgfuseimage{themesplit2}
-%% \end{smallpackage}
-
-%% \begin{smallpackage}{{beamerthemetree}}
-%%   \example
-
-%%   \pgfuseimage{themetree}\quad\pgfuseimage{themetree2}
-%% \end{smallpackage}
-
-
-%% \begin{smallpackage}{{beamerthemetree}\declare{|[bar]|}}
-%%   \example
-
-%%   \pgfuseimage{themetreebars}\quad\pgfuseimage{themetreebars2}
-%% \end{smallpackage}
-
-
-
-%\subsection{Templates}
-\label{section-templates}
-
-%\subsection{Introduction to Templates}
-
-If you only wish to modify a small part of how your presentation is
-rendered, you do not need to create a whole new theme. Instead, you
-can modify an appropriate template.
-
-A template specifies how a part of a presentation is typeset. For
-example, the frame title template dictates where the frame title is
-put, which font is used, and so on.
-
-As the name suggests, you specify a template by writing the exact
-\LaTeX\ code you would also use when typesetting a single frame title
-by hand. Only, instead of the actual title, you use the command
-|\insertframetitle|.
-
-For example, suppose we would like to have the frame title typeset in
-red, centered, and boldface. If we were to typeset a single frame
-title by hand, it might be done like this:
-\begin{verbatim}
-\begin{frame}
-  \begin{centering}
-    \color{red}
-    \textbf{The Title of This Frame.}
-    \par
-  \end{centering}
-
-  Blah, blah.
-\end{frame}
-\end{verbatim}
-
-In order to typeset the frame title in this way on all slides, we can
-change the frame title template as follows:
-\begin{verbatim}
-\useframetitletemplate{
-  \begin{centering}
-    \color{red}
-    \textbf{\insertframetitle}
-    \par
-  \end{centering}
-}
-\end{verbatim}
-
-We can then use the following code to get the desired effect:
-\begin{verbatim}
-\begin{frame}
-  \frametitle{The Title of This Frame.}
-
-  Blah, blah.
-\end{frame}
-\end{verbatim}
-
-When rendering the frame, the \beamer\ class will use the code of the
-frame title template to typeset the frame title and it will replace
-every occurrence of |\insertframetitle| by the current frame
-title.
-
-In the following subsections all commands for changing templates are
-listed, like the above-mentioned command
-|\useframetitletemplate|. Inside these commands, you should use
-the |\insertxxxx| commands, which are listed following the template
-changing commands. Although the |\insertxxxx| commands are listed
-alongside the templates for which they make the most sense, you can
-(usually) also use them in all other templates.
-
-\articlenote
-In |article| mode, most of the template mechanism is switched off and
-has no effect. However, a few templates are also available. If this is
-the case, it is specially indicated.
-\smallskip
-
-Some of the below subsections start with commands for using
-\emph{predefined} templates. Calling one of them will change a template in
-a predefined way, making it unnecessary to worry about how exactly one
-creates, say, these cute little balls in different sizes. Using them,
-you can use, for example, your favorite theme together with a
-shading background and a numbered table of contents.
-
-Here are a few hints that might be helpful when you wish to redefine a
-template: 
-\begin{itemize}
-\item
-  Usually, you might wish to copy code from an existing template. The
-  code often takes care of some things that you may not yet have
-  thought about. The file |beamerbasetemplates| might be useful
-  starting point.
-\item
-  When copying code from another template and when inserting this code
-  in the preamble of your document (not in another style file), you may
-  have to ``switch on'' the at-character (|@|). To do so, add the
-  command |\makeatletter| before the |\usexxxtemplate| command and the
-  command |\makeatother| afterward.
-\item
-  Most templates having to do with the frame components (headlines,
-  sidebars, etc.)\ can only be changed in the preamble. Other
-  templates can be changed during the document.
-\item
-  The height of the headline and footline templates is calculated
-  automatically. This is done by typesetting the templates and then
-  ``having a look'' at their heights. This recalculation is done right
-  at the beginning of the document, \emph{after} all packages have
-  been loaded and even \emph{after} these have executed their
-  |\AtBeginDocument| initialization. 
-\item
-  The left and right margins of the head- and footline templates are
-  the same as of the normal text. In order to start the headline and
-  footline at the page margin, you must insert a negative
-  horizontal skip using |\hskip-\Gm@lmargin|. You may wish to add a
-  |\hskip-\Gm@rmargin| at the end to avoid having \TeX\ complain about
-  overfull boxes.
-\item
-  Getting the boxes right inside any template is often a bit of a
-  hassle. You may wish to consult the \TeX\ book for the glorious
-  details on ``Making Boxes.'' If your headline is simple, you might
-  also try putting everything into a |pgfpicture| environment, which
-  makes the placement easier.
-\end{itemize}
-
-
-
-%% \subsection{Title Page}
-
-%% \paragraph{Predefined Templates}\ 
-
-%% \begin{command}{\beamertemplatelargetitlepage}
-%%   Causes the title page to be typeset with a large font for the title.
-%% \end{command}
-
-%% \begin{command}{\beamertemplateboldtitlepage}
-%%   Causes the title page to be typeset with a bold font for the title.
-%% \end{command}
-
-
-
-%% \paragraph{Template Installation Commands}\ 
-
-%% \begin{command}{\usetitlepagetemplate\marg{title page template}}
-%%   \example
-%% \begin{verbatim}
-%% \usetitlepagetemplate{
-%%   \vbox{}
-%%   \vfill
-%%   \begin{centering}
-%%     \Large\structure{\inserttitle}
-%%     \vskip1em\par
-%%     \normalsize\insertauthor\vskip1em\par
-%%     {\scriptsize\insertinstitute\par}\par\vskip1em
-%%     \insertdate\par\vskip1.5em
-%%     \inserttitlegraphic
-%%   \end{centering}
-%%   \vfill
-%% }
-%% \end{verbatim}
-%% \end{command}
-
-%% If you wish to suppress the head- and footline in the title page, use
-%% |\frame[plain]{\titlepage}|.
-
-
-
-
-%% \paragraph{Inserts for these Templates}\ 
-
-%% \begin{command}{\insertauthor}
-%%   Inserts the author names into a template.
-%% \end{command}
-
-%% \begin{command}{\insertdate}
-%%   Inserts the date into a template.
-%% \end{command}
-
-%% \begin{command}{\insertinstitute}
-%%   Inserts the institute into a template.
-%% \end{command}
-
-%% \begin{command}{\inserttitle}
-%%   Inserts a version of the document title into a template that is
-%%   useful for the title page. 
-%% \end{command}
-
-%% \begin{command}{\insertsubtitle}
-%%   Inserts a version of the document subtitle into a template that is
-%%   useful for the title page. 
-%% \end{command}
-
-%% \begin{command}{\inserttitlegraphic}
-%%   Inserts the title graphic into a template.
-%% \end{command}
-
-
-
-%% \subsection{Part Page}
-
-%% \label{section-part-page-template}
-
-%% \paragraph{Predefined Templates}\ 
-
-%% \begin{command}{\beamertemplatelargepartpage}
-%%   Causes the part pages to be typeset with a large font for the part name.
-%% \end{command}
-
-%% \begin{command}{\beamertemplateboldpartpage}
-%%   Causes the part pages to be typeset with a bold font for the part name.
-%% \end{command}
-
-
-%% \paragraph{Template Installation Commands}\ 
-
-%% \begin{command}{\usepartpagetemplate\marg{part page template}}
-%%   \example
-%% \begin{verbatim}
-%% \usepartpagetemplate{
-%%   \begin{centering}
-%%     \Large\structure{\partname~\insertromanpartnumber}
-%%     \vskip1em\par
-%%     \insertpart\par
-%%   \end{centering}
-%%   }
-%% \end{verbatim}
-%% \end{command}
-
-
-%% \paragraph{Inserts for these Templates}\ 
-
-%% \begin{command}{\insertpart}
-%%   Inserts the current part name.
-%% \end{command}
-
-%% \begin{command}{\insertpartnumber}
-%%   Inserts the current part number as an Arabic number into a template.
-%% \end{command}
-
-%% \begin{command}{\insertpartromannumber}
-%%   Inserts the current part number as a Roman number into a template.
-%% \end{command}
-
-
-
-%% \subsection{Frames}
-
-%% \label{section-frame-template}
-
-%% \paragraph{Template Installation Commands}\ 
-
-%% \begin{command}{\useframetemplate\marg{begin of frame}\marg{end of
-%%       frame}}
-%%   \beamernote
-%%   This command is currently \emph{not} available in the presentation
-%%   modes.
-
-%%   \articlenote
-%%   The \meta{begin of frame} text is inserted at the beginning of each
-%%   frame, when it is inserted into the article. The text \meta{end of
-%%   frame} is inserted at the end. You can use this template to put,
-%%   say, lines around a frame or to put the whole frame into  a
-%%   minipage. By default, nothing is inserted.
-  
-%%   \example
-%% \begin{verbatim}
-%% \useframetemplate{\par\medskip\hrule\smallskip}{\par\smallskip\hrule\medskip}
-%% \end{verbatim}
-%% \end{command}
-
-
-
-
-
-%% \subsection{Background}
-
-%% \label{section-backgrounds}
-
-%% \paragraph{Predefined Templates}\ 
-
-%% \begin{command}{\beamertemplatesolidbackgroundcolor\marg{color}}
-%%   Installs the given color as the background color for every frame.
-  
-%%   \example |\beamertemplatesolidbackgroundcolor{white!90!red}|
-%% \end{command}
-
-%% \begin{command}{\beamertemplateshadingbackground%
-%%     \marg{color expression page bottom}\marg{color expression page top}}
-%%   Installs a vertically shaded background such that the
-%%   specified bottom color changes smoothly to the specified top
-%%   color. \emph{Use with care: Background shadings are often
-%%     distracting!} However, a very light shading with warm colors can 
-%%   make a presentation more lively.
-%%   \example
-%% \begin{verbatim}
-%% \beamertemplateshadingbackground{red!10}{blue!10}
-%% %% Bottom is light red, top is light blue
-%% \end{verbatim}
-%% \end{command}
-
-
-%% \begin{command}{\beamertemplategridbackground\oarg{spacing}}
-%%   Installs a light grid as background with lines spaced apart by
-%%   \meta{spacing}. Default is half a centimeter.
-
-%%   \example |\beamertemplategridbackground[0.2cm]|
-%% \end{command}
-
-
-%% \paragraph{Template Installation Commands}\ 
-
-%% \begin{command}{\usebackgroundtemplate\marg{background template}}
-%%   Installs a new background template. Set the background color of
-%%   |normal text| after you have called this macro to the average color
-%%   of the background you have installed.
-%%   \example
-%% \begin{verbatim}
-%% \usebackgroundtemplate{%
-%%   \color{red}%
-%%   \vrule  height\paperheight width\paperwidth%
-%% }
-%% \setbeamercolor{normal text}{bg=red}
-%% \end{verbatim}
-%% \end{command}
-
-
-
-
-
-
-
-%% \subsection{Table of Contents}
-
-%% \label{section-toc-templates}
-
-%% %% \paragraph{Predefined Templates}\ 
-
-%% %% \begin{command}{\beamertemplateplaintoc}
-%% %%   Installs a simple table of contents template with indented subsections. 
-%% %% \end{command}
-
-%% %% \begin{command}{\beamertemplateballtoc}
-%% %%   Installs a table of contents template in which small balls are shown
-%% %%   before each section and subsection.
-%% %% \end{command}
-
-%% %% \begin{command}{\beamertemplatenumberedsectiontoc}
-%% %%   Installs a table of contents template in which the sections are
-%% %%   numbered. 
-%% %% \end{command}
-
-%% %% \begin{command}{\beamertemplatenumberedcirclesectiontoc}
-%% %%   Installs a table of contents template in which the sections are
-%% %%   numbered and the numbers are drawn on a small circle. 
-%% %% \end{command}
-
-%% %% \begin{command}{\beamertemplatenumberedballsectiontoc}
-%% %%   Installs a table of contents template in which the sections are
-%% %%   numbered and the numbers are drawn on a small ball. 
-%% %% \end{command}
-
-%% %% \begin{command}{\beamertemplatenumberedsubsectiontoc}
-%% %%   Installs a table of contents template in which the subsections are
-%% %%   numbered. 
-%% %% \end{command}
-
-
-
-%% \paragraph{Template Installation Commands}\ 
-
-%% \begin{command}{\usetemplatetocsection\oarg{mix-in specification}%
-%%     \marg{template}\opt{\marg{grayed template}}}
-%%   Installs a \meta{template} for rendering sections in the table of
-%%   contents. If the \meta{mix-in specification} is present, the
-%%   \meta{grayed template} may not be present and the grayed sections
-%%   names are obtained by mixing in the  \meta{mix-in specification}. 
-%%   If \meta{mix-in specification} is not present,  \meta{grayed
-%%     template} must be present and is used to render grayed section
-%%   names. 
-%%   \example
-%% \begin{verbatim}
-%% \usetemplatetocsection
-%% {\color{structure}\inserttocsection}
-%% {\color{structure!50}\inserttocsection}
-
-%% \usetemplatetocsection[50!averagebackgroundcolor]
-%% {\color{structure}\inserttocsection}
-%% \end{verbatim}
-%% \end{command}
-
-%% \begin{command}{\usetemplatetocsubsection\oarg{mix-in specification}%
-%%     \marg{template}\opt{\marg{grayed template}}}
-%%   See |\usetemplatetocsection|.
-%%   \example
-%% \begin{verbatim}
-%% \usetemplatetocsubsection
-%% {\leavevmode\leftskip=1.5em\color{black}\inserttocsubsection\par}
-%% {\leavevmode\leftskip=1.5em\color{black!50!white}\inserttocsubsection\par}
-
-%% \usetemplatetocsection[50!averagebackgroundcolor]
-%% {\leavevmode\leftskip=1.5em\color{black}\inserttocsubsection\par}
-%% \end{verbatim}
-%% \end{command}
-
-
-
-%% \paragraph{Inserts for these Templates}\ 
-
-%% \begin{command}{\inserttocsection}
-%%   Inserts the table of contents version of the current section name
-%%   into a template.
-%% \end{command}
-
-%% \begin{command}{\inserttocsectionnumber}
-%%   Inserts the number of the current section (in the table of contents)
-%%   into a template. 
-%% \end{command}
-
-%% \begin{command}{\inserttocsubsection}
-%%   Inserts the table of contents version of the current subsection name
-%%   into a template. 
-%% \end{command}
-
-%% \begin{command}{\inserttocsubsectionnumber}
-%%   Inserts the number of the current subsection (in the table of
-%%   contents) into a template. 
-%% \end{command}
-
-
-
-
-
-\subsection{Bibliography}
-
-\label{section-bib-templates}
-
-\paragraph{Predefined Templates}\
-
-\begin{command}{\beamertemplatetextbibitems}
-  Shows the citation text in front of references in a
-  bibliography instead of a small symbol.
-\end{command} 
-
-\begin{command}{\beamertemplatearrowbibitems}
-  Changes the symbol before references in a bibliography to
-  a small arrow.
-\end{command}
-
-\begin{command}{\beamertemplatebookbibitems}
-  Changes the symbol before references in a bibliography to
-  a small book icon.
-\end{command}
-
-\begin{command}{\beamertemplatearticlebibitems}
-  Changes the symbol before references in a bibliography to
-  a small article icon. (Default)
-\end{command}
-
-
-
-\paragraph{Template Installation Commands}\ 
-
-\begin{command}{\usebibitemtemplate\marg{citation template}}
-  Installs a template for the citation text before the entry. (The 
-  ``label'' of the item.)
-  \example |\usebibitemtemplate{\color{structure}\insertbiblabel}|
-\end{command}
-
-
-\begin{command}{\usebibliographyblocktemplate%
-    \marg{template 1}\marg{template 2}%
-    \marg{template 3}\marg{template 4}}
-  The text \meta{template~1} is inserted before the first block of the
-  entry (the first block is all text before the first occurrence of a 
-  |\newblock| command). The text \meta{template~2} is inserted before
-  the second block (the text between the first and second occurrence
-  of |\newblock|). Likewise for \meta{template~3} and \meta{template~4}. 
-
-  The templates are inserted \emph{before} the blocks and you do not
-  have access to the blocks themselves via insert commands. In the
-  following example, the first |\par| commands ensure that the
-  author, the title, and the journal are put on different lines. The
-  color commands cause the author (first block) to be typeset using
-  the theme color, the second block (title of the paper) to be typeset
-  in black, and all other lines to be typeset in a washed-out version
-  of the theme color. 
-  \example
-\begin{verbatim}
-  \usebibliographyblocktemplate
-  {\color{structure}}
-  {\par\color{black}}
-  {\par\color{structure!75}}
-  {\par\color{structure!75}}
-\end{verbatim}
-\end{command}
-
-
-\paragraph{Inserts for these Templates}\ 
-
-\begin{command}{\insertbiblabel}
-  Inserts the current citation label into a template.
-\end{command}
-
-
-
-%% \subsection{Frame Titles}
-
-%% \label{section-continuation}
-
-%% \paragraph{Predefined Templates}\
-
-%% \begin{command}{\beamertemplateboldcenterframetitle}
-%%   Typesets the frame title using a bold face and centers it.
-%% \end{command}
-
-%% \begin{command}{\beamertemplatelargeframetitle}
-%%   Typesets the frame title using a large face and flushes it left.
-%% \end{command}
-
-%% \begin{command}{\beamertemplatecontinuationroman}
-%%   Causes the text in the frame title informing that the
-%%   current frame has been broken up into several pages to be Roman
-%%   numbers. Thus if you have a frame with title ``Foo'' that is broken
-%%   up into two pages, the first page will have the title ``Foo~I'' and the
-%%   second will have ``Foo~II''. 
-%% \end{command}
-
-%% \begin{command}{\beamertemplatecontinuationtext}
-%%   Causes the text in the frame title informing that the
-%%   current frame has been broken up into several pages to be the text
-%%   |\insertcontinuationtext| on all pages but the first. This text
-%%   inserted by this insert is ``(cont.)'' by default. Thus if you have
-%%   a frame with title ``Foo'' that is broken up into two pages, the
-%%   first page will have the title ``Foo'' and the 
-%%   second will have ``Foo~(cont.)'' or ``Foo~(Forts.)'' if you have
-%%   redefined |\insertcontinuationtext| to ``(Forts.)''.
-%% \end{command}
-
-
-%% \paragraph{Template Installation Commands}\ 
-
-%% \begin{command}{\useframetitletemplate\marg{frame title template}}
-%%   \example
-%% \begin{verbatim}
-%% \useframetitletemplate{%
-%%   \begin{centering}
-%%     \structure{\textbf{\insertframetitle}}
-%%     \par
-%%     \small\structure{\textbf{\insertframesubtitle}}}
-%%     \par
-%%   \end{centering}
-%% }
-%% \end{verbatim}
-
-%%   \articlenote
-%%   This command is also available in |article| mode. By default, a new
-%%   paragraph is created. You may wish to install a template that will
-%%   simply suppress the frame title.
-%% \end{command}
-
-
-
-%% \begin{command}{\usecontinuationtemplate\marg{template}}
-%%   The \meta{template} will be added at the end of the text inserted by
-%%   the |\insertframetitle| text if a frame has the |allowframebreaks| option
-%%   set. 
-%%   \example
-%% \begin{verbatim}
-%% \usecontinuationtemplate{ \ifnum\insertcontinuationcount>1(Forts.)\fi}
-%% \end{verbatim}
-%% \end{command}
-
-
-
-%% \paragraph{Inserts for these Templates}\ 
-
-%% \begin{command}{\insertframetitle}
-%%   Inserts the current frame title into a template. If the current
-%%   frame has the option |allowframebreaks| set, at the end of this insert the
-%%   template that has been set using |\usecontinuationtemplate| will be
-%%   appended.
-%% \end{command}
-
-%% \begin{command}{\insertframesubtitle}
-%%   Inserts the current frame subtitle into a template.
-%% \end{command}
-
-%% \begin{command}{\insertcontinuationtext}
-%%   Inserts the text ``(cont.)'' into a template. Redefine this insert
-%%   if you use a different language. This insert is used by the template
-%%   installed by the command |\beamertemplatecontinuationtext|.
-%% \end{command}
-
-%% \begin{command}{\insertcontinuationcount}
-%%   Inserts which page of the current frame is currently presented. If
-%%   the |allowframebreaks| option is \emph{not} set, this number is 0.
-%% \end{command}
-
-%% \begin{command}{\insertcontinuationcountroman}
-%%   Inserts which page of the current frame is currently presented as a
-%%   Roman number.
-%% \end{command}
-
-
-
-\subsection{Headlines and Footlines}
-
-\label{section-head-templates}
-
-\paragraph{Predefined Templates}\ 
-
-\begin{command}{\beamertemplateheadempty}
-  Makes the headline empty.
-\end{command}
-
-\begin{command}{\beamertemplatefootempty}
-  Makes the footline empty.
-\end{command}
-
-\begin{command}{\beamertemplatefootpagenumber}
-  Shows only the page number in the footline.
-\end{command}
-
-
-
-\paragraph{Template Installation Commands}\ 
-
-\begin{command}{\usefoottemplate\marg{footline template}}
-  The final height of the footline is calculated by invoking this
-  template just before the beginning of the document and by setting
-  the footline height to the height of the template.
-  \example
-\begin{verbatim}
-\usefoottemplate{\hfil\tiny{\color{black!50}\insertpagenumber}}
-\end{verbatim}
-or
-\begin{verbatim}
-\usefoottemplate{%
-  \vbox{%
-    \tinycolouredline{structure!75}%
-      {\color{white}\textbf{\insertshortauthor\hfill\insertshortinstitute}}%
-    \tinycolouredline{structure}%
-      {\color{white}\textbf{\insertshorttitle}\hfill}%
-    }}
-\end{verbatim}
-\end{command}
-
-\begin{command}{\addtofoottemplate\marg{before}\marg{after}}
-  Prepends the text \meta{before} to the current foot template and
-  appends the text \meta{after}. This command is useful for adding
-  something to a foot template that is installed by some theme.
-  \example
-\begin{verbatim}
-\addtoheadtemplate
-  {\vbox\bgroup}
-  {%
-    \vskip-.5cm%
-    \includegraphics[height=.5cm]{myimage.pdf}%
-  \egroup}
-\end{verbatim}
-\end{command}
-
-
-\begin{command}{\useheadtemplate\marg{headline template}}
-  See |\usefoottemplate|.
-  \example
-\begin{verbatim}
-\useheadtemplate{%
-  \vbox{%
-  \vskip3pt%
-  \beamerline{\insertnavigation{\paperwidth}}%
-  \vskip1.5pt%
-  \insertvrule{0.4pt}{structure!50}}%
-}
-\end{verbatim}
-\end{command}
-
-\begin{command}{\addtoheadtemplate\marg{before}\marg{after}}
-  See |\addtofoottemplate|.
-\end{command}
-
-
-\paragraph{Inserts for these Templates}\ 
-
-\begin{command}{\insertframenumber}
-  Inserts the number of the current frame (not slide) into a template.
-\end{command}
-
-\begin{command}{\inserttotalframenumber}
-  Inserts the total number of the frames (not slides) into a
-  template. The number is only correct on the second run of \TeX\ on
-  your document.
-\end{command}
-
-\begin{command}{\insertlogo}
-  Inserts the logo(s) into a template.
-\end{command}
-
-\begin{command}{\insertnavigation\marg{width}}
-  Inserts a horizontal navigation bar of the given \meta{width} into a
-  template. The bar lists the sections and below them mini frames for
-  each frame in that section.
-\end{command}
-
-\begin{command}{\insertpagenumber}
-  Inserts the current page number into a template.
-\end{command}
-
-\begin{command}{\insertsection}
-  Inserts the current section into a template.
-\end{command}
-
-\begin{command}{\insertsectionnavigation\marg{width}}
-  Inserts a vertical navigation bar containing all sections, with the
-  current section hilighted.
-\end{command}
-
-\begin{command}{\insertsectionnavigationhorizontal\marg{width}%
-    \marg{left insert}\marg{right insert}}
-  Inserts a horizontal navigation bar containing all sections, with
-  the current section hilighted. The \meta{left insert} will be
-  inserted to the left of the sections, the \marg{right insert} to the
-  right. By inserting a triple fill (a
-  |filll|) you can flush the bar to the left or right.
-  \example
-\begin{verbatim}
-\insertsectionnavigationhorizontal{.5\textwidth}{\hskip0pt plus1filll}{}
-\end{verbatim}
-\end{command}
-
-\begin{command}{\insertshortauthor\oarg{options}}
-  Inserts the short version of the author into a template. The text
-  will be printed in one long line, line breaks introduced using the
-  |\\| command are suppressed.  The
-  following \meta{options} may be given:
-  \begin{itemize}
-  \item
-    \declare{|width=|\meta{width}}
-    causes the text to be put into a multi-line minipage of the given
-    size. Line breaks are still suppressed by default.
-  \item
-    \declare{|center|}
-    centers the text inside the minipage created using the |width|
-    option, rather than having it left aligned.
-  \item
-    \declare{|respectlinebreaks|}
-    causes line breaks introduced by the |\\| command to be honored.    
-  \end{itemize}
-
-  \example |\insertauthor[width={3cm},center,respectlinebreaks]|
-\end{command}
-
-\begin{command}{\insertshortdate\oarg{options}}
-  Inserts the short version of the date into a template. The same
-  options as for |\insertshortauthor| may be given. 
-\end{command}
-
-\begin{command}{\insertshortinstitute\oarg{options}}
-  Inserts the short version of the institute into a template. The same
-  options as for |\insertshortauthor| may be given. 
-\end{command}
-
-\begin{command}{\insertshortpart\oarg{options}}
-  Inserts the short version of the part name into a template. The same
-  options as for |\insertshortauthor| may be given. 
-\end{command}
-
-\begin{command}{\insertshorttitle\oarg{options}}
-  Inserts the short version of the document title into a template. Same
-  options as for |\insertshortauthor| may be given. 
-\end{command}
-
-\begin{command}{\insertshortsubtitle\oarg{options}}
-  Inserts the short version of the document subtitle. Same
-  options as for |\insertshortauthor| may be given. 
-\end{command}
-
-\begin{command}{\insertsubsection}
-  Inserts the current subsection into a template.
-\end{command}
-
-\begin{command}{\insertsubsectionnavigation\marg{width}}
-  Inserts a vertical navigation bar containing all subsections of the
-  current section, with the current subsection hilighted.
-\end{command}
-
-\begin{command}{\insertsubsectionnavigationhorizontal\marg{width}%
-    \marg{left insert}\marg{right insert}}
-  See |\insertsectionnavigationhorizontal|.
-\end{command}
-
-
-\begin{command}{\insertverticalnavigation\marg{width}}
-  Inserts a vertical navigation bar of the given \meta{width} into a
-  template. The bar shows a little table of contents. The individual
-  lines are typeset using the templates
-  |\usesectionsidetemplate| and |\usesubsectionsidetemplate|.
-\end{command}
-
-\begin{command}{\insertframestartpage}
-  Inserts the page number of the first page of the current frame.
-\end{command}
-
-\begin{command}{\insertframeendpage}
-  Inserts the page number of the last page of the current frame.
-\end{command}
-
-\begin{command}{\insertsubsectionstartpage}
-  Inserts the page number of the first page of the current subsection.
-\end{command}
-
-\begin{command}{\insertsubsectionendpage}
-  Inserts the page number of the last page of the current subsection.
-\end{command}
-
-\begin{command}{\insertsectionstartpage}
-  Inserts the page number of the first page of the current section.
-\end{command}
-
-\begin{command}{\insertsectionendpage}
-  Inserts the page number of the last page of the current section.
-\end{command}
-
-\begin{command}{\insertpartstartpage}
-  Inserts the page number of the first page of the current part.
-\end{command}
-
-\begin{command}{\insertpartendpage}
-  Inserts the page number of the last page of the current part.
-\end{command}
-
-\begin{command}{\insertpresentationstartpage}
-  Inserts the page number of the first page of the presentation.
-\end{command}
-
-\begin{command}{\insertpresentationendpage}
-  Inserts the page number of the last page of the presentation
-  (excluding the appendix).
-\end{command}
-
-
-\begin{command}{\insertappendixstartpage}
-  Inserts the page number of the first page of the appendix. If there
-  is no appendix, this number is the last page of the document.
-\end{command}
-
-\begin{command}{\insertappendixendpage}
-  Inserts the page number of the last page of the appendix. If there
-  is no appendix, this number is the last page of the document.
-\end{command}
-
-\begin{command}{\insertdocumentstartpage}
-  Inserts 1.
-\end{command}
-
-\begin{command}{\insertdocumentendpage}
-  Inserts the page number of the last page of the document (including
-  the appendix).
-\end{command}
-
-
-
-
-\subsection{Sidebars}
-
-\label{section-sidebar-templates}
-
-In the following, only the commands for the left sidebars are
-listed. Each of these commands also exists for the right sidebar,
-with ``left'' replaced by ``right'' everywhere.
-
-
-\begin{command}{\useleftsidebartemplate\marg{horizontal size}\marg{template}}
-  When the sidebar is typeset, the \meta{template} is invoked inside a
-  |\vbox| of the height of the sidebar. Thus, the below example
-  will produce a sidebar of half a centimeter width, in which the word
-  ``top'' is printed just below the headline and ``bottom'' is printed
-  just above the footline.
-  \example
-\begin{verbatim}
-\useleftsidebartemplate{1cm}{
-  top
-  \vfill
-  bottom
-}
-\end{verbatim}
-\end{command}
-
-\begin{command}{\useleftsidebarbackgroundtemplate\marg{template}}
-  The template is shown behind whatever is shown in the left side
-  bar. 
-  \example
-\begin{verbatim}
-\useleftsidebarbackgroundtemplate
-  {\color{red}\vrule height\paperheight width\beamer@leftsidebar}
-\end{verbatim}
-\end{command}
-
-
-\begin{command}{\useleftsidebarcolortemplate\marg{color expression}}
-  Uses the given color as background for the sidebar.
-  \example
-\begin{verbatim}
-\useleftsidebarcolortemplate{\color{red}}
-\useleftsidebarcolortemplate{\color[rgb]{1,0,0.5}}
-\end{verbatim}
-\end{command}
-
-\begin{command}{\useleftsidebarverticalshadingtemplate\marg{bottom
-      color expression}\marg{top color expression}}
-  Installs a smooth vertical transition between the given colors as
-  background for the sidebar.
-  \example
-\begin{verbatim}
-\useleftsidebarverticalshadingtemplate{white}{red}
-\end{verbatim}
-\end{command}
-
-
-\begin{command}{\useleftsidebarhorizontalshadingtemplate\marg{left end
-      color expression}\marg{right end color expression}}
-  Installs a smooth horizontal transition between the given colors as
-  background for the sidebar.
-  \example
-\begin{verbatim}
-\useleftsidebarhorizontalshadingtemplate{white}{red}
-\end{verbatim}
-\end{command}
-
-
-\begin{command}{\usesectionsidetemplate\marg{current section
-      template}\marg{other section template}}
-  Both parameters should be |\hbox|es. The templates are used to
-  typeset a section name inside a side navigation bar.
-  \example
-\begin{verbatim}
-\usesectionsidetemplate
-{\setbox\tempbox=\hbox{\color{black}\tiny{\kern3pt\insertsectionhead}}%
-  \ht\tempbox=8pt%
-  \dp\tempbox=2pt%
-  \wd\tempbox=\beamer@sidebarwidth%
-  \box\tempbox}
-{\setbox\tempbox=\hbox{\color{structure!75}\tiny{\kern3pt\insertsectionhead}}%
-  \ht\tempbox=8pt%
-  \dp\tempbox=2pt%
-  \wd\tempbox=\beamer@sidebarwidth%
-  \box\tempbox}
-\end{verbatim}
-\end{command}
-
-
-
-\begin{command}{\usesubsectionsidetemplate\marg{current subsection
-      template}\marg{other subsection template}}
-  See |\usesectionsidetemplate|.
-  \example
-\begin{verbatim}
-\usesectionsidetemplate
-{\setbox\tempbox=\hbox{\color{black}\tiny{\kern3pt\insertsectionhead}}%
-  \ht\tempbox=8pt%
-  \dp\tempbox=2pt%
-  \wd\tempbox=\beamer@sidebarwidth%
-  \box\tempbox}
-{\setbox\tempbox=\hbox{\color{structure!75}\tiny{\kern3pt\insertsectionhead}}%
-  \ht\tempbox=8pt%
-  \dp\tempbox=2pt%
-  \wd\tempbox=\beamer@sidebarwidth%
-  \box\tempbox}
-\end{verbatim}
-\end{command}
-
-
-
-
-
-
-
-
-
-
-\subsection{Buttons}
-\label{section-navigation-buttons}
-
-\paragraph{Predefined Templates}\ 
-
-\begin{command}{\beamertemplateoutlinebuttons}
-  Renders buttons as rectangles with rounded left and right
-  border. Only the border (outline) is painted.
-\end{command}
-
-\begin{command}{\beamertemplatesolidbuttons}
-  Renders buttons as filled rectangles with rounded left and right
-  border.
-\end{command}
-
-
-\paragraph{Template Installation Commands}\ 
-
-\begin{command}{\usebuttontemplate\marg{button template}}
-  Installs a new button template. This template is invoked whenever a
-  button should be rendered.
-  \example
-\begin{verbatim}
-\usebuttontemplate{\color{structure}\insertbuttontext}
-\end{verbatim}
-\end{command}
-
-
-\paragraph{Inserts}\ 
-
-Inside the button template, the button text can be accessed via the
-following command:
-
-\begin{command}{\insertbuttontext}
-  Inserts the text of the current button into a template. When called
-  by  button creation commands, like |\beamerskipbutton|, the symbol
-  will be part of this text.
-\end{command}
-
-The button creation commands automatically add the following three
-inserts to the text to be rendered by |\insertbuttontext|:
-
-\begin{command}{\insertgotosymbol}
-  Inserts a small right-pointing arrow.
-\end{command}
-
-\begin{command}{\insertskipsymbol}
-  Inserts a double right-pointing arrow.
-\end{command}
-
-\begin{command}{\insertreturnsymbol}
-  Inserts a small left-pointing arrow.
-\end{command}
-
-You can redefine these commands to change these symbols.
-
-
-
-
-\subsection{Navigation Bars}
-
-\paragraph{Predefined Templates}\ 
-
-\begin{command}{\beamertemplatecircleminiframe}
-  Changes the symbols in a navigation bar used to represent
-  a frame to a small circle.
-\end{command}
-
-\begin{command}{\beamertemplatecircleminiframeinverted}
-  Changes the symbols in a navigation bar used to represent
-  a frame to a small circle, but with the colors inverted. Use this if
-  the navigation bar is shown on a dark background.
-\end{command}
-
-\begin{command}{\beamertemplatesphereminiframe}
-  Changes the symbols in a navigation bar used to represent
-  a frame to a small sphere.
-\end{command}
-
-\begin{command}{\beamertemplatesphereminiframeinverted}
-  Changes the symbols in a navigation bar used to represent
-  a frame to a small sphere, but with the colors inverted. Use this if
-  the navigation bar is shown on a |structure| background.
-\end{command}
-
-\begin{command}{\beamertemplateboxminiframe}
-  Changes the symbols in a navigation bar used to represent
-  a frame to a small box.
-\end{command}
-
-\begin{command}{\beamertemplateticksminiframe}
-  Changes the symbols in a navigation bar used to represent
-  a frame to a small vertical bar of varying length.
-\end{command}
-
-
-\paragraph{Template Installation Commands}\ 
-
-\begin{command}{\usesectionheadtemplate\marg{current section
-      template}\marg{other section template}}
-  The templates are used to render the section names in a navigation
-  bar. 
-  \example
-\begin{verbatim}
-\usesectionheadtemplate
-  {\hfill\color{white}\tiny\textbf{\insertsectionheadnumber.\ \
-    \insertsectionhead}}
-  {\hfill\color{white!50!black}\tiny\textbf{\insertsectionheadnumber.\ \ 
-    \insertsectionhead}}
-\end{verbatim}
-\end{command}
-  
-
-\begin{command}{\usesubsectionheadtemplate\marg{current subsection
-      template}\marg{other subsection template}}
-  See |\usesectionheadtemplate|.
-  \example
-\begin{verbatim}
-\usesubsectionheadtemplate{\color{white}%
-  \tiny\textbf{\insertsectionheadnumber.\insertsubsectionheadnumber\ \
-  \insertsubsectionhead}}%
-  {\color{white!50!beamerstructure}%
-  \tiny\textbf{\insertsectionheadnumber.\insertsubsectionheadnumber\ \ 
-  \insertsubsectionhead}}
-\end{verbatim}
-\end{command}
-
-\begin{command}{\useminislidetemplate%
-    \marg{template current frame icon}%
-    \marg{template current subsection frame icon}\\%
-    \marg{template other frame icon}%
-    \marg{horizontal offset}%
-    \marg{vertical offset}}
-  The templates are used to draw frame icons in navigation bars. The
-  offsets describe the offset between icons.
-  \example
-\begin{verbatim}
-\useminislidetemplate
-  {
-    \color{structure}%
-    \hskip-0.4pt\vrule height\boxsize width1.2pt%
-  }  
-  {%
-    \color{structure}%
-    \vrule height\boxsize width0.4pt%
-  }
-  {%
-    \color{structure!50}%
-    \vrule height\boxsize width0.4pt%
-  }
-  {.1cm}
-  {.05cm}
-\end{verbatim}
-\end{command}
-
-
-\paragraph{Inserts}\
-
-
-\begin{command}{\insertsectionhead}
-  Inserts the text of the section that is to be typeset in a
-  navigation bar.
-\end{command}
-
-\begin{command}{\insertsubsectionhead}
-  Inserts the text of the subsection that is to be typeset in a
-  navigation bar. 
-\end{command}
-
-\begin{command}{\insertsectionheadnumber}
-  Inserts the number of the section that is to be typeset in a
-  navigation bar. 
-\end{command}
-
-\begin{command}{\insertsubsectionheadnumber}
-  Inserts the number of the subsection that is to be typeset in a
-  navigation bar. 
-\end{command}
-
-\begin{command}{\insertpartheadnumber}
-  Inserts the number of the part of the current section of subsection
-  that is to be typeset in a navigation bar. 
-\end{command}
-
-
-
-
-
-\subsection{Navigation Symbols}
-\label{section-navigation-symbols-template}
-
-\paragraph{Predefined Templates}\ 
-
-\begin{command}{\beamertemplatenavigationsymbolsempty}
-  Suppresses all navigation symbols.
-\end{command}
-
-\begin{command}{\beamertemplatenavigationsymbolsframe}
-  Shows only the frame symbol as navigation symbol.
-\end{command}
-
-\begin{command}{\beamertemplatenavigationsymbolsvertical}
-  Organizes the navigation symbols vertically.
-\end{command}
-
-\begin{command}{\beamertemplatenavigationsymbolshorizontal}
-  Organizes the navigation symbols horizontally.
-\end{command}
-
-
-
-\paragraph{Template Installation Commands}\ 
-
-\begin{command}{\usenavigationsymbolstemplate\marg{symbols template}}
-  Installs a new symbols template. This template is invoked by themes
-  at the place where the navigation symbols should be shown.
-  \example
-\begin{verbatim}
-\usenavigationsymbolstemplate{\vbox{%
-  \hbox{\insertslidenavigationsymbol}
-  \hbox{\insertframenavigationsymbol}
-  \hbox{\insertsubsectionnavigationsymbol}
-  \hbox{\insertsectionnavigationsymbol}
-  \hbox{\insertdocnavigationsymbol}
-  \hbox{\insertbackfindforwardnavigationsymbol}}}
-\end{verbatim}
-\end{command}
-
-
-\paragraph{Inserts for these Templates}\ 
-
-The following inserts are useful for the navigation symbols template:
-
-\begin{command}{\insertslidenavigationsymbol}
-  Inserts the slide navigation symbol, see
-  Section~\ref{section-navigation-symbols}.
-\end{command}
-
-\begin{command}{\insertframenavigationsymbol}
-  Inserts the frame navigation symbol, see
-  Section~\ref{section-navigation-symbols}.
-\end{command}
-
-\begin{command}{\insertsubsectionnavigationsymbol}
-  Inserts the subsection navigation symbol, see
-  Section~\ref{section-navigation-symbols}.
-\end{command}
-
-\begin{command}{\insertsectionnavigationsymbol}
-  Inserts the section navigation symbol, see
-  Section~\ref{section-navigation-symbols}.
-\end{command}
-
-\begin{command}{\insertdocnavigationsymbol}
-  Inserts the presentation navigation symbol and (if necessary) the
-  appendix navigation symbol, see
-  Section~\ref{section-navigation-symbols}.
-\end{command}
-
-\begin{command}{\insertbackfindforwardnavigationsymbol}
-  Inserts a back, a find, and a forward navigation symbol, see
-  Section~\ref{section-navigation-symbols}.
-\end{command}
-
-
-
-
-
-\subsection{Footnotes}
-
-\label{section-templates-footnotes}
-
-\paragraph{Template Installation Commands}\
-
-\begin{command}{\usefootnotetemplate\marg{footnote template}}
-  \example
-\begin{verbatim}
-\usefootnotetemplate{
-  \parindent 1em
-  \noindent
-  \hbox to 1.8em{\hfil\insertfootnotemark}\insertfootnotetext}
-\end{verbatim}
-\end{command}
-
-
-\paragraph{Inserts for these Templates}\
-
-\begin{command}{\insertfootnotemark}
-  Inserts the current footnote mark (like a raised number) into a
-  template. 
-\end{command}
-
-\begin{command}{\insertfootnotetext}
-  Inserts the current footnote text into a template. 
-\end{command}
-
-
-
-
-
-\subsection{Captions}
-\label{section-template-caption}
-
-\paragraph{Predefined Templates}\
-
-\begin{command}{\beamertemplatecaptionwithnumber}
-  Changes the caption template such that the number of the
-  table or figure is also shown.
-\end{command}
-
-\begin{command}{\beamertemplatecaptionownline}
-  Changes the caption template such that the word ``Table''
-  or ``Figure'' has its own line.
-\end{command}
-
-
-
-\paragraph{Template Installation Commands}\
-
-\begin{command}{\usecaptiontemplate\marg{caption template}}
-  \example
-\begin{verbatim}
-\usecaptiontemplate{
-  \small
-  \structure{\insertcaptionname~\insertcaptionnumber:}
-  \insertcaption
-}
-\end{verbatim}
-\end{command}
-
-
-
-\paragraph{Inserts for these Templates}\
- 
-\begin{command}{\insertcaption}
-  Inserts the text of the current caption into a template.
-\end{command}
-
-\begin{command}{\insertcaptionname}
-  Inserts the name of the current caption into a template. This word
-  is either ``Table'' or ``Figure'' or, if the |babel| package is
-  used, some translation thereof.
-\end{command}
-
-\begin{command}{\insertcaptionnumber}
-  Inserts the number of the current figure or table into a template.
-\end{command}
-
-
-
-
-
-
-\subsection{Lists (Itemizations, Enumerations, Descriptions)}
-
-\label{section-template-enumerate}
-
-\paragraph{Predefined Templates}\
-
-\begin{command}{\beamertemplateballitem}
-  Changes the symbols shown in an |itemize| and an |enumerate|
-  environment to small plastic balls.
-\end{command}
-
-\begin{command}{\beamertemplatedotitem}
-  Changes the symbols shown in an |itemize|
-  environment to dots.
-\end{command}
-
-\begin{command}{\beamertemplatetriangleitem}
-  Changes the symbols shown in an |itemize|
-  environment to triangles.
-\end{command}
-
-\begin{command}{\beamertemplateenumeratealpha}
-  Changes the labels of first-level enumerations to ``1.'', ``2.'',
-  ``3.'', and so on, and to ``1.1'', ``1.2'', ``1.3'', and so on for
-  the second level.
-\end{command}
-
-
-
-%\paragraph{Template Installation Commands}\
-
-%\begin{command}{\useenumerateitemtemplate\marg{template}}
-%  The \meta{template} is used to render the default item in the top
-%  level of an enumeration. 
-%  \example |\useenumerateitemtemplate{\insertenumlabel}|
-%\end{command}
-
-
-%\begin{command}{\useitemizeitemtemplate\marg{template}}
-%  The \meta{template} is used to render the default item in the top
-%  level of an itemize list.
-%  \example |\useitemizeitemtemplate{\pgfuseimage{mybullet}}|
-%\end{command}
-
-
-%\begin{command}{\usesubitemizeitemtemplate\marg{template}}
-%  The \meta{template} is used to render the default item in the
-%  second level of an itemize list.
-%  \example |\usesubitemizeitemtemplate{\pgfuseimage{mysubbullet}}|
-%\end{command}
-
-%\begin{command}{\usesubitemizeitemtemplate\marg{template}}
-%  The \meta{template} is used to render the default item in the
-%  third level of an itemize list.
-%  \example |\usesubitemizeitemtemplate{\pgfuseimage{mysubbullet}}|
-%\end{command}
-
-%\begin{command}{\useitemizetemplate\marg{begin text}\marg{end text}}
-%  The \meta{begin text} is inserted at the beginning of a top-level
-%  itemize list, the \meta{end text} at its end.
-%  \example |\useitemizetemplate{}{}|
-%\end{command}
-
-%\begin{command}{\usesubitemizetemplate\marg{begin text}\marg{end text}}
-%  The \meta{begin text} is inserted at the beginning of a second-level
-%  itemize list, the \meta{end text} at its end.
-%  \example |\usesubitemizetemplate{\begin{small}}{\end{small}}|
-%\end{command}
-
-%\begin{command}{\usesubitemizetemplate\marg{begin text}\marg{end text}}
-%  The \meta{begin text} is inserted at the beginning of a third-level
-%  itemize list, the \meta{end text} at its end.
-%  \example |\usesubitemizetemplate{\begin{footnotesize}}{\end{footnotesize}}|
-%\end{command}
-
-
-%\begin{command}{\useenumerateitemtemplate\marg{template}}
-%  The \meta{template} is used to render the default item in the
-%  top-level of an enumeration.  
-%  \example
-%  |\useenumerateitemtemplate{\insertenumlabel}|
-%\end{command}
-
-%\begin{command}{\useenumerateitemminitemplate\marg{template}}
-%  The \meta{template} is used to render the items in an enumeration
-%  where the optional argument \meta{mini template} is used (see
-%  Section~\ref{section-enumerate}). 
-%  \example
-%  |\useenumerateitemminitemplate{\color{structure}\insertenumlabel}|
-%\end{command}
-
-%\begin{command}{\usesubenumerateitemtemplate\marg{template}}
-%  The \meta{template} is used to render the default item in the second
-%  level of an enumeration. 
-%  \example
-%  |\usesubenumerateitemtemplate{\insertenumlabel-\insertsubenumlabel}|
-%\end{command}
-
-%\begin{command}{\usesubenumerateitemtemplate\marg{template}}
-%  The \meta{template} is used to render the default item in the third
-%  level of an enumeration. 
-%  \example
-%\begin{verbatim}
-%\usesubenumerateitemtemplate
-%{\insertenumlabel-\insertsubenumlabel-\insertsubenumlabel}
-%\end{verbatim}
-%\end{command}
-
-
-%\begin{command}{\useenumeratetemplate\marg{begin text}\marg{end text}}
-%  The \meta{begin text} is inserted at the beginning of a top-level
-%  enumeration, the \meta{end text} at its end.
-%  \example |\useenumeratetemplate{}{}|
-%\end{command}
-
-%\begin{command}{\usesubenumeratetemplate\marg{begin text}\marg{end text}}
-%  The \meta{begin text} is inserted at the beginning of a second-level
-%  enumeration, the \meta{end text} at its end.
-%  \example |\usesubenumeratetemplate{\begin{small}}{\end{small}}|
-%\end{command}
-
-%\begin{command}{\usesubenumeratetemplate\marg{begin text}\marg{end text}}
-%  The \meta{begin text} is inserted at the beginning of a third-level
-%  enumeration, the \meta{end text} at its end.
-%  \example |\usesubenumeratetemplate{\begin{footnotesize}}{\end{footnotesize}}|
-%\end{command}
-
-\begin{command}{\usedescriptiontemplate\marg{description
-      template}\marg{default width}}
-  The \meta{default width} is used as width of the default item, if no
-  other width is specified; the width |\labelsep| is
-  automatically added to this parameter.
-  \example
-  |\usedescriptionitemtemplate{\color{structure}\insertdescriptionitem}{2cm}|
-\end{command}
-
-
-%\paragraph{Inserts for these Templates}\
-
-\begin{command}{\insertdescriptionitem}
-  Inserts the current item of a |description| environment into a
-  template.
-\end{command}
-
-%\begin{command}{\insertenumlabel}
-%  Normally, this command inserts the current number of the top-level
-%  enumeration (as an Arabic number) into a template. However, in an
-%  enumeration where the optional \meta{mini template} option is used,
-%  this command inserts the current number rendered by this mini
-%  template. For example, if the \meta{mini template} is |(i)| and this
-%  command is used in the fourth item, |\insertenumlabel| would yield
-%  |(iv)|. 
-%\end{command}
-
-%\begin{command}{\insertsubenumlabel}
-%  Inserts the current number of the second-level enumeration (as an
-%  Arabic number) into a template.
-%\end{command}
-
-%\begin{command}{\insertsubenumlabel}
-%  Inserts the current number of the third-level enumeration (as an
-%  Arabic number) into a template.
-%\end{command}
-
-
-
-
-
-\subsection{Hilighting Commands}
-
-
-\paragraph{Template Installation Commands}\
-
-\begin{command}{\usealerttemplate\marg{alert template
-      begin}\marg{alert template end}}
-  In an |\alert| command and in an |alertenv| environment, the text
-  \meta{alert template begin} is inserted at the beginning, the text
-  \meta{alert template end} at the end.
-  
-  \example |\usealerttemplate{\color{red}}{}|
-
-  \articlenote
-  This command is also available in |article| mode.
-\end{command}
-
-\begin{command}{\usestructuretemplate\marg{structure template
-      begin}\marg{structure template end}}
-  Same as for alerts.
-  
-  \example |\usestructuretemplate{\color{blue}}{}|
-
-  \articlenote
-  This command is also available in |article| mode.
-\end{command}
-
-
-
-
-\subsection{Block Environments}
-
-\paragraph{Predefined Templates}\
-
-\begin{command}{\beamertemplateboldblocks}
-  Block titles are printed in bold.
-\end{command}
-
-\begin{command}{\beamertemplatelargeblocks}
-  Block titles are printed slightly larger.
-\end{command}
-
-\begin{command}{\beamertemplateroundedblocks}
-  Changes the block templates such that they are printed on a
-  rectangular area with rounded corners.
-\end{command}
-
-\begin{command}{\beamertemplateshadowblocks}
-  Changes the block templates such that they are printed on a
-  rectangular area with rounded corners and a shadow.
-\end{command}
-
-
-
-\paragraph{Template Installation Commands}\
-
-\begin{command}{\useblocktemplate\marg{block beginning
-      template}\marg{block end template}}
-  \example
-\begin{verbatim}
-\useblocktemplate
-  {%
-   \medskip%
-    {\color{blockstructure}\textbf{\insertblockname}}%
-    \par%
-  }
-  {\medskip}
-\end{verbatim}
-
-  \articlenote
-  This command is also available in |article| mode.
-\end{command}
-
-
-\begin{command}{\usealertblocktemplate\marg{block beginning
-      template}\marg{block end template}}
-  \example
-\begin{verbatim}
-\usealertblocktemplate
-  {%
-    \medskip
-    {\alert{\textbf{\insertblockname}}}%
-  \par}
-  {\medskip}
-\end{verbatim}
-
-  \articlenote
-  This command is also available in |article| mode.
-\end{command}
-
-
-\begin{command}{\useexampleblocktemplate\marg{block beginning
-      template}\marg{block end template}}
-  \example
-\begin{verbatim}
-\useexampleblocktemplate
-  {%
-    \medskip
-    \begingroup\color{darkgreen}{\textbf{\insertblockname}}
-    \par}
-  {%
-     \endgroup
-     \medskip
-  }
-\end{verbatim}
-
-  \articlenote
-  This command is also available in |article| mode.
-\end{command}
-
-
-\paragraph{Inserts for these Templates}\
-
-\begin{command}{\insertblockname}
-  Inserts the name of the current block into a template.
-\end{command}
-
-
-
-\subsection{Theorem Environments}
-
-\label{section-theorems-templates}
-
-\paragraph{Predefined Templates}\
-
-\begin{command}{\beamertemplatetheoremssimple}
-  Causes the theorem head and text to be directly passed to the
-  |block| or |exampleblock| environment. All font specifications for
-  theorems are ignored. 
-\end{command}
-
-\begin{command}{\beamertemplatetheoremsunnumbered}
-  Causes theorems to be typeset as follows: The font specification for
-  the body is honored, the font specification for the head is
-  ignored. No theorem number is printed. This is the default.
-\end{command}
-
-\begin{command}{\beamertemplatetheoremsnumbered}
-  Like |\beamertemplatetheoremsunnumbered|, except that the theorem
-  number is printed for environments that are numbered.
-\end{command}
-
-\begin{command}{\beamertemplatetheoremsamslike}
-  This causes theorems to be put in a |block| or |exampleblock|, but
-  to be otherwise typeset as is normally done in |amsthm|. Thus the
-  head font and body font depend on the setting for the theorem to be
-  typeset and theorems are numbered. 
-\end{command}
-
-
-
-\paragraph{Template Installation Commands}\
-
-\begin{command}{\usetheoremtemplate\marg{block beginning
-      template}\marg{block end template}}
-  \beamernote
-  Whenever an environment declared using the command |\newtheorem| is
-  to be typeset, the \meta{block beginning template} is inserted at
-  the beginning and the \meta{block end template} at the end. If there
-  is a overlay specification when an environment like |theorem| is
-  used, this overlay specification will directly follow the
-  \meta{block beginning template} upon invocation. This is even true
-  if there was an optional argument to the |theorem| environment. This
-  optional argument is available via the insert |\inserttheoremaddition|.
-
-  Numerous inserts are available in this template, see below.  
-
-  Before the template starts, the font is set to the body font
-  prescribed by the environment to be typeset.
-  
-  \example The following typesets theorems like |amsthm|:
-\begin{verbatim}
-\usetheoremtemplate{\begin{\inserttheoremblockenv}
-  {%
-    \inserttheoremheadfont
-    \inserttheoremname
-    \inserttheoremnumber
-    \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
-    \inserttheorempunctuation
-  }%
-}{\end{\inserttheoremblockenv}}
-\end{verbatim}
-
-  \example In the following example, all font ``suggestions'' for the
-  environment are suppressed or ignored; and the theorem number is
-  suppressed.
-\begin{verbatim}
-\usetheoremtemplate{%
-  \normalfont% ignore body font
-  \begin{\inserttheoremblockenv}
-  {%
-    \inserttheoremname
-    \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
-  }%
-}{\end{\inserttheoremblockenv}}
-\end{verbatim}
-  
-  \articlenote