Skip to content
Snippets Groups Projects
beamerthemedonders.sty 9.6 KiB
Newer Older
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% This style was created by Daniel Gomez % 31/5/2018
% (Adaption from Philipp Homan) % 4/1/18
Daniel Gomez's avatar
Daniel Gomez committed
% (Adaption from Rob J Hyndman and David Vilar)
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\ProvidesPackage{beamerthemedonders}
Daniel Gomez's avatar
Daniel Gomez committed
\selectcolormodel{cmyk}
\mode<presentation>
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed

% \usefonttheme{professionalfonts} prevents beamer from overwriting
% your fonts and is therefore needed to use specified font packages.
\usefonttheme{professionalfonts}

% use Adobe's Source Pro fonts:
% Source Serif Pro: https://github.com/adobe-fonts/source-serif-pro
% Source Sans Pro: https://github.com/adobe-fonts/source-sans-pro
% Source Code Pro: https://github.com/adobe-fonts/source-code-pro
% \setmainfont{Source Serif Pro}
% \setsansfont{Source Sans Pro}
% \setmonofont{Source Code Pro}
Daniel Gomez's avatar
Daniel Gomez committed
% \usepackage{fontspec}
% \usepackage{microtype}
% \usepackage{unicode-math}
Daniel Gomez's avatar
Daniel Gomez committed
\usepackage[lining]{sourcesanspro}
% \usepackage{sourceserifpro}
% \usepackage{sourcecodepro}
% \usepackage{FiraSans}
% \setmathfont{TeX Gyre Pagella Math}
Daniel Gomez's avatar
Daniel Gomez committed
% \usepackage[hidelinks]{hyperref}
% \urlstyle{same}
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% custom colors
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed

%% Donders Colors
\definecolor{dblack}{HTML}{000000}
\definecolor{ddarkred}{HTML}{7A0002}
\definecolor{dmediumred}{HTML}{AE1E15}
\definecolor{dlightred}{HTML}{FB0007}
\definecolor{dorange}{HTML}{FC5907}
\definecolor{ddarkyellow}{HTML}{FEB80A}
\definecolor{dyellow}{HTML}{FFFF0B}
\definecolor{dwaterblue}{HTML}{1184B0}
\definecolor{dgreen}{HTML}{4F9236}
\definecolor{white}{HTML}{FFFFFF}

Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% headline colors and fonts
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamercolor{headline}{fg=white,bg=white}
\setbeamercolor{title in headline}{fg=white,bg=white}
\setbeamercolor{logo}{bg=white}
\setbeamercolor{title in headline}{fg=dblack,bg=white}
\setbeamercolor{author in headline}{fg=dlightred, bg=white}
\setbeamercolor{institute in headline}{fg=dlightred}
\setbeamercolor{logo in headline}{fg=dblack,bg=white}
\setbeamercolor{separation line}{bg=white}

Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% footline colors and fonts
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamercolor{footline}{fg=white,bg=white}
\setbeamerfont{footline}{size=\normalsize}
Daniel Gomez's avatar
Daniel Gomez committed
% \setbeamerfont{footline}{size=\small}
Daniel Gomez's avatar
Daniel Gomez committed

Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% body colors and fonts
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamercolor*{normal text}{fg=dblack,bg=white}

Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% block environment
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamercolor*{block body}{bg=white,fg=dblack}
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamerfont{block body}{size=\normalsize}
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamercolor*{block title}{fg=white,bg=dlightred}
\setbeamerfont{block title}{size=\Large,series=\bf}

Daniel Gomez's avatar
Daniel Gomez committed
% % --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% % references environment
Daniel Gomez's avatar
Daniel Gomez committed
% % --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% \newenvironment<>{references}[1]{%
Daniel Gomez's avatar
Daniel Gomez committed
% \setbeamerfont{block body}{size=\small}%
% \begin{block}#2{#1}}{\end{block}}
Daniel Gomez's avatar
Daniel Gomez committed

Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% example environment
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamercolor*{example title}{fg=white,bg=white}
\setbeamerfont{example title}{size=\large,series=\bf}

Daniel Gomez's avatar
Daniel Gomez committed
\setbeamerfont{alerted text}{series=\bf}
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamercolor{alerted text}{fg=dblack}

\setbeamertemplate{itemize items}[circle]
\setbeamertemplate{navigation symbols}{}  % no navigation on a poster

Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% caption
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamerfont{caption name}{series=\bfseries,size={\small}}
\setbeamerfont{caption}{size={\small}}
\setbeamercolor{caption name}{fg=dblack}

Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% block
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamertemplate{block begin}{
  \vskip.75ex
  \begin{beamercolorbox}[leftskip=1cm,colsep*=.75ex]{block title}%
    \usebeamerfont*{block title}\Large\insertblocktitle
  \end{beamercolorbox}%
  {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
  \usebeamerfont{block body}%
  \begin{beamercolorbox}[colsep*=.75ex,sep=.75ex,vmode]{block body}%
    \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
  }
  \setbeamertemplate{block end}{
  \end{beamercolorbox}
}
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed

Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% headline
% --------------------------------------------------------------------------------

Daniel Gomez's avatar
Daniel Gomez committed
% \beamertemplatenavigationsymbolsempty
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamertemplate{sidebar canvas left}{
Daniel Gomez's avatar
Daniel Gomez committed
  \includegraphics[width=3cm,height=\paperheight]{./Logos/VertDondersColorBar.jpg}
Daniel Gomez's avatar
Daniel Gomez committed
}
\setbeamersize{sidebar width left=3cm}{}

Daniel Gomez's avatar
Daniel Gomez committed
\if@beamerposter@portrait
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamertemplate{headline}{
  \leavevmode
  \begin{columns}[t,onlytextwidth]
Daniel Gomez's avatar
Daniel Gomez committed
    \includegraphics[width=3cm,height=14cm]{./Logos/VertDondersColorBar.jpg}
    \column{.7\textwidth}
    \begin{beamercolorbox}[wd=\columnwidth, leftskip=2cm, ht=12.55cm]{headline}
      \vskip2.0cm
      % \centering
      \vskip7.6ex
      \usebeamercolor{title in
        headline}{\color{fg}\textbf{\Huge{\inserttitle}}\\[1ex]}
      \vskip4.6ex
      \usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1ex]}
      \vskip2.4ex
    \end{beamercolorbox}
    \column{.3\textwidth}
    \begin{beamercolorbox}[wd=\columnwidth]{logo}
      % \centering
      % \vskip2.10cm
      \raisebox{6.3cm}[0pt][0pt]{%
        \makebox[\textwidth][c]{\includegraphics[width=0.8\linewidth]{./Logos/DONDERS_LOGO_RGB_large.png}}
      }
Daniel Gomez's avatar
Daniel Gomez committed

Daniel Gomez's avatar
Daniel Gomez committed
      % \vskip2.10cm
    \end{beamercolorbox}
  \end{columns}
}
\else
\setbeamertemplate{headline}{
  \leavevmode
  \begin{columns}[t,onlytextwidth]
    \includegraphics[width=3cm,height=9cm]{./Logos/VertDondersColorBar.jpg}
    \column{.7\textwidth}
    \begin{beamercolorbox}[wd=\columnwidth, leftskip=2cm, ht=7.55cm]{headline}
      % \vskip1.5cm
      % \centering
      \vskip7.6ex
      \usebeamercolor{title in
        headline}{\color{fg}\textbf{\Huge{\inserttitle}}\\[1ex]}
      \vskip2.6ex
      \usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1ex]}
      \vskip2.4ex
    \end{beamercolorbox}
    \column{.3\textwidth}
    \begin{beamercolorbox}[wd=\columnwidth]{logo}
      % \centering
      % \vskip2.10cm
      \raisebox{2.3cm}[0pt][0pt]{%
        \makebox[\textwidth][c]{\includegraphics[width=0.8\linewidth]{./Logos/DONDERS_LOGO_RGB_large.png}}
      }
Daniel Gomez's avatar
Daniel Gomez committed

Daniel Gomez's avatar
Daniel Gomez committed
      % \vskip2.10cm
    \end{beamercolorbox}
  \end{columns}
Daniel Gomez's avatar
Daniel Gomez committed
}
Daniel Gomez's avatar
Daniel Gomez committed
\fi
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% % --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
% % Footer
Daniel Gomez's avatar
Daniel Gomez committed
% % --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\setbeamertemplate{footline}{
Daniel Gomez's avatar
Daniel Gomez committed
  % \begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot}
  %   \rule{0pt}{2pt}
  % \end{beamercolorbox}
Daniel Gomez's avatar
Daniel Gomez committed

  \begin{columns}[t,onlytextwidth]
Daniel Gomez's avatar
Daniel Gomez committed
    \column{.75\textwidth}
    % \begin{beamercolorbox}[leftskip=-0.5cm,wd=\columnwidth, ht=3cm]{logo}
    \begin{beamercolorbox}[wd=\columnwidth, ht=3cm]{logo}
      \includegraphics[width=3cm,height=4cm]{./Logos/VertDondersColorBar.jpg}
      % \vskip1.6ex
      % \vspace{0.3ex}
    \end{beamercolorbox}
    \column{.25\textwidth}
    \begin{beamercolorbox}[leftskip=1cm,wd=\columnwidth,
Daniel Gomez's avatar
Daniel Gomez committed
      ht=3cm]{headline}
Daniel Gomez's avatar
Daniel Gomez committed
      \raisebox{1.5cm}[0pt][0pt]{%
        \makebox[\textwidth][c]{      \includegraphics[scale=0.5]{./Logos/Radboud.png}}
      }
Daniel Gomez's avatar
Daniel Gomez committed

Daniel Gomez's avatar
Daniel Gomez committed
      % \hfill \raisebox{-0.4cm}{\insertfooter}
      % \vskip1.5ex
      % \insertfooter
      % \includegraphics[width=0.65\textwidth,left]{twittergithub.pdf}
      % \vskip1.5ex
      % \begin{beamercolorbox}[wd=\columnwidth]{logo}

      %   \begin{tabular}{rllrll}
      %     \textbf{Philipp Homan, MD, PhD} & & & & & \\
      %     phoman1@northwell.edu & &
      %     \includegraphics[width=0.5in]{twitter.pdf} & @philipphoman &
      %     \includegraphics[width=0.5in]{github.pdf} & github.com/philipphoman \\
      %   \end{tabular}
      %   \vspace{-1cm}

      %   \begin{tabular}{rlrlrl}
      %   %     \textbf{Philipp Homan, MD, PhD} & & & & & \\
      %     \textbf{\auth} & & & & & \\
      %     \authemail & &
      %   %     \includegraphics[width=0.5in]{twitter.pdf} & \authtwitter &
      %   %     \includegraphics[width=0.5in]{github.pdf} & \authgithub
      %   \end{tabular}
      %   \vspace{0.3ex}

    \end{beamercolorbox}
Daniel Gomez's avatar
Daniel Gomez committed
  \end{columns}
Daniel Gomez's avatar
Daniel Gomez committed
  % \begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
  %   \rule{0pt}{2pt}
  % \end{beamercolorbox}
  % \begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
  %   \rule{0pt}{2pt}
  % \end{beamercolorbox}
Daniel Gomez's avatar
Daniel Gomez committed
% --------------------------------------------------------------------------------
Daniel Gomez's avatar
Daniel Gomez committed
\mode<all>
\setbeamertemplate{caption}[numbered]
\def\footer#1{\def\insertfooter{#1}}