Source

beamer / base / beamerbasethemes.sty

Full commit
% Copyright 2007 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.

\ProvidesPackageRCS $Header$

% 
% Basic commands for including themes
%
\mode<presentation>
{
  \def\beamer@calltheme#1#2#3{%
    \def\beamer@themelist{#2}
    \@for\beamer@themename:=\beamer@themelist\do
    {\usepackage[#1]{#3\beamer@themename}}}
  
  \newcommand\usetheme[2][]{\beamer@calltheme{#1}{#2}{beamertheme}}
  \newcommand\usecolortheme[2][]{\beamer@calltheme{#1}{#2}{beamercolortheme}}
  \newcommand\usefonttheme[2][]{\beamer@calltheme{#1}{#2}{beamerfonttheme}}
  \newcommand\useoutertheme[2][]{\beamer@calltheme{#1}{#2}{beameroutertheme}}
  \newcommand\useinnertheme[2][]{\beamer@calltheme{#1}{#2}{beamerinnertheme}}
}

\mode<article>
{
  \newcommand\usetheme[2][]{}
  \newcommand\usecolortheme[2][]{}
  \newcommand\usefonttheme[2][]{}
  \newcommand\useoutertheme[2][]{}
  \newcommand\useinnertheme[2][]{}
}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "~/texmf/tex/latex/beamer/examples/beamerexample1.tex"
%%% End: