diff --git a/lectures/otagoslides.cls b/lectures/otagoslides.cls index c8eda58..97a312d 100644 --- a/lectures/otagoslides.cls +++ b/lectures/otagoslides.cls @@ -8,12 +8,13 @@ % Version History % v1.0 Initial version, rebuilt from deprecated lectureslides class. % v1.0.1 Stopped hyperref complaining about invalid tokens in PDF metadata. +% v1.1 Added bibliography customisations. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[2001/06/01] \ProvidesClass{otagoslides}% - [2023/01/26 Otago lecture slides style, v.1.0.1] + [2023/05/02 Otago lecture slides style, v.1.1] % "Stream of conciousness" chapters vs. explicit individual classes. NOTE: @@ -41,6 +42,8 @@ \RequirePackage{hyperref} \RequirePackage{otagofonts} % \RequirePackage{otagologo} +% fontawesome must load after otagofonts to avoid fontspec option clash +\RequirePackage{fontawesome} % Check that the UO logo files are installed somewhere in the TeX path. @@ -292,5 +295,23 @@ \patchcmd{\@listI}{\itemsep3\p@}{\itemsep6\p@}{}{} \makeatother +% Bibliography customisations for beamer. Uses FontAwesome icons. +% Use: \setbeamertemplate{bibliography item}[faArticle] +\setbeamercolor{bibliography item}{use=normal text,fg=normal text.fg} +\setbeamercolor{bibliography entry author}{use=normal text,fg=normal text.fg} +\setbeamercolor{bibliography entry location}{use=normal text,fg=normal text.fg} +\setbeamercolor{bibliography entry note}{use=normal text,fg=normal text.fg} +\setbeamertemplate{bibliography entry title}{} +\setbeamertemplate{bibliography entry location}{} +\setbeamertemplate{bibliography entry note}{} + +\defbeamertemplate{bibliography item}{faArticle}{\hfill\faNewspaperO} +\defbeamertemplate{bibliography item}{faBook}{\hfill\faBook} +\defbeamertemplate{bibliography item}{faDocument}{\hfill\faFileTextO} +\defbeamertemplate{bibliography item}{faImage}{\hfill\faImage} +\defbeamertemplate{bibliography item}{faLink}{\hfill\faLink} +\defbeamertemplate{bibliography item}{faMovie}{\hfill\faFilm} +\defbeamertemplate{bibliography item}{faWeb}{\hfill\faCloud} +\defbeamertemplate{bibliography item}{faWikipedia}{\hfill\faWikipediaW} \endinput