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