slides.sty
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Sun, 02 Nov 2014 09:10:15 +0000
changeset 295 19f23c4c2167
parent 252 e8ef8f38ca84
child 368 a9911966c0df
permissions -rw-r--r--
updated

\usepackage[absolute,overlay]{textpos}
\usepackage{xcolor}
\usepackage{fontspec}
\usepackage[sc]{mathpazo}
\usefonttheme{serif}
\defaultfontfeatures{Ligatures=TeX}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont{Hoefler Text}
\setmonofont[Scale=.88]{Consolas}
\newfontfamily{\consolas}{Consolas}

\definecolor{darkblue}{rgb}{0,0,0.6}
\hypersetup{colorlinks=true}
\hypersetup{linkcolor=darkblue}
\hypersetup{urlcolor=darkblue}

\newcommand{\tttext}[1]{{\consolas{#1}}}

\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}%
\newcommand{\slidecaption}{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Frametitles

\setbeamerfont{frametitle}{size={\LARGE}}
\setbeamerfont{frametitle}{family={\fontspec{Hoefler Text Black}}}
\setbeamercolor{frametitle}{fg=ProcessBlue,bg=white}

\setbeamertemplate{frametitle}{%
\vskip 2mm  % distance from the top margin
\hskip -3mm % distance from left margin
\vbox{%
\begin{minipage}{1.05\textwidth}%
\centering%
\begin{tabular}{@{}c@{}}%
\insertframetitle%
\end{tabular}%
\end{minipage}}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Foot
%
\setbeamertemplate{navigation symbols}{} 
\usefoottemplate{%
\vbox{%
  \tinyline{%
    \tiny\hfill\textcolor{gray!50}{\slidecaption{} --
      p.~\insertframenumber/\inserttotalframenumber}}}%
}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\beamertemplateballitem
\setlength\leftmargini{2mm}
\setlength\leftmarginii{0.6cm}
\setlength\leftmarginiii{1.5cm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% blocks
%\definecolor{cream}{rgb}{1,1,.65}
\definecolor{cream}{rgb}{1,1,.8}
\setbeamerfont{block title}{size=\normalsize}
\setbeamercolor{block title}{fg=black,bg=cream}
\setbeamercolor{block body}{fg=black,bg=cream}

\setbeamertemplate{blocks}[rounded][shadow=true]

\setbeamercolor{boxcolor}{fg=black,bg=cream}

\mode
<all>