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 0FC8A1382C5 for ; Sat, 1 May 2021 10:28:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AFBAE0CEB; Sat, 1 May 2021 10:28:15 +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 3EAC3E0CEB for ; Sat, 1 May 2021 10:28:15 +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 DC6DA340976 for ; Sat, 1 May 2021 10:28:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 32CE0729 for ; Sat, 1 May 2021 10:28:12 +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: <1619799870.aede3621e7208e29d65d0cf1af656ca2ac0c528b.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: aede3621e7208e29d65d0cf1af656ca2ac0c528b X-VCS-Branch: master Date: Sat, 1 May 2021 10:28:12 +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: f08c2e8d-d6c0-43b4-94b3-68d2d7c445ec X-Archives-Hash: f7a0307c7739dd556eb503cc1fc556be commit: aede3621e7208e29d65d0cf1af656ca2ac0c528b Author: Ulrich Müller gentoo org> AuthorDate: Sun Apr 25 20:23:51 2021 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Fri Apr 30 16:24:30 2021 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=aede3621 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 | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/pms.cls b/pms.cls index 7fff027..d7c6ed8 100644 --- a/pms.cls +++ b/pms.cls @@ -44,10 +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 + gitinfo2 % Metadata from git +} + +% 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}{Capsulation of LaTeX stuff for the Package Manager @@ -99,8 +105,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 +151,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 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 905CC1382C5 for ; Thu, 13 May 2021 11:42:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AE4FEE08FE; Thu, 13 May 2021 11:42:30 +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 9523CE08FE for ; Thu, 13 May 2021 11:42:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 A5697340D41 for ; Thu, 13 May 2021 11:42:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 55423792 for ; Thu, 13 May 2021 11:42:26 +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: <1619799870.aede3621e7208e29d65d0cf1af656ca2ac0c528b.ulm@gentoo> Subject: [gentoo-commits] proj/pms:eapi-8 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: aede3621e7208e29d65d0cf1af656ca2ac0c528b X-VCS-Branch: eapi-8 Date: Thu, 13 May 2021 11:42:26 +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: bbe3ed01-e9fd-4192-9f57-7fd9c9aaeefd X-Archives-Hash: 0e769cb5e741834072dc8dd8951ad42f Message-ID: <20210513114226.Iqa7-gDt7IlQSeujJw2AKt8s-UfPBQ8EI__k8wOhr64@z> commit: aede3621e7208e29d65d0cf1af656ca2ac0c528b Author: Ulrich Müller gentoo org> AuthorDate: Sun Apr 25 20:23:51 2021 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Fri Apr 30 16:24:30 2021 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=aede3621 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 | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/pms.cls b/pms.cls index 7fff027..d7c6ed8 100644 --- a/pms.cls +++ b/pms.cls @@ -44,10 +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 + gitinfo2 % Metadata from git +} + +% 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}{Capsulation of LaTeX stuff for the Package Manager @@ -99,8 +105,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 +151,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