slides.sty
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 09 Nov 2024 06:23:35 +0000
changeset 972 ebb4a40d9bae
parent 929 9541e073f2ed
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}
743
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
     4
%%\usepackage{marginnote}
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
     5
\usepackage{fontawesome5}
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     6
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     7
%%%%% CODE FONT
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     8
%\setmonofont[Scale=.95]{Consolas}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
     9
\setmonofont[Scale=.88]{Consolas}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    10
\newfontfamily{\consolas}{Consolas}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    11
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    12
%%%%% MATHFONT
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
\usepackage[sc]{mathpazo}
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    14
%\usepackage{fourier}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    15
%\usepackage{mathspec}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    16
%\usepackage[varg]{txfonts}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    17
%\usepackage{mathpple}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    18
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    19
%%%%% MAIN TEXT FONT
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    20
\setromanfont{Cronos Pro}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    21
%\setbeamerfont{normal text}{family={\fontspec{Cronos Pro}}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    22
%\setbeamerfont{normal text}{family={\fontspec{Hoefler Text}}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    23
%\setromanfont{Cronos Pro}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    24
%\setromanfont{Hoefler Text}
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    25
\usefonttheme{serif}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    26
\defaultfontfeatures{Ligatures=TeX}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    27
\defaultfontfeatures{Mapping=tex-text}
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    28
743
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
    29
%% for recording slides
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
    30
\setbeamersize{text margin right=5cm} % <- like this
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    31
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    32
%%%% Colours
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    33
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    34
\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
    35
\hypersetup{colorlinks=true}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    36
\hypersetup{linkcolor=darkblue}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    37
\hypersetup{urlcolor=darkblue}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    38
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    39
\hfuzz=320pt 
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    40
559
Christian Urban <urbanc@in.tum.de>
parents: 556
diff changeset
    41
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    42
\newcommand{\tttext}[1]{{\consolas{#1}}}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    43
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    44
\newcommand{\ZERO}{\mathit{\bf 0}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    45
\newcommand{\ONE}{\mathit{\bf 1}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    46
\newcommand{\Der}{\mathit{Der}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    47
\newcommand{\der}{\mathit{der}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    48
\newcommand{\Ders}{\mathit{Ders}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    49
\newcommand{\ders}{\mathit{ders}}
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    50
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    51
\newcommand{\slidecaption}{}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    52
743
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
    53
%%% url pointers
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
    54
\newcommand{\here}[1]{\href{#1}{\small\textcolor{ProcessBlue}{\faHandPointRight[regular]}}}
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
    55
\newcommand{\video}[1]{\href{#1}{\small\textcolor{ProcessBlue}{\faFilm}}}
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
    56
%%\newcommand{\alert}{\reversemarginpar\marginpar{\mbox{}\hfill\textcolor{red}{\faExclamationTriangle}}}
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
    57
6acabeecdf75 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 630
diff changeset
    58
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    59
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    60
% Frametitles
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    61
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    62
\setbeamerfont{frametitle}{size={\LARGE}}
630
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    63
%\setbeamerfont{frametitle}{family={\fontspec{Hoefler Text Black}}}
9b1c15c3eb6f updated
Christian Urban <urbanc@in.tum.de>
parents: 565
diff changeset
    64
\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
    65
\setbeamercolor{frametitle}{fg=ProcessBlue,bg=white}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    66
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    67
\setbeamertemplate{frametitle}{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    68
\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
    69
\hskip -3mm % distance from left margin
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    70
\vbox{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    71
\begin{minipage}{1.05\textwidth}%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    72
\centering%
565
2be8c4c77418 updated
Christian Urban <urbanc@in.tum.de>
parents: 559
diff changeset
    73
%\begin{tabular}{@{}c@{}}%
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    74
\insertframetitle%
565
2be8c4c77418 updated
Christian Urban <urbanc@in.tum.de>
parents: 559
diff changeset
    75
%\end{tabular}%
368
a9911966c0df updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 295
diff changeset
    76
\end{minipage}\vspace{-10pt}}%
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    77
}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    78
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    79
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
% Foot
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
\setbeamertemplate{navigation symbols}{} 
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    85
\usefoottemplate{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    86
\vbox{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    87
  \tinyline{%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    88
    \tiny\hfill\textcolor{gray!50}{\slidecaption{} --
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    89
      p.~\insertframenumber/\inserttotalframenumber}}}%
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
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    93
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    94
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
800
9eea6a801e10 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 743
diff changeset
    95
% \beamertemplateballitem
9eea6a801e10 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 743
diff changeset
    96
\setbeamertemplate{itemize item}[ball]
9eea6a801e10 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 743
diff changeset
    97
\setbeamertemplate{itemize subitem}[ball]
9eea6a801e10 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 743
diff changeset
    98
\setbeamertemplate{itemize subsubitem}[ball]
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    99
\setlength\leftmargini{2mm}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   100
\setlength\leftmarginii{0.6cm}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   101
\setlength\leftmarginiii{1.5cm}
368
a9911966c0df updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 295
diff changeset
   102
\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
   103
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   104
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   105
% blocks
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   106
%\definecolor{cream}{rgb}{1,1,.65}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   107
\definecolor{cream}{rgb}{1,1,.8}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   108
\setbeamerfont{block title}{size=\normalsize}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   109
\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
   110
\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
   111
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   112
\setbeamertemplate{blocks}[rounded][shadow=true]
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   113
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   114
\setbeamercolor{boxcolor}{fg=black,bg=cream}
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   115
929
9541e073f2ed updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 800
diff changeset
   116
9541e073f2ed updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 800
diff changeset
   117
252
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   118
\mode
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   119
<all>
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   120
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   121
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   122
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   123
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   124
e8ef8f38ca84 added style files
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
   125