Commits

Till Tantau  committed 1623e5e

added shadows

  • Participants
  • Parent commits 7232707

Comments (0)

Files changed (5)

 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{beamer}
-[2003/11/12 v1.00 Class for Typesetting a Beamer Presentation]
+[2003/11/12 v1.00-dev Class for Typesetting a Beamer Presentation]
 
 % Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>.
 %
 \RequirePackage{keyval}
 % For \tableofcontents parameters
 
+\RequirePackage{beamertemplates}
+% For default templates
+
 
 %
 %
     \color{\beamernavigationcolorstrong}%
     \pgfuseobject{beamerframenavstrong}%
   \end{pgfpicture}\kern-20pt%
-  \hyperlinkframeendprev{\kern4pt}%
-  \hyperlinkframestart{\kern5.5pt}%
-  \hyperlinkframeend{\kern5.5pt}%
+  \hyperlinkframeendprev{\kern5pt}%
+  \hyperlinkframestart{\kern5pt}%
+  \hyperlinkframeend{\kern5pt}%
   \hyperlinkframestartnext{\kern5pt}}
 
 \pgfdefobject{beamersubsectionnavlight}{\pgfpoint{0pt}{-1pt}}{\pgfpoint{20pt}{5pt}}
     \color{\beamernavigationcolorstrong}%
     \pgfuseobject{beamersubsectionnavstrong}%
   \end{pgfpicture}\kern-20pt%
-  \hyperlinksubsectionendprev{\kern4pt}%
-  \hyperlinksubsectionstart{\kern5.5pt}%
-  \hyperlinksubsectionend{\kern5.5pt}%
+  \hyperlinksubsectionendprev{\kern5pt}%
+  \hyperlinksubsectionstart{\kern5pt}%
+  \hyperlinksubsectionend{\kern5pt}%
   \hyperlinksubsectionstartnext{\kern5pt}}
 
 \pgfdefobject{beamersectionnavlight}{\pgfpoint{0pt}{-1pt}}{\pgfpoint{20pt}{5pt}}
     \color{\beamernavigationcolorstrong}%
     \pgfuseobject{beamersectionnavstrong}%
   \end{pgfpicture}\kern-20pt%
-  \hyperlinksectionendprev{\kern4pt}%
-  \hyperlinksectionstart{\kern5.5pt}%
-  \hyperlinksectionend{\kern5.5pt}%
+  \hyperlinksectionendprev{\kern5pt}%
+  \hyperlinksectionstart{\kern5pt}%
+  \hyperlinksectionend{\kern5pt}%
   \hyperlinksectionstartnext{\kern5pt}}
 
 \ifx\beamer@startpageofappendix\@empty
 %
 %
  
-                                % 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
-  }
-
-                                % Part page  
-\usepartpagetemplate{
-  \begin{centering}
-    \Large\structure{\partname~\insertromanpartnumber}
-    \vskip1em\par
-    \insertpart\par
-  \end{centering}
-  }
-
-                                % Frametitles
-\useframetitletemplate{%
-  \begin{centering}
-    \structure{\textbf{\insertframetitle}}
-    \par
-  \end{centering}
-}
+\beamertemplatelargetitlepage
+\beamertemplatelargepartpage
+\beamertemplateboldcenterframetitle
 
                                 % Sections in headline
 \usesectionheadtemplate
 {\color{structure!50!averagebackgroundcolor}\tiny\insertsubsectionhead}
 
                                 % Mini slides in headline
-\def\sphereradius{0.05cm}
-\useminislidetemplate
-{%
-  \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
-    \color{structure}
-    \pgfcircle[fillstroke]{\pgfpoint{\sphereradius}{\sphereradius}}{\sphereradius}%
-  \end{pgfpicture}%
-  }
-{%
-  \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
-    \color{structure}
-    \pgfcircle[stroke]{\pgfpoint{\sphereradius}{\sphereradius}}{\sphereradius}%
-  \end{pgfpicture}%
-  }
-{%
-  \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
-    \color{structure!50!averagebackgroundcolor}
-    \pgfcircle[stroke]{\pgfpoint{\sphereradius}{\sphereradius}}{\sphereradius}%
-  \end{pgfpicture}%
-  }
-{.14cm}{.03cm}
+\beamertemplatesphereminiframe
 
                                 % Entries in table of contents
 \usetemplatetocsection[50!averagebackgroundcolor]
   \vskip1.5pt%
   \insertvrule{0.4pt}{structure!50!averagebackgroundcolor}}%
 }
-
-                                % Footline
 \usefoottemplate{}
-
-                                % Background
 \usebackgroundtemplate{}
 
                                 % Blocks
 \useitemizetemplate{}{}
 \usesubitemizetemplate{\begin{small}}{\end{small}}
 
-
-                                % Buttons
-\usebuttontemplate{%
-  \setbox\beamer@tempbox=\hbox{\tiny\color{white}\insertbuttontext}%
-  \ht\beamer@tempbox=6pt%
-  \dp\beamer@tempbox=0pt%
-  \setbox\beamer@tempbox=\vbox{\box\beamer@tempbox\vskip2pt}%
-  \beamer@tempdim=\wd\beamer@tempbox%
-  \newdimen\dima
-  \newdimen\dimb
-  \dima=\beamer@tempdim\advance\dima by2.2pt
-  \dimb=\beamer@tempdim\advance\dimb by4pt
-  \begin{pgfpicture}{-4pt}{0pt}{\the\beamer@tempdim}{8pt}
-    \color{structure!50!averagebackgroundcolor}
-    \pgfsetlinewidth{0.8pt}
-    \pgfqmoveto{0}{0}
-    \pgfqcurveto{-2.2}{0}{-4}{1.8}{-4}{4}
-    \pgfqcurveto{-4}{6.2}{-2.2}{8}{0}{8}
-    \pgflineto{\pgfpoint{\the\beamer@tempdim}{8pt}}
-    \pgfcurveto%
-    {\pgfpoint{\the\dima}{8pt}}%
-    {\pgfpoint{\the\dimb}{6.2pt}}%
-    {\pgfpoint{\the\dimb}{4pt}}
-    \pgfcurveto%
-    {\pgfpoint{\the\dimb}{1.8pt}}%
-    {\pgfpoint{\the\dima}{0pt}}%
-    {\pgfpoint{\the\beamer@tempdim}{0pt}}
-    \pgffill
-  \end{pgfpicture}%
-  \hskip-\beamer@tempdim%
-  \box\beamer@tempbox%
-  \kern4pt}
-
-\usenavigationsymbolstemplate{\hbox{%
-  \hbox{\insertslidenavigationsymbol}
-  \hbox{\insertframenavigationsymbol}
-  \hbox{\insertsubsectionnavigationsymbol}
-  \hbox{\insertsectionnavigationsymbol}
-  \hbox{\insertdocnavigationsymbol}
-  \hbox{\insertbackfindforwardnavigationsymbol}}}
+\beamertemplatesolidbuttons
+\beamertemplatenavigationsymbolshorizontal
 
 %%% Local Variables: 
 %%% mode: latex

File beamertemplates.sty

 % of the LaTeX Project Public License Distributed from CTAN
 % archives in directory macros/latex/base/lppl.txt.
 
+%
+% Title and part page templates
+%
+
+\newcommand{\beamertemplatelargetitlepage}{
+  \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
+  }
+}
+
+\newcommand{\beamertemplateboldtitlepage}{
+  \usetitlepagetemplate{
+    \vbox{}
+    \vfill
+    \begin{centering}
+      \large\structure{\textbf{\inserttitle}}
+      \vskip1em\par
+      \normalsize\insertauthor\vskip1em\par
+      {\scriptsize\insertinstitute\par}\par\vskip1em
+      \insertdate\par\vskip1.5em
+      \inserttitlegraphic
+    \end{centering}
+    \vfill
+  }
+} 
+
+\newcommand{\beamertemplatelargepartpage}{
+  \usepartpagetemplate{
+    \begin{centering}
+      \Large\structure{\partname~\insertromanpartnumber}
+      \vskip1em\par
+      \insertpart\par
+    \end{centering}
+  }
+}
+
+\newcommand{\beamertemplateboldpartpage}{
+  \usepartpagetemplate{
+    \begin{centering}
+      \large\structure{\partname~\insertromanpartnumber}
+      \vskip1em\par
+      \textbf{\insertpart}\par
+    \end{centering}
+  }
+}
+
+
+%
+% Frame title templates
+%
+
+\newcommand{\beamertemplateboldcenterframetitle}{
+  \useframetitletemplate{%
+    \begin{centering}
+      \structure{\textbf{\insertframetitle}}
+      \par
+    \end{centering}
+  }
+}
+
+  
+\newcommand{\beamertemplatelargeframetitle}{
+  \useframetitletemplate{%
+    {\leftskip-\beamer@leftmargin\advance\leftskip by0.3cm%
+     \rightskip-\beamer@rightmargin plus1fil\advance\rightskip by0.3cm\leavevmode
+      \color{structure}
+      \Large\insertframetitle\par}%
+    }
+}
+  
+
+
 
 %
 % Itemize templates
 % Mini navigation bar frame templates
 %
 
+\newcommand{\beamertemplatesphereminiframe}{
+  \def\beamer@sphereradius{0.05cm}
+  \useminislidetemplate
+  {%
+    \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
+      \color{structure}
+      \pgfcircle[fillstroke]{\pgfpoint{\beamer@sphereradius}{\beamer@sphereradius}}{\beamer@sphereradius}%
+    \end{pgfpicture}%
+  }
+  {%
+    \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
+      \color{structure}
+      \pgfcircle[stroke]{\pgfpoint{\beamer@sphereradius}{\beamer@sphereradius}}{\beamer@sphereradius}%
+    \end{pgfpicture}%
+  }
+  {%
+    \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
+      \color{structure!50!averagebackgroundcolor}
+      \pgfcircle[stroke]{\pgfpoint{\beamer@sphereradius}{\beamer@sphereradius}}{\beamer@sphereradius}%
+    \end{pgfpicture}%
+  }
+  {.14cm}{.03cm}
+}
+
 \newcommand{\beamertemplateboxminiframe}{
   \useminislidetemplate{%
     \begin{pgfpicture}{0pt}{0pt}{.1cm}{.1cm}
 
 \newdimen\beamer@dima%
 \newdimen\beamer@dimb%
+\newdimen\beamer@blockheadheight%
 
 \newcommand{\beamertemplateoutlinebuttons}
 {\usebuttontemplate{%
 % Blocks
 %
 
+\newcommand{\beamertemplateboldblocks}{
+  \useblocktemplate{\medskip{\color{structure}\textbf{\insertblockname}}\par}{\medskip}
+  \usealertblocktemplate{\medskip{\alert{\textbf{\insertblockname}}}\par}{\medskip}
+  \useexampleblocktemplate{\medskip\begingroup{\color{structure!50!green}\textbf{\insertblockname}}\par%
+    \color{black!50!green}}{\endgroup\medskip}
+}
+
+\newcommand{\beamertemplatelargeblocks}{
+  \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}
+}
+
+
+\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}  
+}
+
 \newcommand{\beamertemplateroundedblocks}{
-
+  \beamertemplatesetupshadings
+  
   \def\beamertemplateroundblockhead##1{% background color
     \beamer@tempdim=\dp\beamer@tempbox%
     \ifdim\beamer@tempdim<1.5pt%
     \end{pgfpicture}%
     \box\beamer@tempbox}
   }
-  \colorlet{darkgreen}{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)=(darkgreen!10!averagebackgroundcolor);
-    color(2pt)=(darkgreen!10!averagebackgroundcolor);
-    color(4pt)=(darkgreen!75!averagebackgroundcolor);
-    color(6pt)=(darkgreen!75!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)=(darkgreen!10!averagebackgroundcolor);
-    color(2pt)=(darkgreen!10!averagebackgroundcolor);
-    color(4pt)=(darkgreen!75!averagebackgroundcolor);
-    color(6pt)=(darkgreen!75!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)=(darkgreen!10!averagebackgroundcolor);
-    color(2pt)=(darkgreen!10!averagebackgroundcolor);
-    color(4pt)=(darkgreen!75!averagebackgroundcolor);
-    color(6pt)=(darkgreen!75!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}  
 
   \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%
-    \beamertemplateroundmidshade{roundblock}%
     \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%
-    \beamertemplateroundmidshade{roundalertblock}%
     \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{darkgreen!75!averagebackgroundcolor}%
+    \beamertemplateroundblockhead{beamerdarkgreen!75!averagebackgroundcolor}%
+    \beamertemplateroundmidshade{roundexampleblock}%
+    \fi%
     \setbox\beamer@tempbox=\hbox\bgroup\begin{minipage}[b]{\textwidth}}{\end{minipage}\egroup%
-    \beamertemplateroundmidshade{roundexampleblock}%
-    \beamertemplateroundblocktail{darkgreen!10!averagebackgroundcolor}%
+    \beamertemplateroundblocktail{beamerdarkgreen!10!averagebackgroundcolor}%
     \egroup\medskip}  
 }
+
+
+\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}  
+}

File beamerthemesplit.sty

 % 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}%
-  }
-
+\beamertemplatelargetitlepage
+\beamertemplatelargeframetitle
 
                                 % Sections in headline
 \usesectionheadtemplate
   \def\insertlogo{#1}%
   \usefoottemplate{%
     \vbox{%
-      \hbox to\textwidth{\hfill\setbox\logobox=\hbox{\raise 10pt\hbox{\insertlogo}}\ht\logobox=0pt\box\logobox\hskip-\Gm@rmargin\hskip0.1cm}\vskip2pt%
+      \hbox to\textwidth{\hfill%
+        \setbox\logobox=\hbox{\raise 10pt\hbox{\insertlogo}\llap{\insertnavigationsymbols}}\ht\logobox=0pt%
+        \box\logobox\hskip-\Gm@rmargin\hskip0.1cm}\vskip2pt%
     \hbox{%
     \setbox\linebox=\hbox to\paperwidth{%
       \hbox to.5\paperwidth{\hfill\tiny\color{white}\textbf{\insertshortauthor}\hskip.3cm}%
     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}
-
-                                % Buttons
-\userightsidebartemplate{0cm}{%
-  \vfill\llap{\insertnavigationsymbols}}
+\beamertemplatelargeblocks

File examples/beamerexample1.pdf

Binary file modified.

File examples/beamerexample1.tex

 
 % Use some nice templates
 
-\beamertemplateshadingbackground{red!10}{structure!10}
+\beamertemplateshadingbackground{red!20}{structure!20}
 \beamertemplatetransparentcovereddynamic
 \beamertemplateballitem
 \beamertemplatesolidbuttons
-\beamertemplateroundedblocks
+\beamertemplateshadowblocks
 
 %
 % The following defintions are peculiar to this particular
 {
   \frametitle{Summary}
 
-  \begin{itemize}
-  \item
-    Overhead-free computation is a more faithful\\
-    \alert{model of fixed-size memory}.
-  \item
-    Overhead-free computation is \alert{less powerful} than linear space.
-  \item
-    \alert{Many} context-free languages can be accepted\\
-    by overhead-free machines.
-  \item
-    We conjecture that \alert{all} context-free languages are in
-    $\NOFpoly$.
-  \item
-    Our results can be seen as new results on the power of\\
-    \alert{linear bounded automata with fixed alphabet} size.
-  \end{itemize}
+  \begin{block}{}
+    \begin{itemize}
+    \item
+      Overhead-free computation is a more faithful\\
+      \alert{model of fixed-size memory}.
+    \item
+      Overhead-free computation is \alert{less powerful} than linear space.
+    \item
+      \alert{Many} context-free languages can be accepted\\
+      by overhead-free machines.
+    \item
+      We conjecture that \alert{all} context-free languages are in
+      $\NOFpoly$.
+    \item
+      Our results can be seen as new results on the power of\\
+      \alert{linear bounded automata with fixed alphabet} size.
+    \end{itemize}
+  \end{block}
 }
 \noteitems{
 \item Point out result concerning all context-free languages.