\usepackage[absolute,overlay]{textpos}
\usepackage{xcolor}
\usepackage[no-math]{fontspec}
%%%%% CODE FONT
%\setmonofont[Scale=.95]{Consolas}
\setmonofont[Scale=.88]{Consolas}
%\newfontfamily{\consolas}{Consolas}
%%%%% MATHFONT
\usepackage[sc]{mathpazo}
%\usepackage{fourier}
%\usepackage{mathspec}
%\usepackage[varg]{txfonts}
%\usepackage{mathpple}
%%%%% MAIN TEXT FONT
\setromanfont{Cronos Pro}
%\setbeamerfont{normal text}{family={\fontspec{Cronos Pro}}}
%\setbeamerfont{normal text}{family={\fontspec{Hoefler Text}}}
%\setromanfont{Cronos Pro}
%\setromanfont{Hoefler Text}
\usefonttheme{serif}
\defaultfontfeatures{Ligatures=TeX}
\defaultfontfeatures{Mapping=tex-text}
%% for recording slides
\setbeamersize{text margin right=5cm} % <- like this
%%%% Colours
\definecolor{darkblue}{rgb}{0,0,0.6}
\hypersetup{colorlinks=true}
\hypersetup{linkcolor=darkblue}
\hypersetup{urlcolor=darkblue}
\hfuzz=320pt
\newcommand{\tttext}[1]{{\consolas{#1}}}
\newcommand{\ZERO}{\mathit{\bf 0}}
\newcommand{\ONE}{\mathit{\bf 1}}
\newcommand{\Der}{\mathit{Der}}
\newcommand{\der}{\mathit{der}}
\newcommand{\Ders}{\mathit{Ders}}
\newcommand{\ders}{\mathit{ders}}
\newcommand{\dn}{\stackrel{\mbox{\scriptsize def}}{=}}%
\newcommand{\slidecaption}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Frametitles
\setbeamerfont{frametitle}{size={\LARGE}}
%\setbeamerfont{frametitle}{family={\fontspec{Hoefler Text Black}}}
\setbeamerfont{frametitle}{family={\fontspec{Cronos Pro Bold Caption}}}
\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}\vspace{-10pt}}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Foot
%
\setbeamertemplate{navigation symbols}{}
\usefoottemplate{%
\vbox{%
\tinyline{%
\tiny\hfill\textcolor{gray!50}{\slidecaption{} --
p.~\insertframenumber/\inserttotalframenumber}}}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%\beamertemplateballitem
\setbeamertemplate{itemize item}[ball]
\setbeamertemplate{itemize subitem}[ball]
\setbeamertemplate{itemize subsubitem}[ball]
\setlength\leftmargini{2mm}
\setlength\leftmarginii{0.6cm}
\setlength\leftmarginiii{1.5cm}
\setbeamertemplate{itemize/enumerate body end}{\vspace{-2mm}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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>