slides.sty
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 01 Dec 2022 12:51:49 +0000
changeset 899 569a3adb6e01
parent 800 9eea6a801e10
child 929 9541e073f2ed
permissions -rw-r--r--
updated

\usepackage[absolute,overlay]{textpos}
\usepackage{xcolor}
\usepackage[no-math]{fontspec}
%%\usepackage{marginnote}
\usepackage{fontawesome5}

%%%%% 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}{}

%%% url pointers
\newcommand{\here}[1]{\href{#1}{\small\textcolor{ProcessBlue}{\faHandPointRight[regular]}}}
\newcommand{\video}[1]{\href{#1}{\small\textcolor{ProcessBlue}{\faFilm}}}
%%\newcommand{\alert}{\reversemarginpar\marginpar{\mbox{}\hfill\textcolor{red}{\faExclamationTriangle}}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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>