kfubeamer/beamerthemekfu.sty

57 lines
2 KiB
TeX

% Written by Kristian Bredies and Dirk Lorenz, 2005
% Christian Clason, 2014,2021
\DeclareOptionBeamer{german}{\PassOptionsToPackage{german}{beamerouterthemekfu}}
\DeclareOptionBeamer{font}{\def\beamer@kfu@font{#1}}
\ExecuteOptionsBeamer{font=fira}
\ProcessOptionsBeamer
\usecolortheme{kfu}
\useoutertheme{kfu}
\useinnertheme{rectangles}
%% Fonts
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\usefonttheme{professionalfonts}
\def\beamer@kfu@fontfira{fira}
\def\beamer@kfu@fontmyriad{myriad}
\def\beamer@kfu@fontnoto{noto}
% MyriadPro for text and math (with fallback Euler for symbols)
\ifx\beamer@kfu@font\beamer@kfu@fontmyriad%
\RequirePackage{eulervm}
\RequirePackage[onlytext,lf]{MyriadPro}
\RequirePackage[LGRgreek,defaultmathsizes,italic,mathaccents]{mathastext}
\DeclareMathAlphabet\mathbb{U}{dsss}{m}{n}
\DeclareSymbolFont{euler}{U}{zeur}{m}{n}
\DeclareMathSymbol{\partial}{\mathord}{euler}{64}
\RequirePackage[scaled]{beramono}
\fi
% Noto Sans for text, Noto Math for math (requires texlive2021)
\ifx\beamer@kfu@font\beamer@kfu@fontnoto%
\usepackage[sfdefault,mono,scale=0.95,pf,osf,vvarbb]{notomath}
\fi%
% default: Fira Sans for text and newtxsf for math
\ifx\beamer@kfu@font\beamer@kfu@fontfira%
\usepackage[sfdefault,vvarbb,scaled=0.95]{notomath}
\usepackage[book,medium,scaled=0.85,sfdefault]{FiraSans}
\RequirePackage[scaled=0.85]{FiraMono}
\fi%
\frenchspacing
\RequirePackage[kerning,spacing]{microtype}
\RequirePackage{tikz}
% define some standard environments
\newenvironment{bleq} % block equation
{ \begin{beamercolorbox}{block body}\begin{equation}}%
{ \end{equation} \end{beamercolorbox} }
\newenvironment{nbleq}[1] % named block equation
{\begin{beamercolorbox}{block title}\parbox[c][3.25ex]{\textwidth}{\usebeamerfont{block title}~#1\vphantom{pT}}\end{beamercolorbox}%
\vspace*{-0.2mm}\begin{beamercolorbox}{block body}\begin{equation}}%
{\end{equation}\end{beamercolorbox}}
\mode<all>