commit: 3c2f5f3647faf1535e66266d986a160cbe748250
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 7 21:17:22 2026 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Mar 14 22:08:17 2026 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=3c2f5f36
pms.cls: Remove workaround for using hyperref with TeX4ht
This had been removed before in commit 1a510e7, but was reinstated
in commit aede362 because it did not work with TeX Live 2021.
Give it another try; apparently PDF and HTML outputs don't change.
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
pms.cls | 25 +++++++------------------
1 file changed, 7 insertions(+), 18 deletions(-)
diff --git a/pms.cls b/pms.cls
index c8e266b..b4504ef 100644
--- a/pms.cls
+++ b/pms.cls
@@ -51,7 +51,10 @@
float, % More control over float environments
titling, % Change appearance of title information
sectsty, % Change font used for section headings
- gitinfo2 % Metadata from git
+ hyperref, % Support for hyperlinks
+ gitinfo2, % Metadata from git
+ algorithm, %
+ algorithmic % Set algorithms
}
% Make processing with TeX4HT possible
@@ -67,15 +70,6 @@
\setboolean{TEX4HT-HACKS}{true}
\fi
-% tex4ht workaround: hyperref needs to be loaded /after/ tex4ht injects itself
-\g@addto@macro\@documentclasshook{
- \RequirePackage{%
- hyperref, % Support for hyperlinks
- algorithm, %
- algorithmic % Set algorithms
- }
-}
-
\ClassInfo{pms}{LaTeX class for the Package Manager Specification,
loaded baseclass: \ClassToLoad\MessageBreak}
@@ -126,11 +120,8 @@
\counterwithout{footnote}{chapter}
% Some shorthands for the lazy ones.
-% tex4ht workaround: this needs to happen after loading hyperref
-\g@addto@macro\@documentclasshook{
- \renewcommand{\i}[1]{\textit{#1}}
- \renewcommand{\t}[1]{\texttt{#1}}
-}
+\renewcommand{\i}[1]{\textit{#1}}
+\renewcommand{\t}[1]{\texttt{#1}}
\newcommand{\note}[1]{\begin{trivlist}\item\textbf{Note:} #1\end{trivlist}}
% Because we are lazy, we define a table environment to fulfil our needs
@@ -149,9 +140,7 @@
% Redefine headings for list of tables/figures/algorithms
\renewcommand{\listtablename}{Tables}
\renewcommand{\listfigurename}{Figures}
-\g@addto@macro\@documentclasshook{
- \renewcommand{\listalgorithmname}{Algorithms}
-}
+\renewcommand{\listalgorithmname}{Algorithms}
% Define a float environment for listings
\floatstyle{ruled}