Slides/document/beamerthemeplaincu.sty
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Thu, 06 Dec 2012 15:11:21 +0000
changeset 0 110247f9d47e
child 5 0f2d4b78f839
permissions -rw-r--r--
added
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
\ProvidesPackage{beamerthemeplaincu}[2003/11/07 ver 0.93]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
% Copyright 2003 by Till Tantau <tantau@cs.tu-berlin.de>.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
% This program can be redistributed and/or modified under the terms
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
% of the LaTeX Project Public License Distributed from CTAN
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
% archives in directory macros/latex/base/lppl.txt.
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
\newcommand{\slidecaption}{}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
\mode<presentation>
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
% comic fonts fonts
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    16
\DeclareFontFamily{T1}{comic}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    17
\DeclareFontShape{T1}{comic}{m}{n}{<->s*[.9]comic8t}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    18
\DeclareFontShape{T1}{comic}{m}{it}{<->s*[.9]comic8t}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    19
\DeclareFontShape{T1}{comic}{m}{sc}{<->s*[.9]comic8t}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    20
\DeclareFontShape{T1}{comic}{b}{n}{<->s*[.9]comicbd8t}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    21
\DeclareFontShape{T1}{comic}{b}{it}{<->s*[.9]comicbd8t}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    22
\DeclareFontShape{T1}{comic}{m}{sl}{<->ssub * comic/m/it}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    23
\DeclareFontShape{T1}{comic}{b}{sc}{<->sub * comic/m/sc}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    24
\DeclareFontShape{T1}{comic}{b}{sl}{<->ssub * comic/b/it}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    25
\DeclareFontShape{T1}{comic}{bx}{n}{<->ssub * comic/b/n}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    26
\DeclareFontShape{T1}{comic}{bx}{it}{<->ssub * comic/b/it}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    27
\DeclareFontShape{T1}{comic}{bx}{sc}{<->sub * comic/m/sc}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    28
\DeclareFontShape{T1}{comic}{bx}{sl}{<->ssub * comic/b/it}{}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    29
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    30
\renewcommand{\rmdefault}{comic}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    31
\renewcommand{\sfdefault}{comic}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    32
\renewcommand{\mathfamilydefault}{cmr}% mathfont should be still the old one
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    33
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    34
\DeclareMathVersion{bold}% mathfont needs to be bold
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    35
\DeclareSymbolFont{operators}{OT1}{cmr}{b}{n}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    36
\SetSymbolFont{operators}{bold}{OT1}{cmr}{b}{n}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    37
\DeclareSymbolFont{letters}{OML}{cmm}{b}{it}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    38
\SetSymbolFont{letters}{bold}{OML}{cmm}{b}{it}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    39
\DeclareSymbolFont{symbols}{OMS}{cmsy}{b}{n}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    40
\SetSymbolFont{symbols}{bold}{OMS}{cmsy}{b}{n}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    41
\DeclareSymbolFont{largesymbols}{OMX}{cmex}{b}{n}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    42
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    43
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    44
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    45
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    46
%                              % Title page  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    47
%\usetitlepagetemplate{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    48
%  \vbox{}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    49
%  \vfill
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    50
%  \begin{centering}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    51
%    \Large\structure{\textrm{\textit{{\inserttitle}}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    52
%    \vskip1em\par
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    53
%    \normalsize\insertauthor\vskip1em\par
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    54
%    {\scriptsize\insertinstitute\par}\par\vskip1em
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    55
%    \insertdate\par\vskip1.5em
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    56
%    \inserttitlegraphic
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    57
%  \end{centering}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    58
%  \vfill
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    59
%  }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    60
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    61
                                % Part page  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    62
%\usepartpagetemplate{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    63
%  \begin{centering}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    64
%    \Large\structure{\textrm{\textit{\partname~\@Roman\c@part}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    65
%    \vskip1em\par
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    66
%    \textrm{\textit{\insertpart}}\par
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    67
%  \end{centering}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    68
%  }
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    69
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    70
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    71
% Frametitles
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    72
\setbeamerfont{frametitle}{size={\huge}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    73
\setbeamerfont{frametitle}{family={\usefont{T1}{ptm}{b}{n}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    74
\setbeamercolor{frametitle}{fg=gray,bg=white}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    75
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    76
\setbeamertemplate{frametitle}{%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    77
\vskip 2mm  % distance from the top margin
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    78
\hskip -3mm % distance from left margin
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    79
\vbox{%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    80
\begin{minipage}{1.05\textwidth}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    81
\centering%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    82
\insertframetitle%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    83
\end{minipage}}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    84
}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    85
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    86
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    87
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    88
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    89
% Foot
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    90
%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    91
\setbeamertemplate{navigation symbols}{} 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    92
\usefoottemplate{%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    93
\vbox{%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    94
  \tinyline{%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    95
    \tiny\hfill\textcolor{gray!50}{\slidecaption{} --
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    96
      p.~\insertframenumber/\inserttotalframenumber}}}%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    97
}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    98
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    99
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   100
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   101
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   102
\beamertemplateballitem
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   103
\setlength\leftmargini{2mm}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   104
\setlength\leftmarginii{0.6cm}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   105
\setlength\leftmarginiii{1.5cm}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   106
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   107
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   108
% blocks
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   109
%\definecolor{cream}{rgb}{1,1,.65}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   110
\definecolor{cream}{rgb}{1,1,.8}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   111
\setbeamerfont{block title}{size=\normalsize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   112
\setbeamercolor{block title}{fg=black,bg=cream}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   113
\setbeamercolor{block body}{fg=black,bg=cream}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   114
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   115
\setbeamertemplate{blocks}[rounded][shadow=true]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   116
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   117
\setbeamercolor{boxcolor}{fg=black,bg=cream}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   118
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   119
\mode
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   120
<all>
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   121
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   122
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   123
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   124
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   125
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   126