latex_beamer-uni-bremen/beamerthemeuhb.sty

86 lines
2.7 KiB
TeX

%% Uni Bremen Beamer Theme 2.0.0 (2021-07)
%% LaTeX-version by Erik Michelson (michelson@uni-bremen.de)
\def\@workgroup{}
\newcommand{\workgroup}[1]{
\def\@workgroup{#1}
}
\def\@facultynum{}\def\@faculty{}
\newcommand{\faculty}[2]{
\def\@facultynum{#1}\def\@faculty{#2}
}
\newcommand\labelitemi{$\Rightarrow$}
\def\@footertext{}\def\@footertextr{}
\newcommand{\footertext}[2]{
\def\@footertext{#1}\def\@footertextr{#2}
}
\mode<presentation>
\usepackage{hyperref}
\hypersetup{
pdfinfo={
Template={Uni Bremen Beamer Theme},
TemplateVersion={2.0.0},
TemplateAuthor={Erik Michelson (michelson@uni-bremen.de)},
}
}
\RequirePackage{tikz}
\RequirePackage{graphicx}
\usepackage[scaled]{helvet}
\usepackage{ifthen}
\usepackage{caption}
\renewcommand\familydefault{\sfdefault}
\usepackage[absolute,overlay]{textpos}
\usetikzlibrary{calc}
\usepackage[font=small,skip=2pt]{caption}
\usepackage{setspace}
\setlength{\TPHorizModule}{\textwidth}
\setlength{\TPVertModule}{\paperheight}
\usepackage[no-math]{fontspec}
\usepackage{unicode-math}
\setsansfont[BoldFont={Sharp Sans Bold},ItalicFont={Sharp Sans Medium Italic},BoldItalicFont={Sharp Sans Bold Italic}]{Sharp Sans Medium}
\newfontfamily\semibf{Sharp Sans Semibold}
%\setmathfont{Asana Math} % for math symbols, can be any other OpenType math font
%\setmathfont[range=\mathup] {Sharp Sans Medium}
%\setmathfont[range=\mathbfup]{Sharp Sans Bold}
%\setmathfont[range=\mathbfit]{Sharp Sans Bold Italic}
%\setmathfont[range=\mathit] {Sharp Sans Italic}
%\renewcommand{\tiny}{\fontsize{7}{13}\selectfont}
\renewcommand{\scriptsize}{\fontsize{7}{10}\selectfont}
\renewcommand{\footnotesize}{\fontsize{8}{11}\selectfont}
\renewcommand{\small}{\fontsize{8.5}{12}\selectfont}
\renewcommand{\normalsize}{\fontsize{9.2}{13}\selectfont}
\renewcommand{\large}{\semibf\fontsize{9.5}{14}\selectfont}
\renewcommand{\Large}{\semibf\fontsize{10.5}{14}\selectfont}
\newcommand{\Largebf}{\bfseries\fontsize{10.5}{14}\selectfont}
\renewcommand{\LARGE}{\semibf\fontsize{12}{15}\selectfont}
\renewcommand{\huge}{\semibf\fontsize{14}{18}\selectfont}
\renewcommand{\Huge}{\semibf\fontsize{16}{20}\selectfont}
\newcommand{\HUGEBF}{\bfseries\fontsize{18}{22}\selectfont}
\useinnertheme{uhb}
\useoutertheme{uhb}
\usecolortheme{uhb}
\captionsetup[figure]{labelfont={color=UHBRed}}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[rounded=false]
%\addtobeamertemplate{background canvas}{\transfade}{}
\BeforeBeginEnvironment{frame}{%
\setbeamertemplate{frametitle}[uhb]%
}
\makeatletter
\define@key{beamerframe}{smalltitle}[true]{%
\setbeamertemplate{frametitle}[smalltitle]{}%
}
\makeatother
\makeatletter
\define@key{beamerframe}{smallertitle}[true]{%
\setbeamertemplate{frametitle}[smallertitle]{}%
}
\makeatother
\mode<all>