Commits

Till Tantau  committed 364faea

Version 0.93

  • Participants
  • Parent commits 499845e

Comments (0)

Files changed (20)

 2001-11-04 Till Tantau <tantau@users.sourceforge.net>
 
+	Version 0.93:
 	- Added \article, \common, \presentation macros for creating an
 	  article version of a presentation from the same file.
 	- Corrected several examples in the user guide.	
 	- Added additional hyperlink commands.
+	- Added button management.
+	- Reworked the formatting of the user's guide.
+	- Added new navigation symbols.
+	- Replaced inrow option and theme splitcondensed by compress
+	  option. 
 
 2003-10-28 Till Tantau <tantau@users.sourceforge.net>
 
 1) Some themes more appropriate for presentations of lectures.
-2) Explain in the user guide, how hyperref can be used to create
-   non-linear talks.
-3) Make adding navigation buttons like a "back button" easy.
-4) Perhaps add an way of showing photos of the authors and the
+2) Perhaps add an way of showing photos of the authors and the
    institutes in a convenient way.
-5) Put internal macros in beamer.cls into a namespace
-6) "Cleanup" beamer.cls
-7) Document some of the commands for creating headline and footlines.
+3) Put internal macros in beamer.cls into a namespace
+4) "Cleanup" beamer.cls
+5) Document some of the commands for creating headline and footlines.
 \ProvidesClass{beamer}
-[2003/10/23 v0.92-dev Class for Typesetting a Beamer Presentation]
+[2003/11/07 v0.93 Class for Typesetting a Beamer Presentation]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
 \newif\if@notesnormals
 \@notesnormalstrue
 
-\newif\ifsubsectionrows
-\subsectionrowsfalse
+\newif\ifbeamer@compress
+\beamer@compressfalse
 
 \newif\ifbeamer@centered
 
 %
 
 \DeclareOption{inrow}
-{\subsectionrowstrue}
+{\ClassError{beamer}{``inrow'' no longer supported. Use ``compress'' instead.}{}}
+
+\DeclareOption{compress}
+{\beamer@compresstrue}
 
 \DeclareOption{slidescentered}
 {\beamer@centeredtrue}
 %
 
 % Public
-\newdimen\headheight    % Height of the headline
+\newdimen\headheight    % Total height of the headline (including depth)
+\newdimen\headdp        % Depth of the headline
 \newdimen\footheight    % Height of the footline
 \newdimen\sidebarheight % Height of the sidebars
 
   \advance\headcounter by1\relax%
   \csname head\the\headcounter\endcsname\repeat}
 
+\def\beamer@startpageofframe{1}
+\def\beamer@endpageofframe{1}
+\def\beamer@startpageofsubsection{1}
+\def\beamer@endpageofsubsection{1}
+\def\beamer@startpageofsection{1}
+\def\beamer@endpageofsection{1}
+\def\beamer@endpageofdocument{1}
+\def\beamer@startpageofappendix{}
+
 \def\sectionentry#1#2#3#4{\ifnum\section@max<#1\relax\section@max=#1\fi}
 \def\slideentry#1#2#3#4#5{\ifnum\subsection@max<#2\relax\subsection@max=#2\fi}
 \def\appendixslideentry#1#2#3#4#5{\ifnum\subsection@max<#2\relax\subsection@max=#2\fi}
 \long\def\@@section#1{\@section[#1]{#1}}
 \long\def\@section[#1]#2{%
   \refstepcounter{section}%
-  \@ifempty{#2}{\long\def\secname{#1}}{\long\def\secname{#2}\addtocontents{toc}{\protect\sectionintoc{\thesection}{#2}{\thepage}}}%
+  \@ifempty{#2}%
+  {\long\def\secname{#1}}%
+  {\long\def\secname{#2}\addtocontents{toc}{\protect\sectionintoc{\thesection}{#2}{\thepage}}}%
   \addtocontents{head}{\protect\headcommand{\protect\sectionentry{\thesection}{#1}{\thepage}{\secname}}}%
   {\let\\=\relax\xdef\sectionlink{{Navigation\thepage}{\noexpand\secname}}}%
   \beamer@tempcount=\c@page\advance\beamer@tempcount by -1%
 \def\@@subsection#1{\@subsection[#1]{#1}}
 
 \def\@subsection[#1]#2{%
-  \ifsubsectionrows\ifnum0=\c@subsection\refstepcounter{subsection}\fi%
-  \else\refstepcounter{subsection}\fi%
+  \refstepcounter{subsection}%
   \@ifempty{#2}{\long\def\subsecname{#1}\long\def\lastsubsection{#1}}
   {%
     \long\def\subsecname{#2}%
 
 
 \def\untitledsubsection{%
-  \ifsubsectionrows\ifnum0=\c@subsection\refstepcounter{subsection}\fi%
-  \else\refstepcounter{subsection}\fi%
+  \refstepcounter{subsection}%
   \def\insertsubsection{}%
   \def\lastsubsection{}}
 \def\insertsubsection{}
   \advance\footheight by \dp\tempbox%
   \advance\footheight by 4pt%
   \geometry{foot=\the\footheight}%
+  \advance\footheight by -4pt%
   \sidebarheight=\paperheight%
   \advance\sidebarheight by-\headheight%
-  \advance\sidebarheight by-\footheight%
-  \advance\footheight by -4pt}
+  \advance\sidebarheight by\headdp%
+  \advance\sidebarheight by-\footheight}
 \def\recalculatehead{%
   \setbox\tempbox=\hbox{\@headtemplate}%
   \headheight=\ht\tempbox%
-  \advance\headheight by\dp\tempbox%
+  \headdp=\dp\tempbox%
+  \advance\headheight by\headdp%
   \geometry{head=\the\headheight}%
   \sidebarheight=\paperheight%
   \advance\sidebarheight by-\headheight%
-  \advance\sidebarheight by-\footheight%
-  \advance\footheight by -4pt}%
+  \advance\sidebarheight by\headdp%
+  \advance\sidebarheight by-\footheight}%
 
 \long\def\usefoottemplate#1{%
   \gdef\@foottemplate{\offinterlineskip\reset@font\def\\{,}#1}%
   \hbox{\color{#2}\hskip-\Gm@lmargin\vrule width \paperwidth
     height #1\hskip-\Gm@rmargin}}
 
+%
+% Inserting navigation bars
+%
+
+\newcount\beamer@xpos
+\newcount\beamer@ypos
+
 \def\insertnavigation#1{%
   \vbox{%
     \ifbeamer@inappendix%
     \def\appendixsectionentry##1##2##3##4{}%
     \def\appendixslideentry{\fakeslideentry}%
     \fi%
+    \beamer@xpos=0\relax%
+    \beamer@ypos=1\relax%
     \hbox to #1{\hskip.3cm\tiny\setbox\sectionbox=\hbox{}%
         \hskip-5pt plus-1fill\dohead%
       \box\sectionbox\hfil\hskip.3cm}%
 
 \def\sectionentry#1#2#3#4{% section name, section title, page
   \box\sectionbox\hskip5pt plus 1fill%
+  \beamer@xpos=0\relax%
+  \beamer@ypos=1\relax%
   \setbox\sectionbox=
   \hbox{\def\insertsectionhead{#2}%
     \ifnum\thesection=#1%
 
 \def\appendixsectionentry#1#2#3#4{% section name, section title, page
   \box\sectionbox\hskip5pt plus 1fill%
+  \beamer@xpos=0\relax%
+  \beamer@ypos=1\relax%
   \setbox\sectionbox=
   \hbox{\def\insertsectionhead{#2}%
     \ifnum\thesection=#1%
 \def\slideentry#1#2#3#4#5{%
   %section number, subsection number, slide number, first/last frame page number
   \ifnum#2>0\ifnum#3>0%
+  \ifbeamer@compress%
+  \advance\beamer@xpos by1\relax%
+  \else
+  \beamer@xpos=#3\relax%
+  \beamer@ypos=#2\relax%
+  \fi
   \hbox to 0pt{%
-    \postemp=-#2\vboxoffset%
-    \advance\postemp by -#2\beamer@boxsize%
+    \postemp=-\vboxoffset%
+    \advance\postemp by-\beamer@boxsize%
+    \multiply\postemp by\beamer@ypos%
     \advance\postemp by -.05cm%
     \raise\postemp\hbox{%
-      \postemp=#3\beamer@boxsize%
+      \postemp=\beamer@boxsize%
+      \multiply\postemp by\beamer@xpos%
       \advance\postemp by -\beamer@boxsize%
       \advance\postemp by 1pt%
       \kern\postemp\hbox{\beamer@link(#4){%
         }}}\hskip-10cm plus 1fil
   }\fi\fi\ignorespaces}
 
-\def\appendixslideentry#1#2#3#4#5{%
-  %section number, subsection number, slide number, first/last frame page number
-  \ifnum#2>0\ifnum#3>0%
-  \hbox to 0pt{%
-    \postemp=-#2\vboxoffset%
-    \advance\postemp by -#2\beamer@boxsize%
-    \advance\postemp by -.05cm%
-    \raise\postemp\hbox{%
-      \postemp=#3\beamer@boxsize%
-      \advance\postemp by -\beamer@boxsize%
-      \advance\postemp by 1pt%
-      \kern\postemp\hbox{\beamer@link(#4){%
-        \ifnum\thesection=#1\ifnum\thesubsection=#2\ifnum\thesubsectionslide=#3%
-        \@minislidehilight\else\@minisliderowhilight\fi\else\@minislide\fi\else\@minislide\fi%
-        }}}\hskip-10cm plus 1fil
-  }\fi\fi\ignorespaces}
+\let\appendixslideentry=\slideentry
 
 \def\fakeslideentry#1#2#3#4#5{%
   \ifnum#2>0\ifnum#3>0%
-  \hbox to 0pt{\postemp=-#2\vboxoffset%
-    \advance\postemp by -#2\beamer@boxsize%
+  \ifbeamer@compress%
+  \advance\beamer@xpos by1\relax%
+  \else%
+  \beamer@xpos=#3\relax%
+  \beamer@ypos=#2\relax%
+  \fi%
+  \hbox to 0pt{\postemp=-\vboxoffset%
+    \advance\postemp by -\beamer@boxsize%
+    \multiply\postemp by\beamer@ypos%
     \advance\postemp by -.05cm%
     \raise\postemp\hbox{}}\fi\fi\ignorespaces}
   
   \fi%
 }
 
-\def\beamer@startpageofframe{1}
-\def\beamer@endpageofframe{1}
-\def\beamer@startpageofsubsection{1}
-\def\beamer@endpageofsubsection{1}
-\def\beamer@startpageofsection{1}
-\def\beamer@endpageofsection{1}
-\def\beamer@endpageofdocument{1}
-\def\beamer@startpageofappendix{}
-
 \def\beamer@nextpage#1{%
   \beamer@tempcount=#1%
   \advance\beamer@tempcount by1\relax%

File beamerthemebars.sty

-\ProvidesPackage{beamerthemebars}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemebars}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.

File beamerthemeboxes.sty

-\ProvidesPackage{beamerthemeboxes}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemeboxes}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
 \color{black!50!green}}{\endgroup\medskip}
 
 
+                                % Buttons
+\userightsidebartemplate{0cm}{%
+  \vfill\llap{\insertnavigationsymbols}}
+
 % For example:
 %\addheadboxtemplate{\color{black}}{\hfill\tiny\color{white}\textbf{\insertshorttitle}\hskip0.3cm}
 %\addheadboxtemplate{\color{structure}}{\hskip0.3cm\tiny\color{white}\textbf{\insertshortauthor}}

File beamerthemeclassic.sty

-\ProvidesPackage{beamerthemeclassic}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemeclassic}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
                                 % Itemize
 \useitemizeitemtemplate{\tiny\raise1.5pt\hbox{\color{structure}$\blacktriangleright$}}
 \usesubitemizeitemtemplate{\tiny\raise1.5pt\hbox{\color{structure}$\blacktriangleright$}}
+
+                                % Buttons
+\userightsidebartemplate{0cm}{%
+  \vfill\llap{\insertnavigationsymbols}}

File beamerthemelined.sty

-\ProvidesPackage{beamerthemelined}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemelined}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
                                 % Footline
 \usefoottemplate{%
   \vbox{%
+    \setbox\tempbox=\hbox{\tiny\insertshortauthor: \insertshorttitle\hskip1.5cm\insertshortinstitute}%
+    \ifdim\wd\tempbox>\paperwidth%
     \insertvrule{4pt}{structure!50!averagebackgroundcolor}%
     \vskip1.5pt
-    \setbox\tempbox=\hbox{\tiny\insertshortauthor: \insertshorttitle\hskip1.5cm\insertshortinstitute}%
-    \ifdim\wd\tempbox>\paperwidth%
     \tinyline{\color{structure}\insertshortauthor:\hfill\insertshortinstitute}%
-    \tinyline{\color{structure}\insertshorttitle\hfill}%
+    \tinyline{\color{structure}\insertshorttitle\hfill\lower1pt\hbox{\insertnavigationsymbols}}%
     \else%
+    \setbox\tempbox=\hbox{\beamerline{\hbox to\paperwidth{\hfill\lower1pt\hbox{\insertnavigationsymbols}}}}%
+    \ht\tempbox=0pt%
+    \box\tempbox%
+    \insertvrule{4pt}{structure!50!averagebackgroundcolor}%
+    \vskip1.5pt
     \tinyline{\color{structure}\insertshortauthor: \insertshorttitle\hfill\insertshortinstitute}%
     \fi}%
   }

File beamerthemeplain.sty

-\ProvidesPackage{beamerthemeplain}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemeplain}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
                                 % Itemize
 \useitemizeitemtemplate{\tiny\raise1.5pt\hbox{\color{structure}$\blacktriangleright$}}
 \usesubitemizeitemtemplate{\tiny\raise1.5pt\hbox{\color{structure}$\blacktriangleright$}}
+
+                                % Buttons
+\userightsidebartemplate{0cm}{%
+  \vfill\llap{\insertnavigationsymbols}}
+

File beamerthemesidebar.sty

-\ProvidesPackage{beamerthemesidebar}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemesidebar}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
   \vskip1em
   \insertverticalnavigation{\beamer@sidebarwidth}%
   \vfill
+  \hbox to \beamer@sidebarwidth{\hfil\insertnavigationsymbols\hskip3pt}
+  \vskip3pt
   \hbox to \beamer@sidebarwidth{\hfil\insertlogo\hskip3pt}
   \vskip3pt
 }
                                 % Margins
 \beamersetleftmargin{0.5cm}
 \beamersetrightmargin{0.5cm}
+
+                                % Navigation symbols
+\usenavigationsymbolstemplate{\vbox{%
+  \hbox{\insertslidenavigationsymbol}
+  \hbox{\insertframenavigationsymbol}
+  \hbox{\insertsubsectionnavigationsymbol}
+  \hbox{\insertsectionnavigationsymbol}
+  \hbox{\insertdocnavigationsymbol}
+  \hbox{\insertbackfindforwardnavigationsymbol}}}

File beamerthemesidebardark.sty

-\ProvidesPackage{beamerthemesidebardark}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemesidebardark}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
   \vskip1em
   \insertverticalnavigation{\beamer@sidebarwidth}%
   \vfill
+  \hbox to \beamer@sidebarwidth{\hfil\insertnavigationsymbols\hskip3pt}
+  \vskip3pt
   \hbox to \beamer@sidebarwidth{\hfil\insertlogo\hskip3pt}
   \vskip3pt
 }
                                 % Margins
 \beamersetleftmargin{0.5cm}
 \beamersetrightmargin{0.5cm}
+
+                                % Navigation symbols
+\usenavigationsymbolstemplate{\vbox{%
+  \hbox{\insertslidenavigationsymbol}
+  \hbox{\insertframenavigationsymbol}
+  \hbox{\insertsubsectionnavigationsymbol}
+  \hbox{\insertsectionnavigationsymbol}
+  \hbox{\insertdocnavigationsymbol}
+  \hbox{\insertbackfindforwardnavigationsymbol}}}
+
+\def\beamernavigationcolorlight{structure!65!lightgray}
+\def\beamernavigationcolorstrong{structure!50!lightgray}
+  

File beamerthemesidebardarktab.sty

-\ProvidesPackage{beamerthemesidebardarktab}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemesidebardarktab}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
   \vskip1em
   \insertverticalnavigation{\beamer@sidebarwidth}%
   \vfill
+  \hbox to \beamer@sidebarwidth{\hfil\insertnavigationsymbols\hskip3pt}
+  \vskip3pt
   \hbox to \beamer@sidebarwidth{\hfil\insertlogo\hskip3pt}
   \vskip3pt
 }
                                 % Margins
 \beamersetleftmargin{0.5cm}
 \beamersetrightmargin{0.5cm}
+
+
+                                % Navigation symbols
+\usenavigationsymbolstemplate{\vbox{%
+  \hbox{\insertslidenavigationsymbol}
+  \hbox{\insertframenavigationsymbol}
+  \hbox{\insertsubsectionnavigationsymbol}
+  \hbox{\insertsectionnavigationsymbol}
+  \hbox{\insertdocnavigationsymbol}
+  \hbox{\insertbackfindforwardnavigationsymbol}}}
+
+\def\beamernavigationcolorlight{structure!65!lightgray}
+\def\beamernavigationcolorstrong{structure!50!lightgray}
+  

File beamerthemesidebartab.sty

-\ProvidesPackage{beamerthemesidebartab}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemesidebartab}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
   \vskip1em
   \insertverticalnavigation{\beamer@sidebarwidth}%
   \vfill
+  \hbox to \beamer@sidebarwidth{\hfil\insertnavigationsymbols\hskip3pt}
+  \vskip3pt
   \hbox to \beamer@sidebarwidth{\hfil\insertlogo\hskip3pt}
   \vskip3pt
 }
                                 % Margins
 \beamersetleftmargin{0.5cm}
 \beamersetrightmargin{0.5cm}
+
+                                % Navigation symbols
+\usenavigationsymbolstemplate{\vbox{%
+  \hbox{\insertslidenavigationsymbol}
+  \hbox{\insertframenavigationsymbol}
+  \hbox{\insertsubsectionnavigationsymbol}
+  \hbox{\insertsectionnavigationsymbol}
+  \hbox{\insertdocnavigationsymbol}
+  \hbox{\insertbackfindforwardnavigationsymbol}}}
+
+\def\beamernavigationcolorlight{structure!65!white}
+\def\beamernavigationcolorstrong{structure!50!white}
+  

File beamerthemesplit.sty

 
 \newdimen\tempdimen
                                 % Head
+\ifbeamer@compress
+\useheadtemplate{%
+  \vbox{%
+    \setbox\linebox=\hbox to\paperwidth{%
+      \insertsectionnavigationhorizontal{.5\paperwidth}{\hskip0pt plus1filll}{}%
+      \insertsubsectionnavigationhorizontal{.5\paperwidth}{}{\hskip0pt plus1filll}\hfil}%
+    \ht\linebox=7pt
+    \dp\linebox=0pt
+    \setbox\linebox=\vbox{\box\linebox\vskip3pt}%
+    \hbox to\textwidth{%
+      {\color{black}\hskip-1cm\vrule width.5\paperwidth height\ht\linebox
+      \color{structure}\vrule width.5\paperwidth height\ht\linebox\hskip-\paperwidth\hskip1cm}%
+      \hskip-1cm\box\linebox\hfill\hskip-1cm%
+      }%
+  }%
+}
+\else
 \useheadtemplate{%
   \vbox{%
     \tempdimen=6.5pt%
       }%
   }%
 }
-
+\fi
                                 % Footline
 \usefoottemplate{%
   \hbox{%

File beamerthemesplitcondensed.sty

-\ProvidesPackage{beamerthemesplitcondensed}[2003/10/29 ver 0.92]
-\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-
-% Copyright 2003 by Paul Gomme <paul-gomme@uiowa.edu> and
-%                   Till Tantau <tantau@cs.tu-berlin.de> 
-%
-% This program can be redistributed and/or modified under the terms
-% of the LaTeX Project Public License Distributed from CTAN
-% archives in directory macros/latex/base/lppl.txt.
-
-                                % Title page 
-\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
-  }
-
-                                % Frametitles
-\useframetitletemplate{%
-  {\leftskip-\beamer@leftmargin\advance\leftskip by0.3cm%
-   \rightskip-\beamer@rightmargin plus1fil\advance\rightskip by0.3cm\leavevmode
-    \color{structure}
-    \Large\insertframetitle\par}%
-  }
-
-
-                                % Sections in headline
-\usesectionheadtemplate
-{\color{white}\tiny\textbf{\insertsectionhead}}
-{\color{white!50!black}\tiny\textbf{\insertsectionhead}}
-
-\usesubsectionheadtemplate
-{\color{white}\tiny\textbf{\insertsubsectionhead}}
-{\color{white!50!structure}\tiny\textbf{\insertsubsectionhead}}
-
-
-                                % Entries in table of contents
-\usetemplatetocsection[50!averagebackgroundcolor]
-{{\large\color{structure}\inserttocsection}}
-
-                                % Entries in table of contents
-\usetemplatetocsubsection[50!averagebackgroundcolor]
-{\leavevmode\leftskip=1.5em\color{black}\inserttocsubsection\par}
-
-                                % Head
-\useheadtemplate{%
-  \vbox{%
-    \setbox\linebox=\hbox to\paperwidth{%
-      \insertsectionnavigationhorizontal{.5\paperwidth}{\hskip0pt plus1filll}{}%
-      \insertsubsectionnavigationhorizontal{.5\paperwidth}{}{\hskip0pt plus1filll}\hfil}%
-    \ht\linebox=7pt
-    \dp\linebox=0pt
-    \setbox\linebox=\vbox{\box\linebox\vskip3pt}%
-    \hbox to\textwidth{%
-      {\color{black}\hskip-1cm\vrule width.5\paperwidth height\ht\linebox
-      \color{structure}\vrule width.5\paperwidth height\ht\linebox\hskip-\paperwidth\hskip1cm}%
-      \hskip-1cm\box\linebox\hfill\hskip-1cm%
-      }%
-  }%
-}
-
-
-                                % Footline
-\usefoottemplate{%
-  \hbox{%
-    \setbox\linebox=\hbox to\paperwidth{%
-      \hbox to.5\paperwidth{\hfill\tiny\color{white}\textbf{\insertshortauthor}\hskip.3cm}%
-      \hbox to.5\paperwidth{\hskip.3cm\tiny\color{white}\textbf{\insertshorttitle}\hfill}\hfill}%
-    \ht\linebox=7pt%
-    \dp\linebox=0pt%
-    \setbox\linebox=\vbox{\box\linebox\vskip3pt}%
-    \color{black}\hskip-\Gm@lmargin\vrule width.5\paperwidth
-    height\ht\linebox\color{structure}\vrule width.5\paperwidth
-    height\ht\linebox\hskip-\paperwidth% 
-    \hbox{\box\linebox\hfill}\hfill\hskip-\Gm@rmargin}}
-
-\def\logo#1{%
-  \def\insertlogo{#1}%
-  \usefoottemplate{%
-    \vbox{%
-      \hbox to\textwidth{\hfill\setbox\logobox=\hbox{\insertlogo}\ht\logobox=0pt\box\logobox\hskip-\Gm@rmargin\hskip0.3cm}\vskip2pt%
-    \hbox{%
-    \setbox\linebox=\hbox to\paperwidth{%
-      \hbox to.5\paperwidth{\hfill\tiny\color{white}\textbf{\insertshortauthor}\hskip.3cm}%
-      \hbox to.5\paperwidth{\hskip.3cm\tiny\color{white}\textbf{\insertshorttitle}\hfill}\hfill}%
-    \ht\linebox=7pt%
-    \dp\linebox=0pt%
-    \setbox\linebox=\vbox{\box\linebox\vskip3pt}%
-    \color{black}\hskip-\Gm@lmargin\vrule width.5\paperwidth
-    height\ht\linebox\color{structure}\vrule width.5\paperwidth
-    height\ht\linebox\hskip-\paperwidth% 
-    \hbox{\box\linebox\hfill}\hfill\hskip-\Gm@rmargin}}}}
-
-                                % Background
-\usebackgroundtemplate{}
-
-                                % Blocks
-\useblocktemplate{\medskip{\color{structure}\large{\insertblockname}}\par}{\medskip}
-\usealertblocktemplate{\medskip{\alert{\large{\insertblockname}}}\par}{\medskip}
-\useexampleblocktemplate{\medskip\begingroup{\color{structure!50!green}\large{\insertblockname}}\par%
-\color{black!50!green}}{\endgroup\medskip}
-
- 

File beamerthemetree.sty

-\ProvidesPackage{beamerthemetree}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemetree}[2003/11/07 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
 \useexampleblocktemplate{\medskip\begingroup{\color{structure!50!green}\large{\insertblockname}}\par%
 \color{black!50!green}}{\endgroup\medskip}
 
+
+                                % Buttons
+\userightsidebartemplate{0cm}{%
+  \vfill\llap{\insertnavigationsymbols}}

File beamerthemetreebars.sty

-\ProvidesPackage{beamerthemetreebars}[2003/10/29 ver 0.92]
+\ProvidesPackage{beamerthemetreebars}[2003/11/27 ver 0.93]
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
 \color{black!50!green}}{\endgroup\medskip}
 
  
+
+                                % Buttons
+\userightsidebartemplate{0cm}{%
+  \vfill\llap{\insertnavigationsymbols}}

File doc/beamerexample.pdf

Binary file modified.

File doc/beamerexample.tex

 \documentclass{beamer}
 
 % Try the class options [notes], [notesonly], [trans], [handout],
-% [red], [class=article] and see what happens!
+% [red], [compress], [class=article] and see what happens!
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
 %
 \usepackage[latin1]{inputenc}
 \usepackage{colortbl}
 
-\usepackage{listings}
 
 % Use some nice templates
 
 \beamertemplateshadingbackground{red!10}{structure!10}
 \beamertemplatetransparentcovereddynamic
 \beamertemplateballitem
-\beamertemplatenavigationsymbolshorizontal
 \beamertemplatesolidbuttons
 
 %
   pdfkeywords={overhead-free, context-free, linear space}}
 
 \title[Computation with Absolutely No~Space~Overhead]{Computation~with Absolutely~No~Space~Overhead}
-\author{%
+\author[Hemaspaandra et al.]{%
   Lane~Hemaspaandra\inst{1} \and
   Proshanto~Mukherji\inst{1} \and
   Till~Tantau\inst{2}}

File doc/beameruserguide.pdf

Binary file modified.

File doc/beameruserguide.tex

 \def\endclassoption{\endlist}
 
 
-\def\smalltheme{\vbox\bgroup\theme}
-\def\endsmalltheme{\egroup\endtheme}
-\def\theme#1{\list{}{\leftmargin=2em\itemindent-\leftmargin\def\makelabel##1{\hss##1}}%
-\item\extracttheme#1@\par\topsep=0pt}
-\def\endtheme{\endlist}
+\def\smallpackage{\vbox\bgroup\package}
+\def\endsmallpackage{\egroup\endpackage}
+\def\package#1{\list{}{\leftmargin=2em\itemindent-\leftmargin\def\makelabel##1{\hss##1}}%
+\extracttheme#1@\par\topsep=0pt}
+\def\endpackage{\endlist}
 \def\extracttheme#1#2@{%
 \item{{{\ttfamily\char`\\usepackage}#2{\ttfamily\char`\{\declare{#1}\char`\}}}}}
 
 \newcommand\sarg[1]{\opt{{\ttfamily\char`\<}\meta{#1}{\ttfamily\char`\>}}}
 \newcommand\ssarg[1]{{\ttfamily\char`\<}\meta{#1}{\ttfamily\char`\>}}
 
+
+
+
 \begin{document}
 
-\title{User's Guide to the Beamer Class, Version 0.92-dev\\
+\title{User's Guide to the Beamer Class, Version 0.93\\
 \Large\href{http://latex-beamer.sourceforge.net}{\texttt{http://latex-beamer.sourceforge.net}}}
 \author{Till Tantau\\
   \href{mailto:tantau@users.sourceforge.net}{\texttt{tantau@users.sourceforge.net}}}
 table of contents, but will also in the navigation bars.
 
 
-
-\subsection{Getting Started: Installation}
+\subsection{How to Read this User's Guide}
+
+This user guide is both intended as a tutorial and as a reference
+guide. If you have not yet installed the package, please read
+Section~\ref{section-installation} first. If you do not have much
+experience with preparing presentations, the
+Section~\ref{section-workflow} might be especially helpful. The later
+sections explain the basic usage of the |beamer| class as well as
+advanced features. If you wish to adjust the way your presentations
+look (for example, if you wish to add a default logo of your
+institution to every presentation in the future), please read the last
+section. 
+
+In this guide you will find the descriptions of all ``public''
+commands provided by the |beamer| class. In each such
+description, the described command, environment or option is printed 
+in red. Text shown in green is optional and can be left out.
+
+
+\section{Installation and Compatibility}
+
+\label{section-installation}
+
 
 To use the beamer class, you just need to put the files of the
 \beamer\ package in a directory that is read by \TeX. To uninstall the
 class, simply remove these files once more. The same is true of the
 \textsc{pgf} package, which you will also need.
 
-
 Unfortunately, there are different ways of making \TeX\ ``aware'' of
 the files in the \beamer\ package. Which way you should choose depends
 on how permanently you intend to use the class.
 
 
-\subsubsection{Installing Debian and Red Hat Packages}
+\subsection{Installing Debian and Red Hat Packages}
 
 Currently, there are no out-of-the-box Debian or Red Hat packages of
 the beamer class available.
 
 
 
-\subsubsection{Temporary Installation}
+\subsection{Temporary Installation}
 
 If you only wish to install the beamer class for a quick appraisal, do
 the following: Obtain the latest source version (ending
 
 
 
-\subsubsection{Installation in a texmf Tree}
+\subsection{Installation in a texmf Tree}
 
 For a more permanent installation, you can place the files of the
 \beamer\ package and of the \textsc{pgf} package (see the previous
 |.head| files).
 
 
-
-\subsection{How to Read this User's Guide}
-
-This user guide is both intended as a tutorial and as a reference
-guide. If you do not have much experience with preparing
-presentations, the next section might be especially helpful. The
-following sections explain the basic usage of the |beamer| class as
-well as advanced features. If you wish to adjust the way your
-presentations look (for example, if you wish to add a default logo of
-your institution to every presentation in the future), please read the
-last section.
-
-In this guide you will find the descriptions of all ``public''
-commands provided by the |beamer| class. In each such
-description, the described command, environment or option is printed 
-in red. Text shown in green is optional and can be left out.
+\subsection{Compatibility}
+
+When using certain packages together with the |beamer| class, there
+may be incompatibilities.
+
+\begin{package}{{CJK}}
+  When using the |CJK| package, you should write
+\begin{verbatim}
+\hypersetup{CJKbookmarks}
+\end{verbatim}
+  somewhere in your preamble.
+\end{package}
+
+
+
+
 
 
 \section{Workflow}
 
+\label{section-workflow}
+
 This section presents a possible workflow for creating a beamer
 presentation and possibly a handout to go along with it. Technical
 questions are addressed, like which programs to call with 
 \end{verbatim}
 \end{command}
 
+
+
+
 \subsubsection{Components of a Frame}
 
 Each frame consists of up to six components:
 \end{verbatim}
 \end{command}
 
+Be default, all material for a slide is vertically centered. You can
+change this using the following class options:
+
+\begin{classoption}{slidestop}
+  Place text of slides at the (vertical) top of the slides. This
+  corresponds to a vertical ``flush.''
+\end{classoption}
+
+\begin{classoption}{slidescentered}
+  Place text of slides at the (vertical) center of the slides. This is
+  the default.
+\end{classoption}
+
+
 
 \subsubsection{Restricting the Slides of a Frame}
 \label{subsection-restriction}
   has asked about.
 \end{itemize}
 
+Some navigation bars can be ``compressed'' using the following option:
+
+\begin{classoption}{compress}
+  Tries to make all navigation bars as small as possible. For example,
+  all small frame representation in the navigation bars for a single
+  section are shown alongside each other. Normally, the representation
+  for different subsections are shown in different lines. Furthermore,
+  section ans subsection navigations are compressed into one line.
+\end{classoption}
+
 When you click on one of the icons representing a frame in a
 navigation bar (by default this is icon is a small circle), the
 following happens: 
 
 
 
-
 \subsubsection{Using the Navigation Symbols}
 \label{section-navigation-symbols}
 
   titles, and so on, are typeset using the color
   |structure|. By default, this color is bluish. Using one of
   the class options |red|, |gray|, or |brown|
-  changes this. You can also simply redefine this color to a different
-  color using the |\definecolor| command.
+  changes this. You can also change this color simply be redefining
+  the color |structure|.
 \item
   All ``alert'' text is typeset by mixing in 85\% of red. To change
   this, you can either redefine the color |alert|, or you can
   must change the example templates.
 \end{itemize}
 
-
+\begin{classoption}{brown}
+  Changes the main color of the navigation and title bars
+  to a brownish color.
+\end{classoption}
+
+\begin{classoption}{red}
+  Changes the main color of the navigation and title bars
+  to a reddish color.
+\end{classoption}
+
+\begin{classoption}{gray}
+  Changes the main color of the navigation and title bars
+  to monochrome.
+\end{classoption}
 
 \subsubsection{Average Background Color}
 
 all overlay specifications to be suppressed. For most cases this will
 create exactly the desired result.
 
+\begin{classoption}{handout}
+  Create a version that uses the |handout| overlay specifications.
+\end{classoption}
+
 In some cases, you may want a more complex behaviour. For example, if
 you use many |\only| commands to draw an animation. In this case,
 suppressing all overlay specifications is not such a good idea, since
 ensures that the frame has two slides in all versions. 
 
 
+
+
 \subsection{Creating Transparencies}
 
 \label{trans}
 handout, and the transparencies can be found in the file
 |beamerexample.tex|.
 
+\begin{classoption}{trans}
+  Create a version that uses the |trans| overlay
+  specifications. 
+\end{classoption}
+
 
 
 \subsection{Adding Notes}
 |notes|, only notes will be included and all normal frames are
 parsed, but not displayed. This is useful for printing the notes.
 
+\begin{classoption}{notes}
+  Include notes in the output file. Normally, notes are not included.
+\end{classoption}
+
+\begin{classoption}{notesonly}
+  Include only the notes in the output file. Useful for printing them.
+\end{classoption}
+
 \begin{command}{\note\marg{note text}}
   Creates a note page. Should be given right after a frame.
   \example|\note{Talk no more than 1 minute.}|
 of it (like a figure or a formula) with your presentation.
 
 To achieve this, a special class option and three commands can be
-used. The class option is the option |class=xxx|, where
-|xxx| is the name of another document class like
+used. The class option is the option |class=|\meta{class name}, where
+\meta{class name} is the name of another document class like
 |article| or |report|. If this class option is given,
 the beamer class will almost immediately transfer control to this
 class. None of the normal commands defined by the beamer class will be
 defined, except for the three commands listed in the following. All
 class options passed to the beamer class will be passed on to the
-class |xxx|, \emph{except}, naturally, for the option
-|class=xxx| itself. Consider the following example:
+class \meta{class name}, \emph{except}, naturally, for the option
+|class=|\meta{class name} itself.
+
+\begin{classoption}{class={\normalfont\meta{another class
+        name}}{\opt{,{\normalfont\meta{options for another class}}}}}
+  Transfer control to document class \meta{another class name} with
+  the options \meta{options for another class}. See
+  Section~\ref{section-article} for details.
+  \example
 \begin{verbatim}
 \documentclass[class=article,a4paper]{beamer}
 \end{verbatim}
-
-This will cause the rest of the text to be typeset using the
-|article| class with the only class option being
-|a4paper|.
+  This will cause the rest of the text to be typeset using the
+  |article| class with the only class option being
+  |a4paper|.
+\end{classoption}
 
 You can use three commands to specify which part of your text belong
 to the article version, which belongs to the actual presentation, and
 round. In common mode, the text is always inserted.
 
 Right after the |documentclass| command and right after the
-|\begin{document}|, \TeX\ is always in common mode.
+|\begin{document}| (provided it is the sole entry on a line with no
+comments following and no leading spaces), \TeX\ is always in common
+mode. 
 
   
 \begin{command}{\article}
 
 \subsection{Fonts}
 
+\subsubsection{Serif Fonts and Sans Serif Fonts}
+
 By default, the beamer class uses the Computer Modern sans-serif fonts
 for typesetting a presentation. The Computer Modern font family is the
 original font family designed by Donald Knuth himself for the \TeX\
   impression, which might be exactly what you wish to create.
 \end{itemize}
 
-There are two ways of changing the document font: First, you must
-decide whether the text should be typeset in sans serif or in
+You must decide whether the text should be typeset in sans serif or in
 serif. To choose this, use either the class option |sans| or
 |serif|. By default, |sans| is selected, so you do not
 need to specify this. Furthermore, you can specify one of the two
 options |mathsans| or |mathserif|. These options
 override the overall sans-serif/serif choice for math text.
 
-Second, you can independently switch the document font. To do so, you
-should use one of the prepared packages of \LaTeX's font
-mechanism. For example, to change to Times/Helvetica, simply add
+\begin{classoption}{sans}
+  Use a sans-serif font during the presentation. (Default.)
+\end{classoption}
+
+\begin{classoption}{serif}
+  Use a serif font during the presentation.
+\end{classoption}
+
+\begin{classoption}{mathsans}
+  Override the math font to be a sans-serif font.
+\end{classoption}
+
+\begin{classoption}{mathserif}
+  Override the math font to be a serif font.
+\end{classoption}
+
+\subsubsection{Font Families}
+
+Independently of the serif/sans-serif choice, you can switch the
+document font. To do so, you should use one of the prepared packages
+of \LaTeX's font mechanism. For example, to change to Times/Helvetica,
+simply add 
 \begin{verbatim}
 \usepackage{times}
 \end{verbatim}
 also need to specify the |serif| option.
 
 
-
-\subsection{Margins and Sizes}
+\subsubsection{Font Sizes}
+
+The default sizes of the fonts are chosen in a way that makes it
+difficult to fit ``too much'' onto a slide. Also, it will ensure that 
+your slides are readable even under bad conditions like a large
+room and a small only a small projection area. However, you may wish
+to enlarge or shrink the fonts a bit if you know this to be more
+appropriate in your presentation environment. You can use the
+following two options to achieve this:
+
+\begin{classoption}{bigger}
+  Makes all fonts a little bigger, which makes the text more
+  readable. The downside is that less fits onto each frame.
+\end{classoption}
+
+\begin{classoption}{smaller}
+  Makes all fonts a little smaller, which allows you to fit more onto
+  frames. Normally, this is not a good idea.
+\end{classoption}
+
+
+
+\subsection{Margin Sizes}
 
 The ``paper size'' of a beamer presentation is fixed to 128mm times
 96mm. The aspect ratio of this size is 4:3, which is exactly what most
   Like |\beamersetleftmargin|, only for the right margin.
 \end{command}
 
-For more information on side bars, see Section~\ref{section-sidebar-templates}.
-
-
-
-\subsection{Class Options}
-
-Class options are listed right behind the command |\documentclass|
-in square brackets. Class options, see the following list, govern
-certain global behaviors of the presentation.
-
-\begin{classoption}{bigger}
-  Makes all fonts a little bigger, which makes the text more
-  readable. The downside is that less fits onto each frame.
-\end{classoption}
-
-\begin{classoption}{brown}
-  Changes the main color of the navigation and title bars
-  to a brownish color. Other options are \declare{gray} and
-  \declare{red}. Further colors can be setup by redefining the color
-  |structure|. 
-\end{classoption}
-
-\begin{classoption}{class={\normalfont\meta{another class
-        name}}{\opt{,{\normalfont\meta{options for another class}}}}}
-  Transfer control to document class \meta{another class name} with
-  the options \meta{options for another class}. See
-  Section~\ref{section-article} for details.
-  \example |\documentclass[class=article,a4paper]{beamer}|
-\end{classoption}
-
-\begin{classoption}{handout}
-  Create a version that uses the \texttt{handout} overlay
-  specifications. See subsection~\ref{handout}.
-\end{classoption}
-
-\begin{classoption}{inrow}
-  All small frame representation in the navigation bars for a single
-  section are shown alongside each other. Normally, the representation
-  for different subsections are shown in different lines.
-\end{classoption}
-
-\begin{classoption}{mathsans}
-  Override the math font to be a sans-serif font.
-\end{classoption}
-
-\begin{classoption}{mathserif}
-  Override the math font to be a serif font.
-\end{classoption}
-
-\begin{classoption}{notes}
-  Include notes in the output file. Normally, notes are not included.
-\end{classoption}
-
-\begin{classoption}{notesonly}
-  Include only the notes in the output file. Useful for printing them.
-\end{classoption}
-
-\begin{classoption}{sans}
-  Use a sans-serif font during the presentation. (Default.)
-\end{classoption}
-
-\begin{classoption}{serif}
-  Use a serif font during the presentation.
-\end{classoption}
-
-\begin{classoption}{slidescentered}
-  Place text of slides at the (vertical) center of the slides. This is
-  the default.
-\end{classoption}
-
-\begin{classoption}{slidestop}
-  Place text of slides at the (vertical) top of the slides. This
-  corresponds to a vertical ``flush.''
-\end{classoption}
-
-\begin{classoption}{smaller}
-  Makes all fonts a little smaller, which allows you to fit more onto
-  frames. Normally, this is not a good idea.
-\end{classoption}
-
-\begin{classoption}{trans}
-  Create a version that uses the \texttt{trans} overlay
-  specifications. See subsection~\ref{trans}.
-\end{classoption}
-
-
-
-
+For more information on side bars, see
+Section~\ref{section-sidebar-templates}. 
 
 
 
 the standard |\usepackage| command.
 
 
-\begin{smalltheme}{{beamerthemebars}}
+\begin{smallpackage}{{beamerthemebars}}
   \example
 
   \pgfuseimage{themebars}\quad\pgfuseimage{themebars2}
-\end{smalltheme}
-
-
-\begin{theme}{{beamerthemeboxes}\opt{|[headheight=|\meta{head height}|,footheight=|\meta{foot height}|]|}}
+\end{smallpackage}
+
+
+\begin{package}{{beamerthemeboxes}\opt{|[headheight=|\meta{head height}|,footheight=|\meta{foot height}|]|}}
   \example
 
   \pgfuseimage{themeboxes}\quad\pgfuseimage{themeboxes2}
   For this theme, you can specify an arbitrary number of templates for
   the boxes in the head line and in the foot line. You can add a
   template for another box by using the following commands.
-\end{theme}
+\end{package}
 
 \begin{command}{\addheadboxtemplate%
     \marg{background color command}\marg{box template}}
 \end{command}
 
 
-\begin{smalltheme}{{beamerthemeclassic}}
+\begin{smallpackage}{{beamerthemeclassic}}
   \example
 
   \pgfuseimage{themeclassic}\quad\pgfuseimage{themeclassic2}
-\end{smalltheme}
-
-
-\begin{smalltheme}{{beamerthemelined}}
+\end{smallpackage}
+
+
+\begin{smallpackage}{{beamerthemelined}}
   \example
 
   \pgfuseimage{themelined}\quad\pgfuseimage{themelined2}
-\end{smalltheme}
-
-
-\begin{smalltheme}{{beamerthemeplain}}
+\end{smallpackage}
+
+
+\begin{smallpackage}{{beamerthemeplain}}
   \example
 
   \pgfuseimage{themeplain}\quad\pgfuseimage{themeplain2}
-\end{smalltheme}
-
-
-\begin{smalltheme}{{beamerthemesidebar}\opt{|[width=|\meta{sidebar width}|]|}}
+\end{smallpackage}
+
+
+\begin{smallpackage}{{beamerthemesidebar}\opt{|[width=|\meta{sidebar width}|]|}}
   \example
 
   \pgfuseimage{themesidebar}\quad\pgfuseimage{themesidebar2}
 \begin{verbatim}
 \usepackage[width=3cm]{beamerthemesidebar}
 \end{verbatim}
-\end{smalltheme}
-
-
-\begin{smalltheme}{{beamerthemesidebartab}\opt{|[width=|\meta{sidebar width}|]|}}
+\end{smallpackage}
+
+
+\begin{smallpackage}{{beamerthemesidebartab}\opt{|[width=|\meta{sidebar width}|]|}}
   \example
 
   \pgfuseimage{themesidebartab}\quad\pgfuseimage{themesidebartab2}
-\end{smalltheme}
-
-
-\begin{smalltheme}{{beamerthemesidebardark}\opt{|[width=|\meta{sidebar width}|]|}}
+\end{smallpackage}
+
+
+\begin{smallpackage}{{beamerthemesidebardark}\opt{|[width=|\meta{sidebar width}|]|}}
   \example
 
   \pgfuseimage{themesidebardark}\quad\pgfuseimage{themesidebardark2}
-\end{smalltheme}
-
-
-\begin{smalltheme}{{beamerthemesidebartabdark}\opt{|[width=|\meta{sidebar width}|]|}}
+\end{smallpackage}
+
+
+\begin{smallpackage}{{beamerthemesidebartabdark}\opt{|[width=|\meta{sidebar width}|]|}}
   \example
 
   \pgfuseimage{themesidebardarktab}\quad\pgfuseimage{themesidebardarktab2}
-\end{smalltheme}
-
-
-\begin{smalltheme}{{beamerthemesplit}}
+\end{smallpackage}
+
+
+\begin{smallpackage}{{beamerthemesplit}}
   \example
 
   \pgfuseimage{themesplit}\quad\pgfuseimage{themesplit2}
-\end{smalltheme}
-
-
-\begin{smalltheme}{{beamerthemesplitcondensed}}
+\end{smallpackage}
+\medskip
+
+The theme |beamerthemesplitcondensed| is no longer
+supported. Use |beamerthemesplit| with the |compress| class option
+instead. 
+
+\begin{smallpackage}{{beamerthemetree}}
   \example
 
-  \pgfuseimage{themesplitcondensed}\quad\pgfuseimage{themesplitcondensed2}
-\end{smalltheme}
-
-\begin{smalltheme}{{beamerthemetree}}
+  \pgfuseimage{themetree}\quad\pgfuseimage{themetree2}
+\end{smallpackage}
+
+
+\begin{smallpackage}{{beamerthemetreebars}}
   \example
 
-  \pgfuseimage{themetree}\quad\pgfuseimage{themetree2}
-\end{smalltheme}
-
-
-\begin{smalltheme}{{beamerthemetreebars}}
-  \example
-
   \pgfuseimage{themetreebars}\quad\pgfuseimage{themetreebars2}
-\end{smalltheme}
+\end{smallpackage}
 
 
 
 \subsection{Templates}
 \label{section-templates}
 
+\subsubsection{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 predefined way. Using them, you can use, for example, your favorite
 theme together with a predefined background.
 
+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. This
+  code often takes care of some things that you may not yet have
+  thought about.
+\item
+  When copying code from another template and when inserting this code
+  in the preamble of you 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 (head lines,
+  side bars, etc.) can only be changed in the preamble. Other
+  templates can be changed during the document.
+\item
+  The height of the head line and foot line templates is calculated
+  automatically. This is done by typesetting the templates and then
+  ``having a look'' at their heights. This recalculation of the
+  heights takes place several times, but at least twice: once directly
+  after a call to |\useheadtemplate|, respectively |\usefoottemplate|,
+  and once before the |\begin{document}|. Because of this, your
+  templates must be ``typesetable'' inside the preamble. In
+  particular, any images you use must already be declared.
+\item
+  The left and right margins of the head and foot line templates are
+  the same as of the normal text. In order to start the head line and
+  foot line at the right 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}
+
 
 
 \subsubsection{Title Page}