Debian Codegraph @

texmf-dist/tex/latex/beamer/beamerbasethemes.sty

raw
1 % Copyright 2003--2007 by Till Tantau
2 % Copyright 2010 by Vedran Mileti\'c
3 % Copyright 2017 by Joseph Wright
4 %
5 % This file may be distributed and/or modified
6 %
7 % 1. under the LaTeX Project Public License and/or
8 % 2. under the GNU Public License.
9 %
10 % See the file LICENSE.md for more details.
11
12 %
13 % Basic commands for including themes
14 %
15 \mode
16 <presentation>
17 {
18 \def\beamer@calltheme#1#2#3{%
19 \def\beamer@themelist{#2}%
20 \@for\beamer@themename:=\beamer@themelist\do
21 {\usepackage[{#1}]{#3\beamer@themename}}}
22
23 \newrobustcmd*\usetheme[2][]{\beamer@calltheme{#1}{#2}{beamertheme}}
24 \newrobustcmd*\usecolortheme[2][]{\beamer@calltheme{#1}{#2}{beamercolortheme}}
25 \newrobustcmd*\usefonttheme[2][]{\beamer@calltheme{#1}{#2}{beamerfonttheme}}
26 \newrobustcmd*\useoutertheme[2][]{\beamer@calltheme{#1}{#2}{beameroutertheme}}
27 \newrobustcmd*\useinnertheme[2][]{\beamer@calltheme{#1}{#2}{beamerinnertheme}}
28 }
29
30 \mode
31 <article>
32 {
33 \newrobustcmd*\usetheme[2][]{}
34 \newrobustcmd*\usecolortheme[2][]{}
35 \newrobustcmd*\usefonttheme[2][]{}
36 \newrobustcmd*\useoutertheme[2][]{}
37 \newrobustcmd*\useinnertheme[2][]{}
38 }
39
40 \mode
41 <all>