[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: start patches-file, remove foiltex patch (c191b39)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Jun 30 11:04:37 CEST 2021


Repository : https://github.com/latex3/hyperref
On branch  : cleanup-patches
Link       : https://github.com/latex3/hyperref/commit/c191b3999abf2674957dc9e5f3867bbfa67e8a45

>---------------------------------------------------------------

commit c191b3999abf2674957dc9e5f3867bbfa67e8a45
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Jun 30 11:04:37 2021 +0200

    start patches-file, remove foiltex patch


>---------------------------------------------------------------

c191b3999abf2674957dc9e5f3867bbfa67e8a45
 hyperref-patches.dtx | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++
 hyperref.dtx         |   8 ----
 2 files changed, 110 insertions(+), 8 deletions(-)

diff --git a/hyperref-patches.dtx b/hyperref-patches.dtx
new file mode 100644
index 0000000..8a4ed6d
--- /dev/null
+++ b/hyperref-patches.dtx
@@ -0,0 +1,110 @@
+% \iffalse meta-comment
+% \iffalse
+%% File: hyperref-patches.dtx
+%% Copyright
+%% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek,
+%% 2001-2015 Heiko Oberdiek.
+%% 2016-2019 Oberdiek Package Support Group
+%% 2019-2021 LaTeX Project
+%%      https://github.com/latex3/hyperref/issues
+%%
+%% This file is part of the `Hyperref Bundle'.
+%% -------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is the LaTeX Project.
+%%
+%% The list of all files belonging to the `Hyperref Bundle' is
+%% given in the file `manifest.txt'.
+%
+%<*driver>
+\RequirePackage{pdfmanagement-testphase}
+\DeclareDocumentMetadata{pdfstandard=A-2b}
+\makeatletter
+\declare at file@substitution{doc.sty}{doc-v3beta.sty}
+\makeatother
+\documentclass[full]{l3doc}
+\usepackage{array,booktabs,hyperxmp}
+\hypersetup{pdfauthor=The LaTeX Project,pdftitle=hyperref patches}
+\usepackage{caption}
+\begin{document}
+  \DocInput{\jobname.dtx}
+\end{document}
+%</driver>
+% \fi
+%
+% \title{^^A
+%   Old hyperref patches
+% }
+%
+% \author{^^A
+%  The \LaTeX{} Project\thanks
+%    {^^A
+%      E-mail:
+%        \href{mailto:latex-team at latex-project.org}
+%          {latex-team at latex-project.org}^^A
+%    }^^A
+% }
+%
+% \date{Version 0.9, released 2021-06-29}
+%
+% \maketitle
+% \begin{documentation}
+%
+% \section{\pkg{hyperref-patches} documentation}
+%
+% \pkg{hyperref} has included over the years a rather large number of
+% patches and correction for external packages to make them compatible with
+% hyperlinks.
+%
+% Some of these patches are now unnessary, either because the external
+% package is no longer used or because the package was fixed or extended to
+% supports hyperlinks.
+%
+% This small package contains patches were it is not sure if they can be removed
+% completly so that if needed that can be added manually, either by loading
+% this package or by copying the code.
+%
+% \end{documentation}
+
+% \begin{implementation}
+%
+% \section{\pkg{hyperref-patches} documentation}
+%
+%    \begin{macrocode}
+%<*package>
+\ProvidesPackage{hyperref-patches}[2021-06-29 v0.9 old hyperref patches]
+%    \end{macrocode}
+% \section{Compatibility with foiltex}
+% foils.cls redefine figure, table and caption as it doesn't want them to float
+% and also thinks that list of figures and tables are unnecessary. This
+% means that \cs{ext at table} and \cs{ext at figure} are missing too which
+% are needed by the definitions of hyperref.
+%
+% foiltex is not part of the standard tex systems and hasn't been update the last
+% time in 2008. So the patch is removed from hyperref.
+%
+%    \begin{macrocode}
+\@ifclassloaded{foils}{%
+  \providecommand*\ext at table{lot}%
+  \providecommand*\ext at figure{lof}%
+}{}
+%    \end{macrocode}
+%
+%
+%    \begin{macrocode}
+%</package>
+%    \end{macrocode}
+%
+% \end{implementation}
+%
+% \PrintIndex
diff --git a/hyperref.dtx b/hyperref.dtx
index 0a573a0..e220f2e 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -12700,14 +12700,6 @@
 }
 %    \end{macrocode}
 %
-% \section{Compatibility with foiltex}
-%
-%    \begin{macrocode}
-\@ifclassloaded{foils}{%
-  \providecommand*\ext at table{lot}%
-  \providecommand*\ext at figure{lof}%
-}{}
-%    \end{macrocode}
 %
 % \section{Compatibility with seminar slide package}\label{seminar}
 %    This requires \texttt{seminar.bg2}, version 1.6 or later.





More information about the latex3-commits mailing list.