slides.sty
author Christian Urban <urbanc@in.tum.de>
Mon, 21 Jan 2019 16:04:30 +0000
changeset 257 ba4d976ca88d
parent 21 610f7a4a9ede
child 275 eb1b4ad23941
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}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
\usepackage{fontspec}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
\usepackage[sc]{mathpazo}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
\usefonttheme{serif}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
\defaultfontfeatures{Ligatures=TeX}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
\defaultfontfeatures{Mapping=tex-text}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
\setromanfont{Hoefler Text}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
\setmonofont[Scale=.88]{Consolas}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
\newfontfamily{\consolas}{Consolas}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
\definecolor{darkblue}{rgb}{0,0,0.6}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
\hypersetup{colorlinks=true}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
\hypersetup{linkcolor=darkblue}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
\hypersetup{urlcolor=darkblue}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
\newcommand{\tttext}[1]{{\consolas{#1}}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
\newcommand{\ZERO}{\mbox{\bf 0}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
\newcommand{\ONE}{\mbox{\bf 1}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
\newcommand{\Der}{\textit{Der}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
\newcommand{\der}{\textit{der}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
\newcommand{\Ders}{\textit{Ders}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
\newcommand{\ders}{\textit{ders}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
\newcommand{\slidecaption}{}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
% Frametitles
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
\setbeamerfont{frametitle}{size={\LARGE}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
\setbeamerfont{frametitle}{family={\fontspec{Hoefler Text Black}}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
\setbeamercolor{frametitle}{fg=ProcessBlue,bg=white}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
\setbeamertemplate{frametitle}{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
\vskip 2mm  % distance from the top margin
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
\hskip -3mm % distance from left margin
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
\vbox{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
\begin{minipage}{1.05\textwidth}%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
\centering%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
\begin{tabular}{@{}c@{}}%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
\insertframetitle%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
\end{tabular}%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
\end{minipage}\vspace{-10pt}}%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
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
% Foot
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
\setbeamertemplate{navigation symbols}{} 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
\usefoottemplate{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
\vbox{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
  \tinyline{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
    \tiny\hfill\textcolor{gray!50}{\slidecaption{} --
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
      p.~\insertframenumber/\inserttotalframenumber}}}%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
\beamertemplateballitem
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
\setlength\leftmargini{2mm}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
\setlength\leftmarginii{0.6cm}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
\setlength\leftmarginiii{1.5cm}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
\setbeamertemplate{itemize/enumerate body end}{\vspace{-2mm}}
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
% blocks
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
%\definecolor{cream}{rgb}{1,1,.65}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
\definecolor{cream}{rgb}{1,1,.8}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
\setbeamerfont{block title}{size=\normalsize}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    74
\setbeamercolor{block title}{fg=black,bg=cream}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
\setbeamercolor{block body}{fg=black,bg=cream}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
\setbeamertemplate{blocks}[rounded][shadow=true]
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
\setbeamercolor{boxcolor}{fg=black,bg=cream}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
\mode
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
<all>
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
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88