This repository has been archived on 2022-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
presis/latex/assets/custombeamer.cls

24 lines
867 B
TeX

% vim: set ft=tex
\PassOptionsToPackage{pdfencoding=auto}{hyperref}
\ProvidesClass{custombeamer}
\LoadClass[aspectratio=1610]{beamer}
\usetheme[nofirafonts]{focus}
\usefonttheme[onlymath]{serif}
\RequirePackage{fontspec}
\setsansfont{Fira Sans}
\setmonofont{Iosevka}
\setbeamertemplate{bibliography item}{%
\ifboolexpr{ test {\ifentrytype{book}} or test {\ifentrytype{mvbook}}
or test {\ifentrytype{collection}} or test {\ifentrytype{mvcollection}}
or test {\ifentrytype{reference}} or test {\ifentrytype{mvreference}} }
{\setbeamertemplate{bibliography item}[book]}
{\ifentrytype{image}
{\setbeamertemplate{bibliography item}{\includegraphics[width=1.5em]{../assets/bibimage}}}
{\ifentrytype{online}
{\setbeamertemplate{bibliography item}[online]}
{\setbeamertemplate{bibliography item}[article]}}}%
\usebeamertemplate{bibliography item}}