Commits

Anonymous committed c2ce8ee

*** empty log message ***

Comments (0)

Files changed (11)

doc/beamerug-customization.tex

 
 
 %\subsection{Templates}
-\label{section-templates}
 
 %\subsection{Introduction to Templates}
 
   when the |\alert| command is used. The background is currently
   ignored.
 
-  \templatefontcolor{background}\yes\yes\yes
-  \colorparents{background canvas}
-  Used to typeset the background. It is empty be default. See
-  Section~\ref{section-background} for details. 
-
-  \templatefontcolor{background canvas}\yes\yes\yes
-  \colorparents{normal text}
-  Used to render the background canvas. By default, the background
-  of the color is used to fill a large rectangle. See
-  Section~\ref{section-canvas} for details.  
-
-  \colornote
-  If the background is empty, no canvas is drawn by default.
-  
   \templatefontcolor{example text}\no\yes\yes
   The color/font is used when text is typeset inside an |example|
   block. 

doc/beamerug-elements.tex

 
 \section{Inner Themes, Outer Themes, and Templates}
 
+\label{section-elements}
+
 This section discusses the inner and outer themes that are
 available in \beamer. These themes install certain \emph{templates}
 for the different elements of a presentation. The template mechanism is 
 
 \subsection{Changing the Templates Used for Different Elements of a Presentation}
 
+\label{section-templates}
+
 This section explains how \beamer's template management works.
 
 

doc/beamerug-fonts.tex

 
 \section{Fonts}
 
+\label{section-fonts}
+
 The first subsection introduces the predefined font
 themes that come with \beamer\ and which make it easy to change the
 fonts used in a presentation. The next subsection describes further

doc/beamerug-frames.tex

       the frame that page is. By default, this special note is a
       Roman number. However, this can be changed using the following
       template.
-      \begin{template*}{frametitle continuation}
+      \begin{element}{frametitle continuation}\yes\yes\yes
         The text of this template is inserted at the end of every
         title of a frame with the |allowframebreaks| option set.
         \begin{templateoptions}
           \itemoption{default}{}
           Installs a Roman number as the template. The number
           indicates the current page of the frame.
+          
           \itemoption{from second}{\oarg{text}}
           Installs a template that inserts \meta{text} from the second
           page of a frame on. By default, the text inserted is
           just inserts the text |(cont.)| or, possibly, a translation
           thereof (like |(Forts.)| in German). 
         \end{templateinserts}
-      \end{template*}
+      \end{element}
     \end{enumerate}
     If a frame needs to be broken into several pages, the material on
     all but the last page fills only 95\% of each page by
   \example A title page, in which the head- and footlines are replaced
   by two graphics.
 \begin{verbatim}
-\usetitlepagetemplate{
+\setbeamertemplate{title page}
+{
   \pgfuseimage{toptitle}
   \vskip0pt plus 1filll
 
   \begin{centering}
-    \Large{\textbf{\inserttitle}}
+    {\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}
     
     \insertdate
   \end{centering}
   suppress a frame in |article| mode, you can, for example, specify
   |<presentation>| as overlay specification.
 
-  \begin{template*}{frame begin}
+  \begin{element}{frame begin}\yes\no\no
     The text of this template is inserted at the beginning of each
     frame in |article| mode (and only there). You can use it, say, to
     start a |minipage| environment at the beginning of a frame or to
     insert a horizontal bar or whatever.
-  \end{template*}
+  \end{element}
 
-  \begin{template}{frame end}
+  \begin{element}{frame end}\yes\no\no
     The text of this template is inserted at the end of each
     frame in |article| mode.
-  \end{template}
+  \end{element}
 \end{environment}
 
 \begin{command}{\frame\sarg{overlay specification}%
   entitled \meta{frame title text}. Using the \meta{overlay
     specification} makes it easy to suppress the a frame title once in
   a while. If you generally wish to suppress \emph{all} frame
-  titles in |article| mode, say |\useframetitletemplate{}|.
+  titles in |article| mode, say |\setbeamertemplate<article>{frametitle}{}|.
 
   \lyxnote
   The frame title is the text that follows on the line of the
   ``BeginFrame'' style.
 
-  \begin{template*}{frametitle}
+  \begin{element}{frametitle}\yes\yes\yes
+    \colorfontparents{structure}
+    
     When the frame title and subtitle are to be typeset, this template
-    is invoked with the \beamer\ color and font |frametitle| set. This
+    is invoked with the \beamer-color and -font |frametitle| set. This
     template is \emph{not} invoked when the commands |\frametitle| or
     |\framesubtitle| are called. Rather, it is invoked when the whole
     frame has been completely read. Till then, the frame title and frame
       \iteminsert{\insertframetitle} yields the frame title.
       \iteminsert{\insertframesubtitle} yields the frame subtitle.
     \end{templateinserts}
-  \end{template*}
+  \end{element}
 \end{command}
 
 
 
   \articlenote
   By default, the subtitle is not shown in any way in |article| mode.
+
+  \begin{element}{framesubtitle}\no\yes\yes
+    \colorfontparents{frametitle}
+    This element provides a color and a font for the subtitle, but no
+    template. It is the job of the |frametitle| template to also
+    typeset the subtitle.
+  \end{element}
 \end{command}
 
 Be default, all material for a slide is vertically centered. You can
 object: in \beamer, it consists of a \emph{background canvas} and the
 \emph{main background}.
 
-\appearancenote
 The background canvas can be imagined as a large area on which
 everything (the main background and everything else) is painted on. By
 default, this canvas is a big rectangle filling the whole frame whose
 \setbeamercolor{background canvas}{bg=} 
 \end{verbatim}
 
-\begin{template*}{background canvas}
+\begin{element}{background canvas}\yes\yes\yes
+  \colorparents{normal text}
   The template is inserted ``behind everything.'' The template should
   typically be some \TeX\ commands that produce a rectangle of height
   |\paperheight| and width |\paperwidth|.
 
   \begin{templateoptions}
     \itemoption{default}{}
-    installs a large rectangle of color |background canvas.bg|. Since
-    this color inherits from |normal text|, you can change the
+    installs a large rectangle with the background color. If the
+    background is empty, the canvas is ``transparent.'' Since
+    |background canvas| inherits from |normal text|, you can change the 
     background of the \beamer-color |normal text| to change the
-    color of the default canvas.
+    color of the default canvas. However, to make the canvas
+    transparent, only set the background of the canvas empty; leave
+    the background of normal text white.
+    
     \itemoption{vertical shading}{\oarg{color options}}
     installs a vertically shaded background. \emph{Use with care:
       Background shadings are often distracting!} The following
       default, which is |0.5| is in the middle.
     \end{itemize}
   \end{templateoptions}  
-\end{template*}
+\end{element}
 
 The main background is drawn on top of the background canvas. It can
 be used to add, say, a grid to every frame or a big background picture
 or whatever.
 
-\begin{template}{background}
+\begin{element}{background}\yes\yes\yes
+  \colorparents{background canvas}
   The template is inserted ``behind everything, but on top of the
   background canvas.'' Use it for pictures or grids or anything that
   does not necessarily fill the whole background. When this template
 
   \begin{templateoptions}
     \itemoption{default}{} is empty.
+    
     \itemoption{grid}{\oarg{grid options}}
     places a grid on the background. The following
     \meta{grid options} may be given:
       grid lines. The default is 10\% foreground.
     \end{itemize}
   \end{templateoptions}  
-\end{template}
+\end{element}
 
 
 

doc/beamerug-introduction.tex

 \end{itemize}
 
 
+
+
 \subsection{History}
 
 I created \beamer\ mainly in my spare time. Many other people have
 \medskip
 \noindent
 This user's guide contains descriptions of all ``public''
-commands provided by the |beamer| class. In each description, the
-described command, environment, or option is printed in red. Text
-shown in green is optional and can be left out.
+commands, environments, and concepts defined by the \beamer-class. The
+following examples show how things are documented. As a general rule,
+red text is \emph{defined}, green text is \emph{optional}, blue text
+indicates special mode considerations.
+
+\begin{command}{\somebeamercommand\oarg{optional arguments}\marg{first
+      argument}\marg{second argument}}
+  Here you will find the explanation of what the command
+  |\somebeamercommand| does. The green argument(s) is optional. The
+  command of this example takes two parameters.
+
+  \example
+  |\somebeamercommand[opt]{my arg}{xxx}|
+\end{command}
+
+\begin{environment}{{somebeamerenvironment}\oarg{optional arguments}\marg{first
+      argument}}
+  Here you will find the explanation of the effect of the environment
+  |somebeamerenvironment|. As with commands, the green arguments are
+  optional.
+
+  \example
+\begin{verbatim}
+\begin{somebeamerenvironment}{Argument}
+  Some text.
+\end{somebeamerenvironment}
+\end{verbatim}
+\end{environment}
+
+\begin{element}{some beamer element}\yes\yes\yes
+  Here you will find an explanation of the template, color,
+  and/or font |some beamer element|.
+  A ``\beamer-element'' is a concept that is explained in more detail
+  in Section~\ref{section-elements}. Roughly spoken, an \emph{element}
+  is part of a presentation that is potentially typeset in some
+  special way. Examples of elements are frame titles, the author's
+  name, or the footnote sign. For most elements there exists a
+  \emph{template}, see Section~\ref{section-elements} once more, and
+  also a \beamer-color and a \beamer-font.
+
+  The three markers to the right of |some beamer element| indicate
+  wheter a template, a \beamer-color, and/or a \beamer-font of the
+  name |some beamer element| exist. Typically, all three exist and are
+  employed together when the element needs to be typeset. However,
+  sometimes templates do not have a color or font associated with them
+  (like parent templates, which are indicated by a check sign in
+  brackets). Also, there exist \beamer-colors and -fonts that do not
+  have an underlying template.
+
+  How to use and change templates is explained in
+  Section~\ref{section-templates}.
+
+  How to use and change colors is explained in
+  Section~\ref{section-colors}.
+
+  How to use and change fonts is explained in
+  Section~\ref{section-fonts}. 
+\end{element}
+
 
 \beamernote
 As next to this paragraph, you will sometimes find the word
 A paragraph with \textsc{lyx} next to it describes behaviour that is
 special when you use \LyX\ to prepare your presentation.
 
-\appearancenote
-You will find \textsc{appearance} next to special explanations of how
-you can change the appearance of some aspect of your
-presentation. These explanations presume that you have read
-Section~\ref{section-customization}.
-
 
 
 %%% Local Variables: 

doc/beamerug-macros.tex

     to0pt{\llap{\textsc{appear-\!}}\vskip-3pt\llap{\textsc{ance}}\vss}\ \ }{\ttfamily\char`\\setbeamertemplate\char`\{\declare{#1}\char`\}}\oarg{options}\opt{\meta{args}}\par\topsep=0pt}
 {\endlist}
 
+
+\newenvironment{element}[4]{\list{}{\leftmargin=2em\itemindent-\leftmargin\def\makelabel##1{\hss##1}}%
+\item \textbf{Element} {\ttfamily{\declare{#1}}}\hfill%
+  {\choosecol#2Template #2} {\choosecol#3Color #3} {\choosecol#4Font #4}\par\topsep=0pt}
+{\endlist}
+
+
 \def\templateoptions{\par
-  If no \meta{options} are given, \meta{args} is used as template. The following \meta{options} are defined:
+  The following template options are predefined:
   \begin{itemize}}
 \def\endtemplateoptions{\end{itemize}}
 
 \def\itemoption#1#2{\item {\texttt{[\declare{#1}]}}#2}
 
 \def\yes{\hbox to .5cm{\ding{51}\hfil}}
+\def\semiyes{\hbox to .5cm{(\ding{51})\hfil}}
 \def\no{\hbox to .5cm{\ding{55}\hfil}}
 
-\def\choosecol#1{\ifx#1\yes\color{green!50!black}\else\color{red!50!black}\fi}
+\def\choosecol#1{}%\ifx#1\yes\color{green!50!black}\else\color{red!50!black}\fi}
 
 \def\templatefontcolor#1#2#3#4{%
   \item\declare{\texttt{#1}}\hfill%
 
 \def\fontparents#1{Font parents: \texttt{#1}\par}
 \def\colorparents#1{Color parents: \texttt{#1}\par}
+\def\colorfontparents#1{Color/font parents: \texttt{#1}\par}
 
 \def\templateinserts{\begin{itemize}}
 \def\endtemplateinserts{\end{itemize}}
 \newcommand{\beamernote}{\par\smallskip\noindent\llap{\color{blue}\vtop to0pt{\llap{\textsc{presen-\!}}\vskip-3pt\llap{\textsc{tation}}\vss}\ \ }}
 \newcommand{\articlenote}{\par\smallskip\noindent\llap{\color{blue}\textsc{article}\ \ }}
 \newcommand{\lyxnote}{\par\smallskip\noindent\llap{\color{blue}\textsc{lyx}\ \ }}
-\newcommand{\appearancenote}{\par\smallskip\noindent\llap{\color{blue}\vtop
+\newcommand{\appearancenote}{\par\smallskip\noindent\appearancenotetext}
+
+\def\appearancenotetext{\llap{\color{blue}\vtop
     to0pt{\llap{\textsc{appear-\!}}\vskip-3pt\llap{\textsc{ance}}\vss}\ \ }}
 
 \newcommand{\templatenote}{\par\smallskip\noindent\llap{\color{blue}\textsc{template}\ \ }}

doc/beamerug-structuring.tex

   If you use the ``Title'' style in your presentation, a title page is
   automatically inserted.
 
-  
-  \begin{template*}{title page}
+  \begin{element}{title page}\yes\yes\yes
     This template is invoked when the |\titlepage| command is used.
 
     \begin{templateoptions}
       \iteminsert{\inserttitlegraphic} inserts the title graphic into a
       template. 
     \end{templateinserts}
-  \end{template*}
+  \end{element}
 \end{command}
 
 For compatibility with other classes, in |article| mode the following
 \section<article>{Results on the Main Problem}
 \end{verbatim}
 
-  \begin{template*}{section in toc}
+  \begin{element}{section in toc}\yes\yes\yes
     This template is used when a section entry is to be typeset. For
     the permissible \meta{options} see the parent template
     |table of contents|.
       \iteminsert{\inserttocsectionnumber}
       inserts the number of the current section (in the table of contents).
     \end{templateinserts}
-  \end{template*}
-
-  \begin{template}{section in toc shaded}
+  \end{element}
+
+  \begin{element}{section in toc shaded}\yes\yes\yes
     This template is used instead of the previous one if the section
     should be shown in a shaded way, because it is not the current
     section.  For the permissible \meta{options} see the parent
     template |table of contents|.
-  \end{template}
+  \end{element}
 \end{command}
 
 \begin{command}{\section\sarg{mode specification}\declare{|*|}\marg{section name}}
   This command works the same way as the |\section| command.
   \example|\subsection[Applications]{Applications to the Reduction of Pollution}|
 
-  \begin{template*}{subsection in toc}
+  \begin{element}{subsection in toc}\yes\yes\yes
     Like |section in toc|, only for subsection.
 
     In addition to the inserts for the |section in toc| template, the
       \iteminsert{\inserttocsubsectionnumber}
       inserts the number of the current subsection (in the table of contents).
     \end{templateinserts}
-  \end{template*}
-
-  \begin{template}{subsection in toc shaded}
+  \end{element}
+
+  \begin{element}{subsection in toc shaded}\yes\yes\yes
     Like |section in toc shaded|, only for subsections.
-  \end{template}
+  \end{element}
 \end{command}
 
 \begin{command}{\subsection\sarg{mode specification}\declare{|*|}\marg{subsection name}} 
   presentation is ``advertised.''
   \example |\frame{\partpage}|
   
-  \begin{template*}{part page}
+  \begin{element}{part page}\yes\yes\yes
     This template is invoked when the |\partpage| command is used.
 
     \begin{templateoptions}
       \iteminsert{\insertpartromannumber}
       inserts the current part number as a Roman number into a template.
     \end{templateinserts}
-  \end{template*}
+  \end{element}
 \end{command}
 
 \begin{command}{\AtBeginPart\marg{text}}
   inserting a \TeX-mode text with the options in square brackets
   directly after the table of contents.
 
-  \begin{template*}{table of contents}
+  \begin{element}{sections/subsections in toc}\yes\no\no
     This template is a parent template, whose children are
     |section in toc| and |subsection in toc|. This means that if you
     use the |\setbeamertemplate| command on this template, the command
 
     If none of the above options suits you, you have to change the
     templates |section in toc| and |subsection in toc| directly.
-  \end{template*}
-
-  \begin{template}{table of contents shaded}
+  \end{element}
+
+  \begin{element}{sections/subsections in toc shaded}\yes\no\no
     A parent template with children
     |section in toc shaded| and |subsection in toc shaded|. These two
     templates are used to render section and subsection entries when
       \example |\setbeamertemplate{table of contents shaded}[default][50]|
       makes dimmed entries 50\% transparent. 
     \end{templateoptions}
-  \end{template}
+  \end{element}
 \end{command}
 
 
 
 There are three predefined environments for creating lists, namely
 |enumerate|, |itemize|, and |description|. The first
-two can be nested to depth two, but not further (this would
-create totally unreadable slides).
+two can be nested to depth three, but nesting them to this depth
+creates totally unreadable slides.
 
 The |\item| command is overlay-specification-aware. If an overlay
 specification is provided, the item will only be shown on the
   |\beamerdefaultoverlayspecification| before the environment to get
   the desired effect.
 
-  \appearancenote
   The appearance of an |itemize| list is governed by several
   templates. The first template concerns the way the little marker
   introducing each item is typeset:  
-  \begin{template}{itemize items}
+  \begin{element}{itemize items}\semiyes\no\no
     This template is a parent template, whose children are
     |itemize item|, |itemize subitem|, and |itemize subsubitem|. This
     means that if you use the |\setbeamertemplate| command on this
       \itemoption{ball}{}
       Uses little balls as item markers.
     \end{templateoptions}
-  \end{template}
-
-  \begin{template}{itemize item}
+  \end{element}
+
+  \begin{element}{itemize item}\yes\yes\yes
+    \colorfontparents{item}
     This template (with |item| instead of |items|) governs how the
     marker in front of a first-level item is typeset. ``First-level''
     refers to the level of nesting. See the |itemize items| template
     for the \meta{options} that may be given.
 
     When the template is inserted, the \beamer-font and -color
-    |itemize item| is installed. Typically, the font is ignores by the
+    |itemize item| is installed. Typically, the font is ignored by the
     template as some special symbol is drawn anyway, by the font may
     be important if an optional argument is given to the
     |\item| command as in |\item[First]|.
-  \end{template}
-
-  \begin{template}{itemize subitem}
+
+    The font and color inherit from the |item| font and color, which
+    are explained at the end of this section.
+  \end{element}
+
+  \begin{element}{itemize subitem}\yes\yes\yes
+    \colorfontparents{subitem}
     Like |itemize item|, only for second-level items. An
     item of an itemize inside an enumerate counts a second-level item.
-  \end{template}
-
-  \begin{template}{itemize subsubitem}
+  \end{element}
+
+  \begin{element}{itemize subsubitem}\yes\yes\yes
+    \colorfontparents{subsubitem}
     Like |itemize item|, only for third-level items.
-  \end{template}
+  \end{element}
 \end{environment}
 
 
 
+
 \begin{environment}{{enumerate}\opt{|[<|\meta{default overlay specification}|>]|}\oarg{mini template}} 
   Used to display a list of items that are ordered.  Inside the
   environment, use an |\item| command for each topic. By default,
   \lyxnote
   The same constraints as for |itemize| apply.
   
-  \begin{template*}{enumerate items}
+  \begin{element}{enumerate items}\semiyes\no\no
     Similar to |itemize items|, this template is a parent template,
     whose children are |enumerate item|, |enumerate subitem|,
     |enumerate subsubitem|, and |enumerate mini template|. These
       \itemoption{ball}{}
       ``Projects'' the numbers onto little balls.
     \end{templateoptions}
-  \end{template*}
-
-  \begin{template}{enumerate item}
+  \end{element}
+
+  \begin{element}{enumerate item}\yes\yes\yes
     This template governs how the number in front of a first-level
     item is typeset. The level here refers to the level of enumeration
     nesting only. Thus an enumerate inside an itemize is a first-level
       Arabic number). This insert is also available in the next two
       templates. 
     \end{templateinserts}
-  \end{template}
-
-  \begin{template}{enumerate subitem}
+  \end{element}
+
+  \begin{element}{enumerate subitem}\yes\yes\yes
     Like |enumerate item|, only for second-level items. 
 
     \begin{templateinserts}
     \end{templateinserts}
 
     \example |\setbeamertemplate{enumerate subitem}{\insertenumlabel-\insertsubenumlabel}|
-  \end{template}
-
-  \begin{template}{enumerate subsubitem}
+  \end{element}
+
+  \begin{element}{enumerate subsubitem}\yes\yes\yes
     Like |enumerate item|, only for third-level items. 
 
     \begin{templateinserts}
       inserts the current number of the second-level enumeration (as an
       Arabic number). 
     \end{templateinserts}
-  \end{template}
-
-  \begin{template}{enumerate mini template}
+  \end{element}
+
+  \begin{element}{enumerate mini template}\yes\yes\yes
     This template is used to typeset the number that arises from a
     mini template.
 
       is used in the fourth item, |\insertenumlabel| would yield
       |(iv)|.
     \end{templateinserts}
-  \end{template}
+  \end{element}
 \end{environment}
 
-\appearancenote
 The following templates govern how the \emph{body} of an |itemize| or
 an |enumerate| is typeset.
-\begin{template}{itemize/enumerate body begin}
+\begin{element}{itemize/enumerate body begin}\yes\no\no
   This template is inserted at the beginning of a first-level
   |itemize| or |enumerate| environment. Furthermore, before this
   template is inserted, the \beamer-font and -color
   |itemize/enumerate body| is used.
-\end{template}
-\begin{template}{itemize/enumerate body end}
+\end{element}
+\begin{element}{itemize/enumerate body end}\yes\no\no
   This template is inserted at the end of a first-level
   |itemize| or |enumerate| environment.
-\end{template}
+\end{element}
 There exist corresponding templates like
 |itemize/enumerate subbody being| from second- and third-level itemize
 or enumerates.
 
-\begin{template}{items}
+\begin{element}{items}\semiyes\no\no
   This template is a parent template of |itemize items| and
   |enumerate items|.
   \example |\setbeamertemplate{items}[circle]| will cause all items in
   |itemize| or |enumerate| environments to become circles (of the
   appropriate size, color, and font).
-\end{template}
+\end{element}
 
 
 \label{section-descriptions}
 
   |\setbeamermargin{descriptionwidthof}|\marg{text}
   
-  \begin{template*}{description item}
+  \begin{element}{description item}\yes\yes\yes
     This template is used to typeset the description items. When this
     template is called, the \beamer-font and -color |description item|
     are installed.
       \iteminsert{\insertdescriptionitem} inserts the text of the
       current description item.
     \end{templateinserts}
-  \end{template*}
+  \end{element}
 \end{environment}
 
 
 
 
 
+In order to simplify changing the color or font of items, the
+different kinds of items inherit form or just use the following
+``general'' \beamer-color and fonts:
+
+\begin{element}{item}\no\yes\yes
+\end{element}
+
+\begin{element}{item projected}\no\yes\yes
+\end{element}
+
+\begin{element}{subitem}\no\yes\yes
+\end{element}
+
+\begin{element}{subitem projected}\no\yes\yes
+\end{element}
+
+\begin{element}{subsubitem}\no\yes\yes
+\end{element}
+
+\begin{element}{subsubitem projected}\no\yes\yes
+\end{element}
+
 \subsubsection{Hilighting}
 
 The \beamer\ class predefines commands and environments for

themes/inner/beamerinnerthemecircles.sty

 \mode<presentation>
 
 \setbeamertemplate{items}[circle]
-\setbeamertemplate{table of contents}[circle]
+\setbeamertemplate{sections/subsections in toc}[circle]
 
 \mode
 <all>

themes/inner/beamerinnerthemedefault.sty

 % Table of contents
 %
 
-\defbeamertemplateparent{table of contents}{section in toc,subsection in toc}
+\defbeamertemplateparent{sections/subsections in toc}{section in toc,subsection in toc}
 {}
 
-\defbeamertemplateparent{table of contents shaded}{section in toc shaded,subsection in toc shaded}[1][20]
+\defbeamertemplateparent{sections/subsections in toc shaded}{section in toc shaded,subsection in toc shaded}[1][20]
 {[#1]}
 
 

themes/inner/beamerinnerthemerectangles.sty

 
 \mode<presentation>
 
-\setbeamertemplate{table of contents}[square]
+\setbeamertemplate{sections/subsections in toc}[square]
 \setbeamertemplate{items}[square]
 
 \mode<all>

themes/inner/beamerinnerthemerounded.sty

 \beamertemplateroundedblocks[shadow=\beamer@themerounded@shadow]
 
 \setbeamertemplate{items}[ball]
-\setbeamertemplate{table of contents}[ball]
+\setbeamertemplate{sections/subsections in toc}[ball]
 \setbeamertemplate{title page}[default][colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]
 \setbeamertemplate{part page}[default][colsep=-4bp,rounded=true,shadow=\beamer@themerounded@shadow]