diff --git a/otagohandout.cls b/otagohandout.cls index 2a7b737..4234f8a 100644 --- a/otagohandout.cls +++ b/otagohandout.cls @@ -1,6 +1,6 @@ -\def\classdate{16 July 2025} -\def\classversion{1.1} -\def\classshortdate{2025/07/16} +\def\classdate{7 September 2025} +\def\classversion{1.2} +\def\classshortdate{2025/09/07} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Document class for lecture handout document. @@ -13,6 +13,8 @@ % v1.0.2 Corrected page number generation. % v1.0.3 Normalised package info messages. % v1.1 Switched to built-in LaTeX page hooks. +% v1.2 Stopped using tabular* for the footer because it broke under +% TeX Live 2025. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -27,8 +29,6 @@ % Load required packages. -\RequirePackage{array} -% \RequirePackage{background} \RequirePackage{pgfpages} @@ -124,14 +124,9 @@ % Set up "headers" and "footers". Because pgfpages converts the original % pages to logical pages, we can't use normal techniques like fancyhdr, % because that will get applied to the logical pages, not the physical -% ones. We therefore use a slightly bizarre hack with the background -% package and a tabular to dangle the "header" and "footer" off the -% first logical page. +% ones. We therefore use a slightly bizarre hack to dangle the "header" +% and "footer" off the first logical page. % (Adapted from .) -\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} -\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} -\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} - \newlength{\headerwidth} % Three slides @ 0.3\pgfphysicalwidth plus two 5mm gaps. \setlength{\headerwidth}{0.9\pgfphysicalwidth+1cm} @@ -148,11 +143,17 @@ at ($(current page.north) + (\paperwidth+7.2mm,0.2175\paperheight)$) { \resizebox*{\headerwidth}{!}{\PaperCode, \PaperTitle, \TeachingPeriod\ \YearOffered} }; - \node[scale=1.414, font=\sffamily\bfseries\large] + \node[below right, scale=1.414, font=\sffamily\bfseries\large] + at ($(current page.north west) + (0,-2.459\paperheight)$) { + \ClassType\ \thechapter: \ShortClassTitle + }; + \node[below, scale=1.414, font=\sffamily\bfseries\large] at ($(current page.north) + (\paperwidth+7.2mm,-2.459\paperheight)$) { - \begin{tabular*}{\headerwidth}{@{}L{\headerwidth/3}@{}C{\headerwidth/3}@{}R{\headerwidth/3}@{}}% - \ClassType\ \thechapter: \ShortClassTitle & Lecture Slides & \the\numexpr(\thepage-1)/6+1 \\% - \end{tabular*}% + Lecture Slides + }; + \node[below left, scale=1.414, font=\sffamily\bfseries\large] + at ($(current page.north east) + (2\paperwidth+14.4mm,-2.459\paperheight)$) { + \the\numexpr(\thepage-1)/6+1 }; \fi% \end{tikzpicture}