From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7665213835A for ; Sun, 25 Apr 2021 20:39:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADBEAE0885; Sun, 25 Apr 2021 20:39:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 95A82E0885 for ; Sun, 25 Apr 2021 20:39:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B1E123416B8 for ; Sun, 25 Apr 2021 20:39:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4780D702 for ; Sun, 25 Apr 2021 20:39:23 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1619382231.4e97d4a54ce404d8eb076a8368809750f1799023.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: pms.cls X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 4e97d4a54ce404d8eb076a8368809750f1799023 X-VCS-Branch: master Date: Sun, 25 Apr 2021 20:39:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0b266ef0-d404-4335-839f-15c614af718f X-Archives-Hash: df0b0d699085e8a038410c0ed791e823 commit: 4e97d4a54ce404d8eb076a8368809750f1799023 Author: Ulrich Müller gentoo org> AuthorDate: Sun Apr 25 20:23:51 2021 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sun Apr 25 20:23:51 2021 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=4e97d4a5 pms.cls: Reinstate TeX4ht/hyperref workaround This had been removed in commit 1a510e7, but apparently it is needed again with TeX Live 2021. Signed-off-by: Ulrich Müller gentoo.org> pms.cls | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/pms.cls b/pms.cls index 7fff027..a64d7d8 100644 --- a/pms.cls +++ b/pms.cls @@ -44,12 +44,16 @@ chngcntr, % Redefinition of counters tocbibind, % Add bibliography to table of contents float, % More control over float environments - hyperref, % Support for hyperlinks gitinfo2, % Metadata from git algorithm, % algorithmic % Set algorithms } +% tex4ht workaround: hyperref needs to be loaded /after/ tex4ht injects itself +\g@addto@macro\@documentclasshook{ + \RequirePackage{hyperref} % Support for hyperlinks +} + \ClassInfo{pms}{Capsulation of LaTeX stuff for the Package Manager Specification, loaded baseclass: \ClassToLoad\MessageBreak} @@ -99,8 +103,11 @@ \counterwithout{footnote}{chapter} % Some shorthands for the lazy ones. -\renewcommand{\i}[1]{\textit{#1}} -\renewcommand{\t}[1]{\texttt{#1}} +% tex4ht workaround: this needs to happen after loading hyperref +\g@addto@macro\@documentclasshook{ + \renewcommand{\i}[1]{\textit{#1}} + \renewcommand{\t}[1]{\texttt{#1}} +} \newcommand{\e}[1]{\emph{#1}} \newcommand{\note}[1]{\begin{trivlist}\item\textbf{Note:} #1\end{trivlist}} @@ -142,14 +149,17 @@ \setlength\emergencystretch{1em} % was 0 % Define some PDF meta-data. -\hypersetup{% - urlcolor=black, - colorlinks=true, - citecolor=black, - linkcolor=black, - pdflang={en}, - pdfcreator={pdfLaTeX and hyperref}, - pdfproducer={pdfLaTeX and hyperref}, +% tex4ht workaround: this needs to happen after loading hyperref +\g@addto@macro\@documentclasshook{ + \hypersetup{% + urlcolor=black, + colorlinks=true, + citecolor=black, + linkcolor=black, + pdflang={en}, + pdfcreator={pdfLaTeX and hyperref}, + pdfproducer={pdfLaTeX and hyperref}, + } } % Reads the last commit date from the Git repository and even succeeds