diff --git a/lectures/lecturecommon.sty b/lectures/lecturecommon.sty index 3af8779..c461ac5 100644 --- a/lectures/lecturecommon.sty +++ b/lectures/lecturecommon.sty @@ -1,4 +1,4 @@ -\def\filedate{13 June 2019} +\def\filedate{27 October 2022} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Common definitions shared across the various lecture document classes. @@ -19,65 +19,19 @@ % v1.2.5 Disabled Mapping=tex-text for mono font to eliminate automatic curly quotes. % v1.2.6 Enabled unicode option for hyperref when using Xe(La)TeX. % v1.2.7 Reverted unicode option for hyperref due to option clash error. +% v1.3 Switched to otagofonts.sty for font configuration. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[2001/06/01] -\ProvidesPackage{lecturecommon}[2019/06/13 INFO standard lecture setup v1.2.7] +\ProvidesPackage{lecturecommon}[2022/10/27 INFO standard lecture setup v1.3] % Standard packages common to ALL lecture documents. \RequirePackage{amsmath} % needs to be loaded before mathspec -\RequirePackage{ifxetex} - -\ifxetex - -\RequirePackage[no-math]{fontspec} -\RequirePackage{mathspec} -\RequirePackage{xunicode} -\RequirePackage{xltxtra} - -% The following line is equivalent to: -% \setmainfont{Minion Pro} -% \setmathsfont(Latin,Digits){Minion Pro} -% \setmathrm{Minion Pro} -\setprimaryfont[Mapping=tex-text]{Minion Pro} -\setsansfont[Mapping=tex-text, Scale=MatchUppercase, BoldFont={Open Sans}]{Open Sans Light} -% Explicitly specify Mapping=tex-text only for the primary and sans fonts, -% otherwise curly quotes will automatically appear in the mono font. Since -% this is pretty much exclusively used for code listings, this is a bad thing. -\setmonofont[Scale=MatchLowercase]{Letter Gothic 12 Pitch} - -% Hack to prevent digits in hyperlinks from being set in the main font instead of the mono font. -% From http://tex.stackexchange.com/questions/99770/problem-with-digits-in-urls-when-using-mathspec-and-hyperref -% Note: doesn't matter if this is executed multiple times. -\makeatletter - \DeclareMathSymbol{0}{\mathalpha}{\eu@DigitsArabic@symfont}{`0} - \DeclareMathSymbol{1}{\mathalpha}{\eu@DigitsArabic@symfont}{`1} - \DeclareMathSymbol{2}{\mathalpha}{\eu@DigitsArabic@symfont}{`2} - \DeclareMathSymbol{3}{\mathalpha}{\eu@DigitsArabic@symfont}{`3} - \DeclareMathSymbol{4}{\mathalpha}{\eu@DigitsArabic@symfont}{`4} - \DeclareMathSymbol{5}{\mathalpha}{\eu@DigitsArabic@symfont}{`5} - \DeclareMathSymbol{6}{\mathalpha}{\eu@DigitsArabic@symfont}{`6} - \DeclareMathSymbol{7}{\mathalpha}{\eu@DigitsArabic@symfont}{`7} - \DeclareMathSymbol{8}{\mathalpha}{\eu@DigitsArabic@symfont}{`8} - \DeclareMathSymbol{9}{\mathalpha}{\eu@DigitsArabic@symfont}{`9} -\makeatother - -\else % assume PDFLaTeX otherwise - -\RequirePackage[T1]{fontenc} -\RequirePackage{textcomp} -\RequirePackage{lmodern} -\RequirePackage{mathpazo} - -% Gill Sans to come... -% \renewcommand{\sfdefault}{} -\renewcommand{\ttdefault}{blg} - -\fi +\RequirePackage{otagofonts} \RequirePackage{boxedminipage} \RequirePackage{graphicx}