vu-beamer/beamerthemevu.sty

140 lines
4.6 KiB
Plaintext
Raw Normal View History

2022-03-13 16:51:01 +01:00
\DeclareOption{Lato}{
\setsansfont[Ligatures=TeX]{Lato}
\setmonofont[Ligatures=TeX]{Lato}
}
\ProcessOptions
\RequirePackage{tikz}
\RequirePackage[overlay, absolute]{textpos}
\usetikzlibrary{arrows.meta, shapes.misc}
\definecolor{VUBlack}{RGB}{0,0,0}
\definecolor{VUWhite}{RGB}{255,255,255}
\definecolor{VUBlue}{RGB}{0,129,202}
\definecolor{VUGray}{RGB}{124,124,124}
\definecolor{VUPurple}{RGB}{240,0,240}
\setbeamercolor{normal text}{fg=VUGray, bg=white}
\setbeamercolor{background canvas}{bg=VUWhite}
\setbeamercolor{section in toc}{parent={normal text}}
\setbeamercolor{subsection in toc}{parent={normal text}}
\setbeamercolor{item}{parent={normal text}}
\setbeamercolor{block title}{parent={normal text}, fg=VUWhite, bg=VUBlack}
\setbeamercolor{block body}{parent={normal text}, fg=VUWhite, bg=VUGray}
\setbeamercolor{block title example}{parent={normal text}, fg=VUWhite, bg=VUGray}
\setbeamercolor{block body example}{parent={normal text}, fg=VUWhite, bg=VUBlack}
\setbeamercolor{logo}{parent={normal text}, bg=VUWhite}
\setbeamercolor{subtitle}{parent={normal text}}
\setbeamercolor{institute in head/foot}{parent={normal text}}
\setbeamercolor{headline}{parent={normal text}, bg=VUBlack}
\setbeamercolor{qed symbol}{parent={normal text}}
\setbeamercolor{title page}{fg=VUBlack, bg=VUWhite}
\setbeamercolor{subtitle}{fg=VUGray,bg=VUWhite}
\setbeamercolor{footline}{fg=VUWhite, bg=VUBlue}
\setbeamercolor{footnote}{fg=VUWhite, bg=VUGray}
\setbeamercolor{frametitle}{fg=VUWhite, bg=VUBlack}
\setbeamercolor{canvas}{fg=VUGray, bg=VUWhite}
\setbeamercolor{prefooter}{fg=VUWhite, bg=VUGray}
\setbeamercolor{section page}{fg=VUBlack, bg=VUWhite}
\setbeamerfont{footline}{size=\normalsize}
\setbeamerfont{footnote}{size=\normalsize}
\setbeamerfont{institute in head/foot}{size=\small}
\setbeamerfont{navigation symbols}{size=\small}
\setbeamerfont{section page}{size=\huge}
\setbeamerfont{title}{size=\huge}
\setbeamerfont{frametitle}{size=\huge}
\setbeamerfont{subtitle}{size=\Large}
\setbeamerfont{author}{size=\Large}
\setbeamerfont{date}{size=\Large}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}[circle]
\setbeamertemplate{footline}{
\begin{beamercolorbox}[ht=0.75cm,wd=\paperwidth]{footline}
\includegraphics[height=0.75cm]{images/footer}
\hfill
\vbox to 0.75cm{\vfil\hbox{Course name or presentation title - \#\insertframenumber/\inserttotalframenumber}\vfil}%\
\hspace{0.5cm}
\end{beamercolorbox}
}
\setbeamertemplate{footnote}{
\begin{beamercolorbox}[ht=0.75cm,wd=\paperwidth]{footnote}
\end{beamercolorbox}
}
\setbeamertemplate{title page}{
\begin{beamercolorbox}[wd=0.5\paperwidth,ht=0.4\paperheight,dp=8ex,left]{logo}
\vfill
\includegraphics[height=2.5cm]{images/logo}
\vfill
\end{beamercolorbox}
\begin{textblock*}{12cm}(0.5\paperwidth,3cm)
\begin{beamercolorbox}[wd=0.5\paperwidth]{title page}
\usebeamerfont{title}\usebeamercolor{title}\inserttitle%
\end{beamercolorbox}%
\end{textblock*}
\begin{textblock*}{12cm}(0.5\paperwidth,5cm)
\begin{beamercolorbox}[wd=0.5\paperwidth]{subtitle}
\usebeamerfont{subtitle}\usebeamercolor{subtitle}\insertsubtitle%
\end{beamercolorbox}%
\end{textblock*}
}
\setbeamertemplate{frametitle}{
\begin{beamercolorbox}[wd=\paperwidth,dp=1ex,leftskip=0.5cm,rightskip=0.5cm]{frametitle}
\vfill
\usebeamerfont{frametitle}\insertframetitle
\vfill
\end{beamercolorbox}
}
\setbeamertemplate{block begin}{
\vskip\baselineskip
\begin{beamercolorbox}[wd=\textwidth, ht=0.5cm, dp=0.2cm, leftskip=0.2cm]{block title}%
\usebeamerfont*{block title}{\rule[-0.4ex]{0mm}{2ex}\insertblocktitle}%
\end{beamercolorbox}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[wd=\textwidth, leftskip=0.2cm, dp=0.2cm]{block body}%
\vskip-.75ex\vbox{}%
}
\setbeamertemplate{block end}{
\end{beamercolorbox}
\vspace*{.25cm}
}
\setbeamertemplate{block example begin}{
\vskip\baselineskip
\begin{beamercolorbox}[wd=\textwidth, ht=0.5cm, dp=0.2cm, leftskip=0.2cm]{block title example}%
\usebeamerfont*{block title example}{\rule[-0.4ex]{0mm}{2ex}\insertblocktitle}%
\end{beamercolorbox}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body example}%
\begin{beamercolorbox}[wd=\textwidth, leftskip=0.2cm, dp=0.2cm]{block body example}%
\vskip-.75ex\vbox{}%
}
\setbeamertemplate{block example end}{
\end{beamercolorbox}
\vspace*{.25cm}
}
\AtBeginSection[]{
\begin{frame}
\vfill
\centering
\begin{beamercolorbox}[center]{section page}
\usebeamerfont{section page}\insertsectionhead\par%
\end{beamercolorbox}
\vfill
\end{frame}
}