slides.sty
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 04 Jul 2020 16:58:12 +0100
changeset 732 c7bdd7eac4cb
parent 630 9b1c15c3eb6f
child 743 6acabeecdf75
permissions -rw-r--r--
updated
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
\usepackage[absolute,overlay]{textpos}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
\usepackage{xcolor}
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     3
\usepackage[no-math]{fontspec}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     4
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     5
%%%%% CODE FONT
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     6
%\setmonofont[Scale=.95]{Consolas}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     7
\setmonofont[Scale=.88]{Consolas}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     8
\newfontfamily{\consolas}{Consolas}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     9
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    10
%%%%% MATHFONT
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
\usepackage[sc]{mathpazo}
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    12
%\usepackage{fourier}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    13
%\usepackage{mathspec}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    14
%\usepackage[varg]{txfonts}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    15
%\usepackage{mathpple}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    16
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    17
%%%%% MAIN TEXT FONT
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    18
\setromanfont{Cronos Pro}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    19
%\setbeamerfont{normal text}{family={\fontspec{Cronos Pro}}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    20
%\setbeamerfont{normal text}{family={\fontspec{Hoefler Text}}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    21
%\setromanfont{Cronos Pro}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    22
%\setromanfont{Hoefler Text}
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    23
\usefonttheme{serif}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    24
\defaultfontfeatures{Ligatures=TeX}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    25
\defaultfontfeatures{Mapping=tex-text}
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    26
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    27
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    28
%%%% Colours
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    29
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    30
\definecolor{darkblue}{rgb}{0,0,0.6}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    31
\hypersetup{colorlinks=true}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    32
\hypersetup{linkcolor=darkblue}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    33
\hypersetup{urlcolor=darkblue}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    34
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    35
\hfuzz=320pt 
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    36
559
Christian Urban <urbanc@in.tum.de>
parents: 556
diff changeset
    37
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    38
\newcommand{\tttext}[1]{{\consolas{#1}}}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    39
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    40
\newcommand{\ZERO}{\mathit{\bf 0}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    41
\newcommand{\ONE}{\mathit{\bf 1}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    42
\newcommand{\Der}{\mathit{Der}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    43
\newcommand{\der}{\mathit{der}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    44
\newcommand{\Ders}{\mathit{Ders}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    45
\newcommand{\ders}{\mathit{ders}}
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    46
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    47
\newcommand{\slidecaption}{}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    48
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    49
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    50
% Frametitles
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    51
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    52
\setbeamerfont{frametitle}{size={\LARGE}}
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    53
%\setbeamerfont{frametitle}{family={\fontspec{Hoefler Text Black}}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    54
\setbeamerfont{frametitle}{family={\fontspec{Cronos Pro Bold Caption}}}
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    55
\setbeamercolor{frametitle}{fg=ProcessBlue,bg=white}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    56
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    57
\setbeamertemplate{frametitle}{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    58
\vskip 2mm  % distance from the top margin
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    59
\hskip -3mm % distance from left margin
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    60
\vbox{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    61
\begin{minipage}{1.05\textwidth}%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    62
\centering%
565
2be8c4c77418 updated
Christian Urban <urbanc@in.tum.de>
parents: 559
diff changeset
    63
%\begin{tabular}{@{}c@{}}%
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    64
\insertframetitle%
565
2be8c4c77418 updated
Christian Urban <urbanc@in.tum.de>
parents: 559
diff changeset
    65
%\end{tabular}%
368
a9911966c0df updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 295
diff changeset
    66
\end{minipage}\vspace{-10pt}}%
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    67
}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    68
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    69
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    70
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    71
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    72
% Foot
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    73
%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    74
\setbeamertemplate{navigation symbols}{} 
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    75
\usefoottemplate{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    76
\vbox{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    77
  \tinyline{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    78
    \tiny\hfill\textcolor{gray!50}{\slidecaption{} --
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    79
      p.~\insertframenumber/\inserttotalframenumber}}}%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    80
}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    81
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    82
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    83
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    84
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    85
\beamertemplateballitem
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    86
\setlength\leftmargini{2mm}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    87
\setlength\leftmarginii{0.6cm}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    88
\setlength\leftmarginiii{1.5cm}
368
a9911966c0df updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 295
diff changeset
    89
\setbeamertemplate{itemize/enumerate body end}{\vspace{-2mm}}
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    90
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    91
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    92
% blocks
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    93
%\definecolor{cream}{rgb}{1,1,.65}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    94
\definecolor{cream}{rgb}{1,1,.8}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    95
\setbeamerfont{block title}{size=\normalsize}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    96
\setbeamercolor{block title}{fg=black,bg=cream}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    97
\setbeamercolor{block body}{fg=black,bg=cream}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    98
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    99
\setbeamertemplate{blocks}[rounded][shadow=true]
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   100
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   101
\setbeamercolor{boxcolor}{fg=black,bg=cream}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   102
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   103
\mode
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   104
<all>
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   105
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   106
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   107
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   108
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   109
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   110