slides/beamerthemeplaincu.sty
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Thu, 27 Aug 2015 09:36:20 +0800
changeset 337 4955de7cda06
parent 71 be5353ce1865
permissions -rw-r--r--
update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
71
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
%%\Providespackage{beamerthemeplainculight}[2003/11/07 ver 0.93]
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
be5353ce1865 added slides
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>.
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
%
be5353ce1865 added slides
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
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
% of the LaTeX Project Public License Distributed from CTAN
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
% archives in directory macros/latex/base/lppl.txt.
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
 
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
\newcommand{\slidecaption}{}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
\mode<presentation>
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
\usepackage{fontspec}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
\usefonttheme{serif}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    16
\defaultfontfeatures{Ligatures=TeX}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    17
\setromanfont{Hoefler Text}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    18
\setmonofont[Scale=MatchLowercase]{Consolas}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    19
\newfontfamily{\consolas}{Consolas}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    20
\newcommand{\tttext}[1]{{\consolas{#1}}}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    21
%%\setttfont{Lucida Console}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    22
%%\setmainfont[Mapping=tex-text]{Hoefler Text}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    23
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    24
%%\renewcommand\ttdefault{lmtt}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    25
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    26
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    27
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    28
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    29
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    30
% comic fonts fonts
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    31
%\DeclareFontFamily{T1}{comic}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    32
%\DeclareFontShape{T1}{comic}{m}{n}{<->s*[.9]comic8t}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    33
%\DeclareFontShape{T1}{comic}{m}{it}{<->s*[.9]comic8t}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    34
%\DeclareFontShape{T1}{comic}{m}{sc}{<->s*[.9]comic8t}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    35
%\DeclareFontShape{T1}{comic}{b}{n}{<->s*[.9]comicbd8t}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    36
%\DeclareFontShape{T1}{comic}{b}{it}{<->s*[.9]comicbd8t}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    37
%\DeclareFontShape{T1}{comic}{m}{sl}{<->ssub * comic/m/it}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    38
%\DeclareFontShape{T1}{comic}{b}{sc}{<->sub * comic/m/sc}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    39
%\DeclareFontShape{T1}{comic}{b}{sl}{<->ssub * comic/b/it}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    40
%\DeclareFontShape{T1}{comic}{bx}{n}{<->ssub * comic/b/n}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    41
%\DeclareFontShape{T1}{comic}{bx}{it}{<->ssub * comic/b/it}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    42
%\DeclareFontShape{T1}{comic}{bx}{sc}{<->sub * comic/m/sc}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    43
%\DeclareFontShape{T1}{comic}{bx}{sl}{<->ssub * comic/b/it}{}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    44
%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    45
%\renewcommand{\rmdefault}{comic}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    46
%\renewcommand{\sfdefault}{comic}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    47
\renewcommand{\mathfamilydefault}{cmr}% mathfont should be still the old one
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    48
%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    49
\DeclareMathVersion{bold}% mathfont needs to be bold
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    50
\DeclareSymbolFont{operators}{OT1}{cmr}{b}{n}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    51
\SetSymbolFont{operators}{bold}{OT1}{cmr}{b}{n}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    52
\DeclareSymbolFont{letters}{OML}{cmm}{b}{it}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    53
\SetSymbolFont{letters}{bold}{OML}{cmm}{b}{it}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    54
\DeclareSymbolFont{symbols}{OMS}{cmsy}{b}{n}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    55
\SetSymbolFont{symbols}{bold}{OMS}{cmsy}{b}{n}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    56
\DeclareSymbolFont{largesymbols}{OMX}{cmex}{b}{n}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    57
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    58
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    59
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    60
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    61
% Frametitles
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    62
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    63
\setbeamerfont{frametitle}{size={\LARGE}}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    64
\setbeamerfont{frametitle}{family={\fontspec{Hoefler Text Black}}}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    65
%\setbeamerfont{frametitle}{family={\usefont{T1}{ptm}{b}{n}}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    66
\setbeamercolor{frametitle}{fg=ProcessBlue,bg=white}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    67
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    68
\setbeamertemplate{frametitle}{%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    69
\vskip 2mm  % distance from the top margin
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    70
\hskip -3mm % distance from left margin
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    71
\vbox{%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    72
\begin{minipage}{1.05\textwidth}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    73
\centering%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    74
\insertframetitle%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    75
\end{minipage}}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    76
}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    77
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    78
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    79
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    80
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    81
% Foot
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    82
%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    83
\setbeamertemplate{navigation symbols}{} 
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    84
\usefoottemplate{%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    85
\vbox{%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    86
  \tinyline{%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    87
    \tiny\hfill\textcolor{gray!50}{\slidecaption{} --
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    88
      p.~\insertframenumber/\inserttotalframenumber}}}%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    89
}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    90
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    91
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    92
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    93
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    94
\beamertemplateballitem
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    95
\setlength\leftmargini{2mm}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    96
\setlength\leftmarginii{0.6cm}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    97
\setlength\leftmarginiii{1.5cm}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    98
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    99
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   100
% blocks
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   101
%\definecolor{cream}{rgb}{1,1,.65}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   102
\definecolor{cream}{rgb}{1,1,.8}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   103
\setbeamerfont{block title}{size=\normalsize}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   104
\setbeamercolor{block title}{fg=black,bg=cream}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   105
\setbeamercolor{block body}{fg=black,bg=cream}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   106
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   107
\setbeamertemplate{blocks}[rounded][shadow=true]
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   108
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   109
\setbeamercolor{boxcolor}{fg=black,bg=cream}
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   110
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   111
\mode
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   112
<all>
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   113
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   114
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   115
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   116
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   117
be5353ce1865 added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   118