slides.sty
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 13 Jan 2022 12:55:03 +0000
changeset 423 e9d14d58be3c
parent 352 97bcf8efe4e0
child 442 c86e7dd198bf
permissions -rw-r--r--
test
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
352
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 276
diff changeset
    27
%% for recording slides
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 276
diff changeset
    28
\setbeamersize{text margin right=5cm} % <- like this
275
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    29
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    30
%%%% Colours
21
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
\definecolor{darkblue}{rgb}{0,0,0.6}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
\hypersetup{colorlinks=true}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
\hypersetup{linkcolor=darkblue}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
\hypersetup{urlcolor=darkblue}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
275
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    37
\hfuzz=320pt 
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    38
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    39
21
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
\newcommand{\tttext}[1]{{\consolas{#1}}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
275
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    42
\newcommand{\ZERO}{\mathit{\bf 0}}
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    43
\newcommand{\ONE}{\mathit{\bf 1}}
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    44
\newcommand{\Der}{\mathit{Der}}
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    45
\newcommand{\der}{\mathit{der}}
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    46
\newcommand{\Ders}{\mathit{Ders}}
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    47
\newcommand{\ders}{\mathit{ders}}
21
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
\newcommand{\slidecaption}{}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
% Frametitles
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
\setbeamerfont{frametitle}{size={\LARGE}}
275
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    55
%\setbeamerfont{frametitle}{family={\fontspec{Hoefler Text Black}}}
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    56
\setbeamerfont{frametitle}{family={\fontspec{Cronos Pro Bold Caption}}}
21
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
\setbeamercolor{frametitle}{fg=ProcessBlue,bg=white}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
\setbeamertemplate{frametitle}{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
\vskip 2mm  % distance from the top margin
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
\hskip -3mm % distance from left margin
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
\vbox{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
\begin{minipage}{1.05\textwidth}%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
\centering%
275
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    65
%\begin{tabular}{@{}c@{}}%
21
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
\insertframetitle%
275
eb1b4ad23941 updated
Christian Urban <urbanc@in.tum.de>
parents: 21
diff changeset
    67
%\end{tabular}%
21
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
\end{minipage}\vspace{-10pt}}%
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
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
% Foot
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
\setbeamertemplate{navigation symbols}{} 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
\usefoottemplate{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
\vbox{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
  \tinyline{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
    \tiny\hfill\textcolor{gray!50}{\slidecaption{} --
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
      p.~\insertframenumber/\inserttotalframenumber}}}%
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
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    86
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
352
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 276
diff changeset
    87
%%\beamertemplateballitem
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 276
diff changeset
    88
\setbeamertemplate{itemize item}[ball]
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 276
diff changeset
    89
\setbeamertemplate{itemize subitem}[ball]
97bcf8efe4e0 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 276
diff changeset
    90
\setbeamertemplate{itemize subsubitem}[ball]
21
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
\setlength\leftmargini{2mm}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
\setlength\leftmarginii{0.6cm}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
\setlength\leftmarginiii{1.5cm}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
\setbeamertemplate{itemize/enumerate body end}{\vspace{-2mm}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    95
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    97
% blocks
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    98
%\definecolor{cream}{rgb}{1,1,.65}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
\definecolor{cream}{rgb}{1,1,.8}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
\setbeamerfont{block title}{size=\normalsize}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
\setbeamercolor{block title}{fg=black,bg=cream}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
\setbeamercolor{block body}{fg=black,bg=cream}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   103
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   104
\setbeamertemplate{blocks}[rounded][shadow=true]
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   106
\setbeamercolor{boxcolor}{fg=black,bg=cream}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   107
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   108
\mode
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   109
<all>
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   110
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   111
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   112
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   113
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   114
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   115