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