Commits

Anonymous committed 21cfe72

*** empty log message ***

Comments (0)

Files changed (9)

+2003-11-15 Till Tantau <tantau@users.sourceforge.net>
+
+	- Added shadow theme.
+	- Added masked versions of images.
+	- Added shadow blocks.
+
 2003-11-12 Till Tantau <tantau@users.sourceforge.net>
 
 	Version 1.00:
   \newenvironment{#1}{}{}%
   \expandafter\new@command\csname @in#1\endcsname[1]{#2}%
   \expandafter\new@command\csname @out#1\endcsname[1]{#4}%
-  \expandafter\def\csname #1\endcsname##1{%
+  \expandafter\long\expandafter\def\csname #1\endcsname##1{%
     \@ifnextchar<{\@parsebegin{#1}{\csname @in#1\endcsname{##1}}{#3}{\csname @out#1\endcsname{##1}}{#5}}{%
       \expandafter\def\csname end#1\endcsname{#3}#2}}%
 }
   \@decode}
                                 
 
-\long\def\gobble{\@gobble}
-\long\def\gobbleoptional{\@ifnextchar[{\@gobbleoptional}{\@gobbleoptional[]}}
-\long\def\@gobbleoptional[#1]#2{}
+\long\def\@gobbleoptional{\@ifnextchar[{\@@gobbleoptional}{\@@gobbleoptional[]}}
+\long\def\@@gobbleoptional[#1]#2{}
+
+\long\def\@ignoreoptional{\@ifnextchar[{\@@ignoreoptional}{}}
+\long\def\@@ignoreoptional[#1]{}
 
 \long\def\@insp#1{\ignorespaces#1\ignorespaces}
 \long\def\@gobbleis#1{\ignorespaces}
 %
 
 \newoverlaycommand{\pgfonly}{\@insp}{\@gobbleis}
-\newoverlaycommand{\only}{}{\gobble}
+\newoverlaycommand{\only}{}{\@gobble}
 \newoverlaycommand{\uncover}{\fakeinvisible}{\makeinvisible}
 \newoverlaycommand{\invisible}{\beamer@reallymakeinvisible}{\fakeinvisible}
 \renewoverlaycommand{\textbf}{\original{\textbf}}{}
 \renewoverlaycommand{\textsl}{\original{\textsl}}{}
 \renewoverlaycommand{\textsf}{\original{\textsf}}{}
 \renewoverlaycommand{\textrm}{\original{\textrm}}{}
-\renewoverlaycommand{\color}{\original{\color}}{\gobbleoptional}
+\renewoverlaycommand{\color}{\original{\color}}{\@gobbleoptional}
 \newoverlayenvironment{uncoverenv}{}{}{\beamer@startcovered}{\beamer@endcovered}
 \newoverlayenvironment{onlyenv}{}{}{\begingroup\setbox0=\hbox\bgroup}{\egroup\endgroup}
-\renewoverlaycommand{\hypertarget}{\original{\hypertarget}}{\gobble}
+\renewoverlaycommand{\hypertarget}{\original{\hypertarget}}{\@gobble}
 
 \newoverlaycommand{\emph}{\@emph}{}
 \def\@emph#1{{\itshape#1}}
 
-\newoverlaycommand{\nameslide}{\@nameslide}{\gobble}
+\newoverlaycommand{\nameslide}{\@nameslide}{\@gobble}
 
 
 
 % Transitions - DISTRACTING and to be used with CARE!!!! 
 %
 
-\newoverlaycommand{\transblindshorizontal}{\hypersetup{pdfpagetransition={Blinds /Dm /H}}}{}
-\newoverlaycommand{\transblindsvertical}{\hypersetup{pdfpagetransition={Blinds /Dm /V}}}{}
-\newoverlaycommand{\transboxin}{\hypersetup{pdfpagetransition={Box /M /I}}}{}
-\newoverlaycommand{\transboxout}{\hypersetup{pdfpagetransition={Box /M /O}}}{}
-\newoverlaycommand{\transdissolve}{\hypersetup{pdfpagetransition={Dissolve}}}{}
-\newoverlaycommand{\transglitter}{\@transglitter}{\gobble}
-\newoverlaycommand{\transsplitverticalin}{\hypersetup{pdfpagetransition={Split /Dm /V /M /I}}}{}
-\newoverlaycommand{\transsplitverticalout}{\hypersetup{pdfpagetransition={Split /Dm /V /M /O}}}{}
-\newoverlaycommand{\transsplithorizontalin}{\hypersetup{pdfpagetransition={Split /Dm /H /M /I}}}{}
-\newoverlaycommand{\transsplithorizontalout}{\hypersetup{pdfpagetransition={Split /Dm /H /M /O}}}{}
-\newoverlaycommand{\transwipe}{\@transwipe}{\gobble}
-
-\def\@transglitter#1{\hypersetup{pdfpagetransition={Glitter /Di #1}}}
-\def\@transwipe#1{\hypersetup{pdfpagetransition={Wipe /Di #1}}}
-
-\newoverlaycommand{\transduration}{\@transdur}{\gobble}
+\define@key{beamertrans}{direction}{\def\beamer@transdir{ /Di #1 }}
+\define@key{beamertrans}{duration}{\def\beamer@dur{ /D #1 }}
+
+\def\beamer@dotrans#1{\@ifnextchar[{\beamer@@dotrans{#1}}{\beamer@@dotrans{#1}[]}}
+\def\beamer@@dotrans#1[#2]{%
+  \def\beamer@transdir{}%
+  \def\beamer@dur{}%
+  \setkeys{beamertrans}{#2}%
+  \edef\beamer@temp{{pdfpagetransition={#1 \beamer@transdir\space\beamer@dur}}}
+  \expandafter\hypersetup\beamer@temp}
+
+\newoverlaycommand{\transblindshorizontal}{\beamer@dotrans{Blinds /Dm /H}}{\@ignoreoptional}
+\newoverlaycommand{\transblindsvertical}{\beamer@dotrans{Blinds /Dm /V}}{\@ignoreoptional}
+\newoverlaycommand{\transboxin}{\beamer@dotrans{Box /M /I}}{\@ignoreoptional}
+\newoverlaycommand{\transboxout}{\beamer@dotrans{Box /M /O}}{\@ignoreoptional}
+\newoverlaycommand{\transcover}{\beamer@dotrans{Cover}}{\@ignoreoptional}
+\newoverlaycommand{\transdissolve}{\beamer@dotrans{Dissolve}}{\@ignoreoptional}
+\newoverlaycommand{\transfade}{\beamer@dotrans{Fade}}{\@ignoreoptional}
+\newoverlaycommand{\transglitter}{\beamer@dotrans{Glitter}}{\@ignoreoptional}
+\newoverlaycommand{\transpush}{\beamer@dotrans{Push}}{\@ignoreoptional}
+\newoverlaycommand{\transsplitverticalin}{\beamer@dotrans{Split /Dm /V /M /I}}{\@ignoreoptional}
+\newoverlaycommand{\transsplitverticalout}{\beamer@dotrans{Split /Dm /V /M /O}}{\@ignoreoptional}
+\newoverlaycommand{\transsplithorizontalin}{\beamer@dotrans{Split /Dm /H /M /I}}{\@ignoreoptional}
+\newoverlaycommand{\transsplithorizontalout}{\beamer@dotrans{Split /Dm /H /M /O}}{\@ignoreoptional}
+\newoverlaycommand{\transuncover}{\beamer@dotrans{Uncover}}{\@ignoreoptional}
+\newoverlaycommand{\transwipe}{\beamer@dotrans{Wipe}}{\@ignoreoptional}
+
+
+\newoverlaycommand{\transduration}{\@transdur}{\@gobble}
 \def\@transdur#1{\hypersetup{pdfpageduration=#1}}
 
 
+\ProvidesPackage{beamerboxes}[2003/11/15 ver 0.10]
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+
+% Copyright 2003 by 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.
+
+\RequirePackage{keyval}
+
+
+\def\beamerboxesdeclarecolorscheme#1#2#3{% scheme name, upper color, lower color
+  \pgfdeclareverticalshading{bmb@cs#1}{\paperwidth}{%
+    color(0pt)=(#3); color(2pt)=(#3); color(4pt)=(#2)}
+  \begin{colormixin}{20!averagebackgroundcolor}
+    \pgfdeclareverticalshading{bmb@shaded}{\paperwidth}{%
+      color(0pt)=(#3); color(2pt)=(#3); color(4pt)=(#2)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@cs#1!20!averagebackgroundcolor}{bmb@shaded}
+  \begin{colormixin}{15!averagebackgroundcolor}
+    \pgfdeclareverticalshading{bmb@shaded}{\paperwidth}{%
+      color(0pt)=(#3); color(2pt)=(#3); color(4pt)=(#2)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@cs#1!15!averagebackgroundcolor}{bmb@shaded}
+  \begin{colormixin}{10!averagebackgroundcolor}
+    \pgfdeclareverticalshading{bmb@shaded}{\paperwidth}{%
+      color(0pt)=(#3); color(2pt)=(#3); color(4pt)=(#2)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@cs#1!10!averagebackgroundcolor}{bmb@shaded}
+  \begin{colormixin}{5!averagebackgroundcolor}
+    \pgfdeclareverticalshading{bmb@shaded}{\paperwidth}{%
+      color(0pt)=(#3); color(2pt)=(#3); color(4pt)=(#2)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@cs#1!5!averagebackgroundcolor}{bmb@shaded}
+  \begin{colormixin}{2!averagebackgroundcolor}
+    \pgfdeclareverticalshading{bmb@shaded}{\paperwidth}{%
+      color(0pt)=(#3); color(2pt)=(#3); color(4pt)=(#2)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@cs#1!2!averagebackgroundcolor}{bmb@shaded}
+  \colorlet{bmb@up#1}{#2}%
+  \colorlet{bmb@down#1}{#3}%
+}
+
+\define@key{beamerboxes}{scheme}{\edef\bmb@scheme{#1}}
+\define@key{beamerboxes}{width}{\edef\bmb@width{#1}}
+\define@key{beamerboxes}{shadow}[true]{\csname bmb@shadow#1\endcsname}
+
+\newif\ifbmb@shadow
+\newbox\bmb@box
+\newdimen\bmb@temp
+\newdimen\bmb@dima
+\newdimen\bmb@dimb
+\newdimen\bmb@prevheight
+
+\def\beamerboxesrounded{\@ifnextchar[{\@beamerboxesrounded}{\@beamerboxesrounded[]}}
+\def\@beamerboxesrounded[#1]#2{%
+  \setkeys{beamerboxes}{scheme=default,width=\textwidth,shadow=false}%
+  \setkeys{beamerboxes}{#1}%
+  \@ifundefined{@pgfshadingbmb@cs\bmb@scheme}{\PackageError{beamerboxes}{Undefined scheme "\bmb@scheme"}{}}{}%
+  %
+  % Typeset head
+  %
+  \vbox\bgroup%
+  \vskip4bp
+  \setbox\bmb@box=\hbox{\begin{minipage}[b]{\bmb@width}#2\end{minipage}}%
+  \ifdim\wd\bmb@box=0pt%
+    \setbox\bmb@box=\hbox{}%
+    \ht\bmb@box=1.5pt%
+    \bmb@prevheight=-4.5pt%
+  \else%    
+    \bmb@temp=\dp\bmb@box%
+    \ifdim\bmb@temp<1.5pt%
+      \bmb@temp=1.5pt%
+    \fi%
+    \setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}%
+    \dp\bmb@box=0pt%
+    \bmb@prevheight=\ht\bmb@box%
+  \fi%
+  \bmb@temp=\bmb@width%
+  \bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp%
+  \bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp%
+  \hbox{%
+    \begin{pgfpicture}{0bp}{-\ht\bmb@box}{0bp}{-\ht\bmb@box}
+      \ifdim\wd\bmb@box=0pt%
+        \color{bmb@down\bmb@scheme}%
+      \else%        
+        \color{bmb@up\bmb@scheme}%
+      \fi%
+      \pgfqmoveto{-4}{-1}
+      \pgfqcurveto{-4}{1.2}{-2.2}{3}{0}{3}
+      \pgflineto{\pgfpoint{\bmb@temp}{3bp}}
+      \pgfcurveto%
+      {\pgfpoint{\bmb@dima}{3bp}}%
+      {\pgfpoint{\bmb@dimb}{1.2bp}}%
+      {\pgfpoint{\bmb@dimb}{-1bp}}%
+      \bmb@dima=-\ht\bmb@box%
+      \advance\bmb@dima by-2pt%
+      \pgflineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
+      \pgflineto{\pgfpoint{-4bp}{\bmb@dima}}
+      \pgffill
+    \end{pgfpicture}%
+    \copy\bmb@box%
+  }%
+  \nointerlineskip%
+  \vskip-1pt%
+  \ifdim\wd\bmb@box=0pt%
+  \else%
+  \hbox{%
+    \begin{pgfpicture}{0pt}{0pt}{\bmb@width}{6pt}
+      \bmb@dima=\bmb@width%
+      \advance\bmb@dima by8bp%
+      \pgfrect[clip]{\pgfpoint{-4bp}{-1bp}}{\pgfpoint{\bmb@dima}{8bp}}
+      \pgfputat{\pgfpoint{-4bp}{0bp}}{\pgfbox[left,base]{\pgfuseshading{bmb@cs\bmb@scheme}}}%
+    \end{pgfpicture}%
+  }%
+  \nointerlineskip%
+  \fi%
+  \setbox\bmb@box=\hbox\bgroup\begin{minipage}[b]{\bmb@width}%
+  }
+
+\def\endbeamerboxesrounded{%
+  \end{minipage}\egroup%
+  \bmb@temp=\dp\bmb@box%
+  \advance\bmb@temp by.5pt%
+  \setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}%
+  \dp\bmb@box=0pt%
+  \bmb@temp=\wd\bmb@box%
+  \bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp%
+  \bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp%
+  \hbox{%
+    \begin{pgfpicture}{0bp}{0bp}{0bp}{0bp}
+      \ifbmb@shadow%
+      \pgfputat{\pgfpoint{4bp}{-3bp}}{\pgfbox[center,center]{\pgfuseshading{bmb@shadowball}}}
+      \begin{pgfscope}
+        {%
+        \advance\bmb@temp by-1bp%
+        \pgfrect[clip]{\pgfpoint{\bmb@temp}{-7bp}}{\pgfpoint{9bp}{9bp}}%
+        }%
+        \pgfputat{\pgfpoint{\bmb@temp}{1bp}}{\pgfbox[center,center]{\pgfuseshading{bmb@shadowballlarge}}}
+      \end{pgfscope}
+      \begin{pgfscope}
+        \advance\bmb@temp by-4bp%
+        \pgfrect[clip]{\pgfpoint{4bp}{-7bp}}{\pgfpoint{\bmb@temp}{5bp}}
+        \pgfputat{\pgfpoint{4bp}{-7bp}}{\pgfbox[left,base]{\pgfuseshading{bmb@shadow}}}%
+      \end{pgfscope}
+      \begin{pgfscope}
+        \advance\bmb@temp by 4bp%
+        \bmb@dima=\ht\bmb@box%
+        \advance\bmb@dima by\bmb@prevheight%
+        \advance\bmb@dima by 4bp%
+        \pgfrect[clip]{\pgfpoint{\bmb@temp}{1bp}}{\pgfpoint{4bp}{\bmb@dima}}
+        \advance\bmb@dima by-4bp%
+        \pgfputat{\pgfpoint{\bmb@temp}{\bmb@dima}}{\pgfbox[center,center]{\pgfuseshading{bmb@shadowball}}}
+        \advance\bmb@dima by-1bp%
+        \pgfrect[clip]{\pgfpoint{\bmb@temp}{1bp}}{\pgfpoint{4bp}{\bmb@dima}}
+        \advance\bmb@temp by4bp%
+        \pgfputat{\pgfpoint{\bmb@temp}{-3bp}}%
+        {\begin{pgfrotateby}{\pgfdegree{90}}\pgfbox[left,base]{\pgfuseshading{bmb@shadow}}\end{pgfrotateby}}%
+      \end{pgfscope}
+      \fi%
+      \color{bmb@down\bmb@scheme}%
+      \pgfqmoveto{-4}{1}
+      \pgfqcurveto{-4}{-1.2}{-2.2}{-3}{0}{-3}
+      \pgflineto{\pgfpoint{\the\bmb@temp}{-3bp}}
+      \pgfcurveto%
+      {\pgfpoint{\the\bmb@dima}{-3bp}}%
+      {\pgfpoint{\the\bmb@dimb}{-1.2bp}}%
+      {\pgfpoint{\the\bmb@dimb}{1bp}}%
+      \bmb@dima=\ht\bmb@box%
+      \pgflineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
+      \pgflineto{\pgfpoint{-4bp}{\bmb@dima}}
+      \pgffill
+    \end{pgfpicture}%
+    \box\bmb@box%
+  }%
+  \ifbmb@shadow%
+    \vskip4bp minus 2bp%
+  \else%
+    \vskip2bp%
+  \fi%
+  \egroup% of \vbox\bgroup
+}
+
+
+  
+\newcommand{\beamerboxessetupshadows}{
+  \pgfdeclareradialshading{bmb@shadowball}{\pgforigin}{%
+    color(0bp)=(black!50!averagebackgroundcolor);
+    color(4bp)=(averagebackgroundcolor)}
+  \pgfdeclareradialshading{bmb@shadowballlarge}{\pgforigin}{%
+    color(0bp)=(black!50!averagebackgroundcolor);
+    color(4bp)=(black!50!averagebackgroundcolor);
+    color(8bp)=(averagebackgroundcolor)}
+  \pgfdeclareverticalshading{bmb@shadow}{\paperwidth}{%
+    color(0bp)=(averagebackgroundcolor);
+    color(4bp)=(black!50!averagebackgroundcolor);
+    color(8bp)=(black!50!averagebackgroundcolor)}
+
+  \begin{colormixin}{20!averagebackgroundcolor}
+    \pgfdeclareradialshading{bmb@shadowballshaded}{\pgforigin}{%
+      color(0pt)=(black!50!averagebackgroundcolor);
+      color(4bp)=(averagebackgroundcolor)}
+    \pgfdeclareradialshading{bmb@shadowballlargeshaded}{\pgforigin}{%
+      color(0bp)=(black!50!averagebackgroundcolor);
+      color(4bp)=(black!50!averagebackgroundcolor);
+      color(8bp)=(averagebackgroundcolor)}
+    \pgfdeclareverticalshading{bmb@shadowshaded}{\paperwidth}{%
+      color(0pt)=(averagebackgroundcolor);
+      color(4pt)=(black!50!averagebackgroundcolor);
+      color(8pt)=(black!50!averagebackgroundcolor)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@shadow!20!averagebackgroundcolor}{bmb@shadowshaded}
+  \pgfaliasshading{bmb@shadowball!20!averagebackgroundcolor}{bmb@shadowballshaded}
+  \pgfaliasshading{bmb@shadowballlarge!20!averagebackgroundcolor}{bmb@shadowballlargeshaded}
+
+  \begin{colormixin}{15!averagebackgroundcolor}
+    \pgfdeclareradialshading{bmb@shadowballshaded}{\pgforigin}{%
+      color(0pt)=(black!50!averagebackgroundcolor);
+      color(4bp)=(averagebackgroundcolor)}
+    \pgfdeclareradialshading{bmb@shadowballlargeshaded}{\pgforigin}{%
+      color(0bp)=(black!50!averagebackgroundcolor);
+      color(4bp)=(black!50!averagebackgroundcolor);
+      color(8bp)=(averagebackgroundcolor)}
+    \pgfdeclareverticalshading{bmb@shadowshaded}{\paperwidth}{%
+      color(0pt)=(averagebackgroundcolor);
+      color(4pt)=(black!50!averagebackgroundcolor);
+      color(8pt)=(black!50!averagebackgroundcolor)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@shadow!15!averagebackgroundcolor}{bmb@shadowshaded}
+  \pgfaliasshading{bmb@shadowball!15!averagebackgroundcolor}{bmb@shadowballshaded}
+  \pgfaliasshading{bmb@shadowballlarge!15!averagebackgroundcolor}{bmb@shadowballlargeshaded}
+
+  \begin{colormixin}{10!averagebackgroundcolor}
+    \pgfdeclareradialshading{bmb@shadowballshaded}{\pgforigin}{%
+      color(0pt)=(black!50!averagebackgroundcolor);
+      color(4bp)=(averagebackgroundcolor)}
+    \pgfdeclareradialshading{bmb@shadowballlargeshaded}{\pgforigin}{%
+      color(0bp)=(black!50!averagebackgroundcolor);
+      color(4bp)=(black!50!averagebackgroundcolor);
+      color(8bp)=(averagebackgroundcolor)}
+    \pgfdeclareverticalshading{bmb@shadowshaded}{\paperwidth}{%
+      color(0pt)=(averagebackgroundcolor);
+      color(4pt)=(black!50!averagebackgroundcolor);
+      color(8pt)=(black!50!averagebackgroundcolor)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@shadow!10!averagebackgroundcolor}{bmb@shadowshaded}
+  \pgfaliasshading{bmb@shadowball!10!averagebackgroundcolor}{bmb@shadowballshaded}
+  \pgfaliasshading{bmb@shadowballlarge!10!averagebackgroundcolor}{bmb@shadowballlargeshaded}
+
+  \begin{colormixin}{5!averagebackgroundcolor}
+    \pgfdeclareradialshading{bmb@shadowballshaded}{\pgforigin}{%
+      color(0pt)=(black!50!averagebackgroundcolor);
+      color(4bp)=(averagebackgroundcolor)}
+    \pgfdeclareradialshading{bmb@shadowballlargeshaded}{\pgforigin}{%
+      color(0bp)=(black!50!averagebackgroundcolor);
+      color(4bp)=(black!50!averagebackgroundcolor);
+      color(8bp)=(averagebackgroundcolor)}
+    \pgfdeclareverticalshading{bmb@shadowshaded}{\paperwidth}{%
+      color(0pt)=(averagebackgroundcolor);
+      color(4pt)=(black!50!averagebackgroundcolor);
+      color(8pt)=(black!50!averagebackgroundcolor)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@shadow!5!averagebackgroundcolor}{bmb@shadowshaded}
+  \pgfaliasshading{bmb@shadowball!5!averagebackgroundcolor}{bmb@shadowballshaded}
+  \pgfaliasshading{bmb@shadowballlarge!5!averagebackgroundcolor}{bmb@shadowballlargeshaded}
+
+  \begin{colormixin}{2!averagebackgroundcolor}
+    \pgfdeclareradialshading{bmb@shadowballshaded}{\pgforigin}{%
+      color(0pt)=(black!50!averagebackgroundcolor);
+      color(4bp)=(averagebackgroundcolor)}
+    \pgfdeclareradialshading{bmb@shadowballlargeshaded}{\pgforigin}{%
+      color(0bp)=(black!50!averagebackgroundcolor);
+      color(4bp)=(black!50!averagebackgroundcolor);
+      color(8bp)=(averagebackgroundcolor)}
+    \pgfdeclareverticalshading{bmb@shadowshaded}{\paperwidth}{%
+      color(0pt)=(averagebackgroundcolor);
+      color(4pt)=(black!50!averagebackgroundcolor);
+      color(8pt)=(black!50!averagebackgroundcolor)}
+  \end{colormixin}
+  \pgfaliasshading{bmb@shadow!2!averagebackgroundcolor}{bmb@shadowshaded}
+  \pgfaliasshading{bmb@shadowball!2!averagebackgroundcolor}{bmb@shadowballshaded}
+  \pgfaliasshading{bmb@shadowballlarge!2!averagebackgroundcolor}{bmb@shadowballlargeshaded}
+
+}

beamertemplates.sty

 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 
 \RequirePackage{pgfshade}
+\RequirePackage{beamerboxes}
+
+
 
 % Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
 %
 
 
 \newcommand{\beamertemplatesetupshadings}{
-\colorlet{beamerdarkgreen}{green!50!black}
-
-\pgfdeclareverticalshading{roundblock}{13cm}{%
-  color(0pt)=(structure!10!averagebackgroundcolor);
-  color(2pt)=(structure!10!averagebackgroundcolor);
-  color(4pt)=(structure!75!averagebackgroundcolor);
-  color(6pt)=(structure!75!averagebackgroundcolor)}
-\pgfdeclareverticalshading{roundalertblock}{13cm}{%
-  color(0pt)=(alert!10!averagebackgroundcolor);
-  color(2pt)=(alert!10!averagebackgroundcolor);
-  color(4pt)=(alert!75!averagebackgroundcolor);
-  color(6pt)=(alert!75!averagebackgroundcolor)}
-\pgfdeclareverticalshading{roundexampleblock}{13cm}{%
-  color(0pt)=(beamerdarkgreen!10!averagebackgroundcolor);
-  color(2pt)=(beamerdarkgreen!10!averagebackgroundcolor);
-  color(4pt)=(beamerdarkgreen!75!averagebackgroundcolor);
-  color(6pt)=(beamerdarkgreen!75!averagebackgroundcolor)}
-
-\pgfdeclareradialshading{shadowballblock}{\pgforigin}{%
-  color(0pt)=(black!60!averagebackgroundcolor);
-  color(4bp)=(averagebackgroundcolor)}
-\pgfdeclareverticalshading{shadowblock}{13cm}{%
-  color(0pt)=(averagebackgroundcolor);
-  color(4pt)=(black!60!averagebackgroundcolor);
-  color(8pt)=(black!60!averagebackgroundcolor)}
-
-\begin{colormixin}{16!averagebackgroundcolor}
-  \pgfdeclareverticalshading{roundblockshadeda}{13cm}{%
-    color(0pt)=(structure!10!averagebackgroundcolor);
-    color(2pt)=(structure!10!averagebackgroundcolor);
-    color(4pt)=(structure!75!averagebackgroundcolor);
-    color(6pt)=(structure!75!averagebackgroundcolor)}
-  \pgfdeclareverticalshading{roundalertblockshadeda}{13cm}{%
-    color(0pt)=(alert!10!averagebackgroundcolor);
-    color(2pt)=(alert!10!averagebackgroundcolor);
-    color(4pt)=(alert!75!averagebackgroundcolor);
-    color(6pt)=(alert!75!averagebackgroundcolor)}
-  \pgfdeclareverticalshading{roundexampleblockshadeda}{13cm}{%
-    color(0pt)=(beamerdarkgreen!10!averagebackgroundcolor);
-    color(2pt)=(beamerdarkgreen!10!averagebackgroundcolor);
-    color(4pt)=(beamerdarkgreen!75!averagebackgroundcolor);
-    color(6pt)=(beamerdarkgreen!75!averagebackgroundcolor)}
-  \pgfdeclareradialshading{shadowballblockshadeda}{\pgforigin}{%
-    color(0pt)=(black!60!averagebackgroundcolor);
-    color(4bp)=(averagebackgroundcolor)}
-  \pgfdeclareverticalshading{shadowblockshadeda}{13cm}{%
-    color(0pt)=(averagebackgroundcolor);
-    color(4pt)=(black!60!averagebackgroundcolor);
-    color(8pt)=(black!60!averagebackgroundcolor)}
-\end{colormixin}
-
-\begin{colormixin}{9!averagebackgroundcolor}
-  \pgfdeclareverticalshading{roundblockshadedb}{13cm}{%
-    color(0pt)=(structure!10!averagebackgroundcolor);
-    color(2pt)=(structure!10!averagebackgroundcolor);
-    color(4pt)=(structure!75!averagebackgroundcolor);
-    color(6pt)=(structure!75!averagebackgroundcolor)}
-  \pgfdeclareverticalshading{roundalertblockshadedb}{13cm}{%
-    color(0pt)=(alert!10!averagebackgroundcolor);
-    color(2pt)=(alert!10!averagebackgroundcolor);
-    color(4pt)=(alert!75!averagebackgroundcolor);
-    color(6pt)=(alert!75!averagebackgroundcolor)}
-  \pgfdeclareverticalshading{roundexampleblockshadedb}{13cm}{%
-    color(0pt)=(beamerdarkgreen!10!averagebackgroundcolor);
-    color(2pt)=(beamerdarkgreen!10!averagebackgroundcolor);
-    color(4pt)=(beamerdarkgreen!75!averagebackgroundcolor);
-    color(6pt)=(beamerdarkgreen!75!averagebackgroundcolor)}
-  \pgfdeclareradialshading{shadowballblockshadedb}{\pgforigin}{%
-    color(0pt)=(black!60!averagebackgroundcolor);
-    color(4bp)=(averagebackgroundcolor)}
-  \pgfdeclareverticalshading{shadowblockshadedb}{13cm}{%
-    color(0pt)=(averagebackgroundcolor);
-    color(4pt)=(black!60!averagebackgroundcolor);
-    color(8pt)=(black!60!averagebackgroundcolor)}
-\end{colormixin}
-
-\pgfaliasshading{roundblock!20!averagebackgroundcolor}{roundblockshadeda}
-\pgfaliasshading{roundblock!15!averagebackgroundcolor}{roundblockshadeda}
-\pgfaliasshading{roundblock!10!averagebackgroundcolor}{roundblockshadedb}
-\pgfaliasshading{roundblock!5!averagebackgroundcolor}{roundblockshadedb}
-\pgfaliasshading{roundblock!2!averagebackgroundcolor}{roundblockshadedb}  
-
-\pgfaliasshading{roundalertblock!20!averagebackgroundcolor}{roundalertblockshadeda}
-\pgfaliasshading{roundalertblock!15!averagebackgroundcolor}{roundalertblockshadeda}
-\pgfaliasshading{roundalertblock!10!averagebackgroundcolor}{roundalertblockshadedb}
-\pgfaliasshading{roundalertblock!5!averagebackgroundcolor}{roundalertblockshadedb}
-\pgfaliasshading{roundalertblock!2!averagebackgroundcolor}{roundalertblockshadedb}  
-
-\pgfaliasshading{roundexampleblock!20!averagebackgroundcolor}{roundexampleblockshadeda}
-\pgfaliasshading{roundexampleblock!15!averagebackgroundcolor}{roundexampleblockshadeda}
-\pgfaliasshading{roundexampleblock!10!averagebackgroundcolor}{roundexampleblockshadedb}
-\pgfaliasshading{roundexampleblock!5!averagebackgroundcolor}{roundexampleblockshadedb}
-\pgfaliasshading{roundexampleblock!2!averagebackgroundcolor}{roundexampleblockshadedb}  
-
-\pgfaliasshading{shadowblock!20!averagebackgroundcolor}{shadowblockshadeda}
-\pgfaliasshading{shadowblock!15!averagebackgroundcolor}{shadowblockshadeda}
-\pgfaliasshading{shadowblock!10!averagebackgroundcolor}{shadowblockshadedb}
-\pgfaliasshading{shadowblock!5!averagebackgroundcolor}{shadowblockshadedb}
-\pgfaliasshading{shadowblock!2!averagebackgroundcolor}{shadowblockshadedb}  
-
-\pgfaliasshading{shadowballblock!20!averagebackgroundcolor}{shadowballblockshadeda}
-\pgfaliasshading{shadowballblock!15!averagebackgroundcolor}{shadowballblockshadeda}
-\pgfaliasshading{shadowballblock!10!averagebackgroundcolor}{shadowballblockshadedb}
-\pgfaliasshading{shadowballblock!5!averagebackgroundcolor}{shadowballblockshadedb}
-\pgfaliasshading{shadowballblock!2!averagebackgroundcolor}{shadowballblockshadedb}  
+  \beamerboxessetupshadows
+  \colorlet{darkgreen}{green!50!black}
+  \beamerboxesdeclarecolorscheme{block}{structure!75!averagebackgroundcolor}{structure!10!averagebackgroundcolor}
+  \beamerboxesdeclarecolorscheme{alert}{alert!75!averagebackgroundcolor}{alert!10!averagebackgroundcolor}
+  \beamerboxesdeclarecolorscheme{example}{darkgreen!75!averagebackgroundcolor}{darkgreen!10!averagebackgroundcolor}
 }
 
 \newcommand{\beamertemplateroundedblocks}{
   \beamertemplatesetupshadings
-  
-  \def\beamertemplateroundblockhead##1{% background color
-    \beamer@tempdim=\dp\beamer@tempbox%
-    \ifdim\beamer@tempdim<1.5pt%
-    \beamer@tempdim=1.5pt\fi
-    \setbox\beamer@tempbox=\hbox{\raise\beamer@tempdim\hbox{\box\beamer@tempbox}}%
-    \dp\beamer@tempbox=0pt%
-    \beamer@tempdim=\wd\beamer@tempbox%
-    \beamer@dima=\beamer@tempdim\advance\beamer@dima by2.2bp%
-    \beamer@dimb=\beamer@tempdim\advance\beamer@dimb by4bp%
-    \hbox{\begin{pgfpicture}{0bp}{-\ht\beamer@tempbox}{0bp}{-\ht\beamer@tempbox}
-      \color{##1}
-      \pgfqmoveto{-4}{-1}
-      \pgfqcurveto{-4}{1.2}{-2.2}{3}{0}{3}
-      \pgflineto{\pgfpoint{\the\beamer@tempdim}{3bp}}
-      \pgfcurveto%
-      {\pgfpoint{\the\beamer@dima}{3bp}}%
-      {\pgfpoint{\the\beamer@dimb}{1.2bp}}%
-      {\pgfpoint{\the\beamer@dimb}{-1bp}}%
-      \beamer@dima=-\ht\beamer@tempbox%
-      \advance\beamer@dima by-1pt%
-      \pgflineto{\pgfpoint{\the\beamer@dimb}{\the\beamer@dima}}
-      \pgflineto{\pgfpoint{-4bp}{\the\beamer@dima}}
-      \pgffill
-    \end{pgfpicture}%
-    \box\beamer@tempbox}%
-    \nointerlineskip}
 
-  \def\beamertemplateroundmidshade##1{% shading
-    \hbox{\kern-4bp%
-      \beamer@dima=\textwidth%
-      \advance\beamer@dima by8bp%
-      \begin{pgfpicture}{0pt}{0pt}{\textwidth}{6pt}
-        \pgfqmoveto{-4}{-1}
-        \pgfqlineto{-4}{7}
-        \pgflineto{\pgfpoint{\beamer@dima}{7bp}}
-        \pgflineto{\pgfpoint{\beamer@dima}{-1bp}}
-        \pgfclip
-        \pgfbox[left,base]{\pgfuseshading{##1}}%
-      \end{pgfpicture}
-      }%
-    \nointerlineskip%
-    }
-
-  \def\beamertemplateroundblocktail##1{% background color
-    \setbox\beamer@tempbox=\hbox{\raise\dp\beamer@tempbox\hbox{\box\beamer@tempbox}}%
-    \dp\beamer@tempbox=0pt%
-    %\vskip6pt%
-    \beamer@tempdim=\wd\beamer@tempbox%
-    \beamer@dima=\beamer@tempdim\advance\beamer@dima by2.2bp%
-    \beamer@dimb=\beamer@tempdim\advance\beamer@dimb by4bp%
-    \hbox{\begin{pgfpicture}{0bp}{0bp}{0bp}{0bp}
-      \color{##1}
-      \pgfqmoveto{-4}{1}
-      \pgfqcurveto{-4}{-1.2}{-2.2}{-3}{0}{-3}
-      \pgflineto{\pgfpoint{\the\beamer@tempdim}{-3bp}}
-      \pgfcurveto%
-      {\pgfpoint{\the\beamer@dima}{-3bp}}%
-      {\pgfpoint{\the\beamer@dimb}{-1.2bp}}%
-      {\pgfpoint{\the\beamer@dimb}{1bp}}%
-      \beamer@dima=\ht\beamer@tempbox%
-      \advance\beamer@dima by1pt%
-      \pgflineto{\pgfpoint{\the\beamer@dimb}{\the\beamer@dima}}
-      \pgflineto{\pgfpoint{-4bp}{\the\beamer@dima}}
-      \pgffill
-    \end{pgfpicture}%
-    \box\beamer@tempbox}
-  }
-
-  \useblocktemplate{\medskip\vbox\bgroup%
-    \ifx\insertblockname\@empty%
-    \setbox\beamer@tempbox=\hbox{}%
-    \wd\beamer@tempbox=\textwidth%
-    \ht\beamer@tempbox=0pt%
-    \beamertemplateroundblockhead{structure!10!averagebackgroundcolor}%
-    \else%    
-    \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\textwidth}\color{white}\insertblockname\end{minipage}}%
-    \beamertemplateroundblockhead{structure!75!averagebackgroundcolor}%
-    \beamertemplateroundmidshade{roundblock}%
-    \fi%
-    \setbox\beamer@tempbox=\hbox\bgroup\begin{minipage}[b]{\textwidth}}{\end{minipage}\egroup%
-    \beamertemplateroundblocktail{structure!10!averagebackgroundcolor}%
-    \egroup\medskip}
-  \usealertblocktemplate{\medskip\vbox\bgroup%
-    \ifx\insertblockname\@empty%
-    \setbox\beamer@tempbox=\hbox{}%
-    \wd\beamer@tempbox=\textwidth%
-    \ht\beamer@tempbox=0pt%
-    \beamertemplateroundblockhead{alert!10!averagebackgroundcolor}%
-    \else%    
-    \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\textwidth}\color{white}\insertblockname\end{minipage}}%
-    \beamertemplateroundblockhead{alert!75!averagebackgroundcolor}%
-    \beamertemplateroundmidshade{roundalertblock}%
-    \fi%
-    \setbox\beamer@tempbox=\hbox\bgroup\begin{minipage}[b]{\textwidth}}{\end{minipage}\egroup%
-    \beamertemplateroundblocktail{alert!10!averagebackgroundcolor}%
-    \egroup\medskip}  
-  \useexampleblocktemplate{\medskip\vbox\bgroup%
-    \ifx\insertblockname\@empty%
-    \setbox\beamer@tempbox=\hbox{}%
-    \wd\beamer@tempbox=\textwidth%
-    \ht\beamer@tempbox=0pt%
-    \beamertemplateroundblockhead{beamerdarkgreen!10!averagebackgroundcolor}%
-    \else%    
-    \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\textwidth}\color{white}\insertblockname\end{minipage}}%
-    \beamertemplateroundblockhead{beamerdarkgreen!75!averagebackgroundcolor}%
-    \beamertemplateroundmidshade{roundexampleblock}%
-    \fi%
-    \setbox\beamer@tempbox=\hbox\bgroup\begin{minipage}[b]{\textwidth}}{\end{minipage}\egroup%
-    \beamertemplateroundblocktail{beamerdarkgreen!10!averagebackgroundcolor}%
-    \egroup\medskip}  
+  \useblocktemplate{\medskip\begin{beamerboxesrounded}[scheme=block]{\color{white}\insertblockname}}%
+    {\end{beamerboxesrounded}\smallskip}
+  \usealertblocktemplate{\medskip\begin{beamerboxesrounded}[scheme=alert]{\color{white}\insertblockname}}%
+    {\end{beamerboxesrounded}\smallskip}
+  \useexampleblocktemplate{\medskip\begin{beamerboxesrounded}[scheme=example]{\color{white}\insertblockname}}%
+    {\end{beamerboxesrounded}\smallskip}
 }
 
-
 \newcommand{\beamertemplateshadowblocks}{
   \beamertemplatesetupshadings
 
-  \def\beamertemplateshadowblockhead##1{% background color
-    \beamer@tempdim=\dp\beamer@tempbox%
-    \ifdim\beamer@tempdim<1.5pt%
-    \beamer@tempdim=1.5pt\fi
-    \setbox\beamer@tempbox=\hbox{\raise\beamer@tempdim\hbox{\box\beamer@tempbox}}%
-    \dp\beamer@tempbox=0pt%
-    \beamer@blockheadheight=\ht\beamer@tempbox%
-    \beamer@tempdim=\wd\beamer@tempbox%
-    \beamer@dima=\beamer@tempdim\advance\beamer@dima by2.2bp%
-    \beamer@dimb=\beamer@tempdim\advance\beamer@dimb by4bp%
-    \hbox{%
-      \begin{pgfpicture}{0bp}{-\ht\beamer@tempbox}{0bp}{-\ht\beamer@tempbox}
-        \pgfputat{\pgfpoint{\the\beamer@dimb}{-5bp}}{\pgfbox[center,center]{\pgfuseshading{shadowballblock}}}
-        \color{##1}
-        \pgfqmoveto{-4}{-1}
-        \pgfqcurveto{-4}{1.2}{-2.2}{3}{0}{3}
-        \pgflineto{\pgfpoint{\the\beamer@tempdim}{3bp}}
-        \pgfcurveto%
-        {\pgfpoint{\the\beamer@dima}{3bp}}%
-        {\pgfpoint{\the\beamer@dimb}{1.2bp}}%
-        {\pgfpoint{\the\beamer@dimb}{-1bp}}%
-        \beamer@dima=-\ht\beamer@tempbox%
-        \advance\beamer@dima by-1pt%
-        \pgflineto{\pgfpoint{\the\beamer@dimb}{\the\beamer@dima}}
-        \pgflineto{\pgfpoint{-4bp}{\the\beamer@dima}}
-        \pgffill
-      \end{pgfpicture}%
-      \box\beamer@tempbox}%
-    \nointerlineskip}
-
-  \def\beamertemplateshadowmidshade##1{% shading
-    \hbox{\kern-4bp%
-      \beamer@dima=\textwidth%
-      \advance\beamer@dima by8bp%
-      \begin{pgfpicture}{0pt}{0pt}{\textwidth}{6pt}
-        \pgfqmoveto{-4}{-1}
-        \pgfqlineto{-4}{7}
-        \pgflineto{\pgfpoint{\beamer@dima}{7bp}}
-        \pgflineto{\pgfpoint{\beamer@dima}{-1bp}}
-        \pgfclip
-        \pgfbox[left,base]{\pgfuseshading{##1}}%
-      \end{pgfpicture}
-      }%
-    \nointerlineskip%
-    }
-
-  \def\beamertemplateshadowblocktail##1{% background color
-    \setbox\beamer@tempbox=\hbox{\raise\dp\beamer@tempbox\hbox{\box\beamer@tempbox}}%
-    \dp\beamer@tempbox=0pt%
-    %\vskip6pt%
-    \beamer@tempdim=\wd\beamer@tempbox%
-    \beamer@dima=\beamer@tempdim\advance\beamer@dima by2.2bp%
-    \beamer@dimb=\beamer@tempdim\advance\beamer@dimb by4bp%
-    \hbox{\begin{pgfpicture}{0bp}{0bp}{0bp}{0bp}
-      \pgfputat{\pgfpoint{4bp}{-3bp}}{\pgfbox[center,center]{\pgfuseshading{shadowballblock}}}
-      \pgfputat{\pgfpoint{\the\beamer@dimb}{-3bp}}{\pgfbox[center,center]{\pgfuseshading{shadowballblock}}}
-      \begin{pgfscope}
-        \pgfqmoveto{4}{1}
-        \pgfqlineto{4}{-7}
-        \pgflineto{\pgfpoint{\beamer@dimb}{-7bp}}
-        \pgflineto{\pgfpoint{\beamer@dimb}{1bp}}
-        \pgfclip
-        \pgfputat{\pgfpoint{4bp}{-7bp}}{\pgfbox[left,base]{\pgfuseshading{shadowblock}}}%
-      \end{pgfscope}
-      \begin{pgfscope}
-        \advance\beamer@tempdim by 4bp%
-        \pgfmoveto{\pgfpoint{\beamer@tempdim}{-3bp}}
-        \beamer@dima=\ht\beamer@tempbox%
-        \advance\beamer@dima by\beamer@blockheadheight%
-        \advance\beamer@dima by1bp%
-        \advance\beamer@dimb by4bp%
-        \pgflineto{\pgfpoint{\beamer@dimb}{-3bp}}
-        \pgflineto{\pgfpoint{\beamer@dimb}{\beamer@dima}}
-        \pgflineto{\pgfpoint{\beamer@tempdim}{\beamer@dima}}
-        \pgfclip
-        \advance\beamer@tempdim by4bp%
-        \pgfputat{\pgfpoint{\beamer@tempdim}{-3bp}}%
-        {\begin{pgfrotateby}{\pgfdegree{90}}\pgfbox[left,base]{\pgfuseshading{shadowblock}}\end{pgfrotateby}}%
-      \end{pgfscope}
-      \color{##1}
-      \pgfqmoveto{-4}{1}
-      \pgfqcurveto{-4}{-1.2}{-2.2}{-3}{0}{-3}
-      \pgflineto{\pgfpoint{\the\beamer@tempdim}{-3bp}}
-      \pgfcurveto%
-      {\pgfpoint{\the\beamer@dima}{-3bp}}%
-      {\pgfpoint{\the\beamer@dimb}{-1.2bp}}%
-      {\pgfpoint{\the\beamer@dimb}{1bp}}%
-      \beamer@dima=\ht\beamer@tempbox%
-      \advance\beamer@dima by1pt%
-      \pgflineto{\pgfpoint{\the\beamer@dimb}{\the\beamer@dima}}
-      \pgflineto{\pgfpoint{-4bp}{\the\beamer@dima}}
-      \pgffill
-    \end{pgfpicture}%
-    \box\beamer@tempbox}
-  }
-
-  \useblocktemplate{\medskip\vbox\bgroup%
-    \ifx\insertblockname\@empty%
-    \setbox\beamer@tempbox=\hbox{}%
-    \wd\beamer@tempbox=\textwidth%
-    \ht\beamer@tempbox=0pt%
-    \beamertemplateshadowblockhead{structure!10!averagebackgroundcolor}%
-    \beamer@blockheadheight=-4.5pt%
-    \else%    
-    \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\textwidth}\color{white}\insertblockname\end{minipage}}%
-    \beamertemplateshadowblockhead{structure!75!averagebackgroundcolor}%
-    \beamertemplateshadowmidshade{roundblock}%
-    \fi%
-    \setbox\beamer@tempbox=\hbox\bgroup\begin{minipage}[b]{\textwidth}}{\end{minipage}\egroup%
-    \beamertemplateshadowblocktail{structure!10!averagebackgroundcolor}%
-    \egroup\medskip}
-  \usealertblocktemplate{\medskip\vbox\bgroup%
-    \ifx\insertblockname\@empty%
-    \setbox\beamer@tempbox=\hbox{}%
-    \wd\beamer@tempbox=\textwidth%
-    \ht\beamer@tempbox=0pt%
-    \beamertemplateshadowblockhead{alert!10!averagebackgroundcolor}%
-    \else%    
-    \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\textwidth}\color{white}\insertblockname\end{minipage}}%
-    \beamertemplateshadowblockhead{alert!75!averagebackgroundcolor}%
-    \beamertemplateshadowmidshade{roundalertblock}%
-    \fi%
-    \setbox\beamer@tempbox=\hbox\bgroup\begin{minipage}[b]{\textwidth}}{\end{minipage}\egroup%
-    \beamertemplateshadowblocktail{alert!10!averagebackgroundcolor}%
-    \egroup\medskip}  
-  \useexampleblocktemplate{\medskip\vbox\bgroup%
-    \ifx\insertblockname\@empty%
-    \setbox\beamer@tempbox=\hbox{}%
-    \wd\beamer@tempbox=\textwidth%
-    \ht\beamer@tempbox=0pt%
-    \beamertemplateshadowblockhead{beamerdarkgreen!10!averagebackgroundcolor}%
-    \else%    
-    \setbox\beamer@tempbox=\hbox{\begin{minipage}[b]{\textwidth}\color{white}\insertblockname\end{minipage}}%
-    \beamertemplateshadowblockhead{beamerdarkgreen!75!averagebackgroundcolor}%
-    \beamertemplateshadowmidshade{roundexampleblock}%
-    \fi%
-    \setbox\beamer@tempbox=\hbox\bgroup\begin{minipage}[b]{\textwidth}}{\end{minipage}\egroup%
-    \beamertemplateshadowblocktail{beamerdarkgreen!10!averagebackgroundcolor}%
-    \egroup\medskip}  
+  \useblocktemplate{\medskip\begin{beamerboxesrounded}[shadow=true,scheme=block]{\color{white}\insertblockname}}%
+    {\end{beamerboxesrounded}}
+  \usealertblocktemplate{\medskip\begin{beamerboxesrounded}[shadow=true,scheme=alert]{\color{white}\insertblockname}}%
+    {\end{beamerboxesrounded}}
+  \useexampleblocktemplate{\medskip\begin{beamerboxesrounded}[shadow=true,scheme=example]{\color{white}\insertblockname}}%
+    {\end{beamerboxesrounded}}
 }

beamerthemesplit.sty

     \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%
+      {\color{black}\hskip\Gm@lmargin\vrule width.5\paperwidth height\ht\linebox
+      \color{structure}\vrule width.5\paperwidth height\ht\linebox\hskip-\paperwidth\hskip\Gm@lmargin}%
+      \hskip-\Gm@lmargin\box\linebox\hfill\hskip\Gm@rmargin%
       }%
   }%
 }

doc/beameruserguide.pdf

Binary file modified.

doc/beameruserguide.tex

 \pgfdeclareimage[width=6.66666cm,height=5cm]{themesidebardarktab2}{themesidebardarktab2}
 \pgfdeclareimage[width=6.66666cm,height=5cm]{themesplit}{themesplit}
 \pgfdeclareimage[width=6.66666cm,height=5cm]{themesplit2}{themesplit2}
+\pgfdeclareimage[width=6.66666cm,height=5cm]{themeshadow}{themeshadow}
+\pgfdeclareimage[width=6.66666cm,height=5cm]{themeshadow2}{themeshadow2}
 \pgfdeclareimage[width=6.66666cm,height=5cm]{themesplitcondensed}{themesplitcondensed}
 \pgfdeclareimage[width=6.66666cm,height=5cm]{themesplitcondensed2}{themesplitcondensed2}
 \pgfdeclareimage[width=6.66666cm,height=5cm]{themetree}{themetree}
 
 \begin{document}
 
-\title{User's Guide to the Beamer Class, Version 1.00\\
+\title{User's Guide to the Beamer Class, Version 1.00-dev\\
 \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}}}
 \end{smallpackage}
 
 
+\begin{smallpackage}{{beamerthemeshadow}}
+  \example
+
+  \pgfuseimage{themeshadow}\quad\pgfuseimage{themeshadow2}
+\end{smallpackage}
+
 \begin{smallpackage}{{beamerthemesplit}}
   \example
 

examples/beamerexample1.pdf

Binary file modified.

examples/beamerexample1.tex

-\documentclass[red]{beamer}
+\documentclass{beamer}
 
 % Try the class options [notes], [notesonly], [trans], [handout],
 % [red], [compress], [draft] and see what happens!
 
 \beamertemplateshadingbackground{red!10}{structure!10}
 
+\usepackage{beamerboxes}
 \usepackage{beamerthemeshadow}
 \usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}
 \usepackage{amsmath,amssymb}
 
 \logo{\vbox{\hbox to 1cm{\hfil\pgfuseimage{tu-logo}}\vskip0.1cm\hbox{\pgfuseimage{ur-logo}}}}
 
-
 \begin{document}
 
 \frame{\titlepage}
   \end{Definition}
 
   \begin{Example}<1>
-    $G_1\colon S \to 00S0 \mid 1$.
-    
-    $G_2\colon S \to 0S10 \mid 0$.
+    $G_1\colon S \to 00S0 \mid 1$ and $G_2\colon S \to 0S10 \mid 0$.
   \end{Example}
 
   \begin{Definition}<2->
   \end{Definition}
 
   \begin{Example}<2->
-    $G_1$ is deterministic.
+    $G_1\colon S \to 00S0 \mid 1$ is deterministic.
     
-    $G_2$ is \alert{not} deterministic.
-  \end{Example}  
+    $G_2\colon S \to 0S10 \mid 0$ is \alert{not} deterministic.
+  \end{Example} 
 }
 \note{Just explain intuition using the example.}