diff --git a/otagoslides.cls b/otagoslides.cls index 97a312d..a10a9ed 100644 --- a/otagoslides.cls +++ b/otagoslides.cls @@ -1,4 +1,4 @@ -\def\filedate{23 February 2021} +\def\filedate{2 June 2023} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Document class for lecture slides. @@ -9,12 +9,13 @@ % 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. +% v1.2 Switched to fontawesome5 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[2001/06/01] \ProvidesClass{otagoslides}% - [2023/05/02 Otago lecture slides style, v.1.1] + [2023/06/02 Otago lecture slides style, v.1.2] % "Stream of conciousness" chapters vs. explicit individual classes. NOTE: @@ -42,8 +43,8 @@ \RequirePackage{hyperref} \RequirePackage{otagofonts} % \RequirePackage{otagologo} -% fontawesome must load after otagofonts to avoid fontspec option clash -\RequirePackage{fontawesome} +% fontawesome5 must load after otagofonts to avoid fontspec option clash +\RequirePackage{fontawesome5} % Check that the UO logo files are installed somewhere in the TeX path. @@ -295,6 +296,10 @@ \patchcmd{\@listI}{\itemsep3\p@}{\itemsep6\p@}{}{} \makeatother + +% Use regular style for fontawesome5. +\faStyle{regular} + % Bibliography customisations for beamer. Uses FontAwesome icons. % Use: \setbeamertemplate{bibliography item}[faArticle] \setbeamercolor{bibliography item}{use=normal text,fg=normal text.fg} @@ -305,9 +310,9 @@ \setbeamertemplate{bibliography entry location}{} \setbeamertemplate{bibliography entry note}{} -\defbeamertemplate{bibliography item}{faArticle}{\hfill\faNewspaperO} +\defbeamertemplate{bibliography item}{faArticle}{\hfill\faNewspaper} \defbeamertemplate{bibliography item}{faBook}{\hfill\faBook} -\defbeamertemplate{bibliography item}{faDocument}{\hfill\faFileTextO} +\defbeamertemplate{bibliography item}{faDocument}{\hfill\faFile*} \defbeamertemplate{bibliography item}{faImage}{\hfill\faImage} \defbeamertemplate{bibliography item}{faLink}{\hfill\faLink} \defbeamertemplate{bibliography item}{faMovie}{\hfill\faFilm}