beamerthemelumc.sty 7.23 KiB
% Copyright 2015 by Jeroen F. J. Laros
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\ProvidesPackageRCS $Header: /svnroot/presentation/trunk/beamerthemelumc.sty,v 1.0 2015/11/12 $
\mode<presentation>
\usepackage{bibentry}
\usepackage{caption}
\usepackage{cleveref}
\usepackage{colortbl}
\usepackage{eurosym}
\usepackage{gastex}
\usepackage{ifthen}
\usepackage{listings}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{pgfpages}
\usepackage{tabularx}
\usepackage{tikz}
\usepackage{url}
\newlength{\LUMCCell}
\setlength{\LUMCCell}{1.17cm}
% Custom colours.
% https://www.lumc.nl/over-het-lumc/leveranciers/huisstijl/kleuren/
\definecolor{LUMCDonkerblauw}{HTML}{003C7D}
\definecolor{LUMCKobaltblauw}{HTML}{007CC2}
\definecolor{LUMCAquablauw}{HTML}{009FBD}
\definecolor{LUMCGrijsblauw}{HTML}{6E90A6}
\definecolor{LUMCRood}{HTML}{E3004F}
\definecolor{LUMCBruin}{HTML}{C0965C}
% TikZ settings.
\usetikzlibrary{patterns}
% Some defaults for using a bibliography.
\setbeamertemplate{bibliography item}[triangle]
\bibliographystyle{plain}
% GasTeX settings.
\gasset{linewidth=0.5, AHLength=3}
% Disable the navigation bar.
\usenavigationsymbolstemplate{}
% Change the bullets in the itemize environment.
\setbeamertemplate{itemize items}[circle]
\setbeamercolor{itemize item}{fg=black}
\setbeamercolor{itemize subitem}{fg=black}
\newcommand{\fakeitem}{\,\ \ \ $\bullet$\ \,}
% Captions also in black.
\setbeamercolor{caption name}{fg=black}
% Macros for bold text.
\newcommand{\bt}[1]{\texttt{\textbf{#1}}} % Bold truetype.
\newcommand{\bs}[1]{\bf{\scriptsize{#1}}} % Bold small.
\newcommand{\bi}[1]{\textit{\textbf{#1}}} % Bold italic.
\newcommand{\bsi}[1]{\textit{\textbf{\scriptsize{#1}}}} % Bold italic small.
\newcommand{\permfoot}[1]{\onslide<1->\bs{#1}}
% Macro for highlighting.
\newcommand{\hl}[1]{\color{LUMCRood}#1\color{black}}
% Enable numbering of figures and tables.
\setbeamertemplate{caption}[numbered]
% Put a frame title on the slide.
\renewcommand{\frametitle}[1]{
{\textbf{#1}}
\bigskip
}
% A filled fragile frame.
\newenvironment{pframe}{
\begin{frame}[fragile, environment=pframe]
\frametitle{\insertsubsection}
\begin{minipage}[t][0.85\textheight]{\textwidth}
}{
\end{minipage}
\end{frame}
}
%
% Settings for displaying code.
%
% Prevent an overlay to increase the listing counter.
\resetcounteronoverlays{lstlisting}
% Make a nice layout for code.
\lstset{
language=Python,
basicstyle=\bf\footnotesize\ttfamily,
lineskip=-0.40ex,
aboveskip=2ex,
belowskip=3ex,
frame=shadowbox,
rulesepcolor=\color{black},
showstringspaces=false,
captionpos=b,
numbers=left,
numbersep=-1em,
numberstyle=\tiny
}
% Change the font of the captions of listings.
\captionsetup[lstlisting]{font={footnotesize}}
% Define an empty language to use only for typesetting.
\lstdefinelanguage{none}{}
% Trick to get out of math mode highlighting.
\newcommand{\rmath}[1]{\phantom{\lstinline!#1!}}
%
% Settings for handouts.
%
% Use items for displaying notes, remove the bullets and indentation.
\def\beamer@setupnote{
\gdef\beamer@notesactions{
\beamer@outsideframenote{
\setbeamertemplate{itemize item}{}
\beamer@atbeginnote
\beamer@notes
\ifx\beamer@noteitems\@empty\else
\begin{itemize}
\setlength{\itemindent}{-0.5cm}
\beamer@noteitems
\end{itemize}
\fi
\beamer@atendnote
}
\gdef\beamer@notesactions{}
}
}
% Command for itemised notes.
\newcommand{\inote}[1]{\note[item]{#1}}
% Style of the notes page.
\defbeamertemplate{note page}{plainitemnotes}{
\vspace{21pt}
{\normalsize {\bf Notes}}
\vspace{29pt}
{\normalsize
\insertnote
}
}
% Use the notes page in handout mode.
\alt<handout>{
\setbeameroption{show notes on second screen=right}
\setbeamertemplate{note page}[plainitemnotes]
}{}
\pgfdeclarepatternformonly{custom north east lines}{
\pgfqpoint{-1pt}{-1pt}}{\pgfqpoint{4pt}{4pt}}{\pgfqpoint{1.4pt}{1.4pt}}{
\pgfsetlinewidth{0.6pt}
\pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
\pgfpathlineto{\pgfqpoint{3.1pt}{3.1pt}}
\pgfusepath{stroke}
}
% Title slide.
\providecommand{\makeTitleSlide}[1]{
{
\hoffset=-1cm
\begin{frame}[plain]
\begin{tikzpicture}[scale=1.6]
\node[right] at (0.4,4.5)
{\includegraphics[height=0.8cm]{logos/lumc_logo_white}};
\fill[LUMCKobaltblauw] (1,2.75) rectangle +(7,1);
\node[white, right] at (1.1,3.45) {\normalsize \bf \inserttitle};
\fill[LUMCKobaltblauw, opacity=0.5] (0,1.75) rectangle +(1,1);
\node[LUMCDonkerblauw, right] at (1.05,2.45)
{\normalsize \bf \mySubTitle};
\node[anchor=north] at (6.5,2.60) {#1};
\node[right] at (0.9,0.7) {
\begin{tabular}{l}
\insertauthor \\
\myGroup \\
\myDepartment \\
\myCenter
\end{tabular}
};
\node[right] at (0.45,-0.3)
{\includegraphics[height=0.8cm]{logos/ul_logo_white}};
\fill[LUMCDonkerblauw] (0,-1.05) rectangle +(1,0.25);
\fill[LUMCKobaltblauw] (1,-1.05) rectangle +(5,0.25);
\fill[LUMCAquablauw] (6,-1.05) rectangle +(1,0.25);
\fill[LUMCGrijsblauw] (7,-1.05) rectangle +(1,0.25);
\end{tikzpicture}
\end{frame}
}
\setcounter{framenumber}{0}
}
% Acknowledgement slide.
\providecommand{\makeAcknowledgementsSlide}[1]{
{
\hoffset=-1cm
\begin{frame}[plain]
\begin{tikzpicture}[scale=1.6]
\node[right] at (0.4,4.5)
{\includegraphics[height=0.8cm]{logos/lumc_logo_white}};
\fill[LUMCKobaltblauw, opacity=0.25] (1,2.75) rectangle +(7,1);
\node[right] at (1.1,3.45) {\normalsize \bf Acknowledgements};
\fill[LUMCKobaltblauw, opacity=0.5] (0,1.75) rectangle +(1,1);
\node[anchor=north west] at (0.9,2.75) {
\begin{minipage}[t]{\textwidth}
#1
\end{minipage}
};
\node[right] at (0.45,-0.3)
{\includegraphics[height=0.8cm]{logos/ul_logo_white}};
\fill[LUMCDonkerblauw] (0,-1.05) rectangle +(1,0.25);
\fill[LUMCKobaltblauw] (1,-1.05) rectangle +(5,0.25);
\fill[LUMCAquablauw] (6,-1.05) rectangle +(1,0.25);
\fill[LUMCGrijsblauw] (7,-1.05) rectangle +(1,0.25);
\end{tikzpicture}
\end{frame}
}
}
% The header of the body.
\setbeamertemplate{headline}{
\begin{tikzpicture}
\fill[LUMCDonkerblauw]
(0,0) -- (10.03,0) -- +(\LUMCCell,\LUMCCell) -- (0,\LUMCCell) -- (0,0);
\fill[pattern=custom north east lines, pattern color=LUMCKobaltblauw,
opacity=0.25]
(0,0) -- (10.45,0) -- +(\LUMCCell,\LUMCCell) -- (0,\LUMCCell) -- (0,0);
\node [white, right] at (1,0.3)
{\color{white} \normalsize \bf \insertsection};
\end{tikzpicture}
}
% The footer of the body.
\setbeamertemplate{footline}{
\color{white}
\renewcommand{\arraystretch}{1.65}
\begin{tabularx}{\textwidth}{p{\LUMCCell}Xp{\LUMCCell}p{\LUMCCell}}
\centering
\cellcolor{LUMCDonkerblauw} \insertframenumber/\inserttotalframenumber &
\cellcolor{LUMCKobaltblauw} \myConference &
\cellcolor{LUMCAquablauw} &
\centering
\cellcolor{LUMCGrijsblauw} \myDate
\end{tabularx}
}
\mode
<all>