[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: remove latex2html code, is unneeded (provided by html.sty) (cd5f9e1)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Aug 30 19:01:34 CEST 2021


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

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

commit cd5f9e177a67109eaea703bee7e6c0dc04de6019
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Aug 30 19:01:34 2021 +0200

    remove latex2html code, is unneeded  (provided by html.sty)


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

cd5f9e177a67109eaea703bee7e6c0dc04de6019
 ChangeLog.txt |  2 ++
 hyperref.dtx  | 37 -------------------------------------
 2 files changed, 2 insertions(+), 37 deletions(-)

diff --git a/ChangeLog.txt b/ChangeLog.txt
index 8655006..7c7d9cf 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -2,6 +2,8 @@ XXXX-XX-XX Ulrike Fischer/David Carlisle
     * added a key next-anchor to set the next anchor name.
     * added a command \hyperget to retrieve anchor names.
     * moved the patch for foiltex into an external package
+    * removed compability code for latex2html, this is now provided
+      by html.sty directly. 
     * remove patch for seminar, this is now in the class itself
     * move (basically unneeded) listings patches to external
     package
diff --git a/hyperref.dtx b/hyperref.dtx
index 87e6c08..0bf70a4 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -8234,43 +8234,6 @@
 }
 %    \end{macrocode}
 %
-% \section{Compatibility with the \emph{\LaTeX{}2html} package}\label{latex2html}
-%
-% Map our macro names on to Nikos', so that documents prepared
-% for that system will work without change.
-%
-% Note, however, that the whole complicated structure for
-% segmenting documents is not supported; it is assumed that the user
-% will load |html.sty| first, and then |hyperref.sty|, so that the
-% definitions in |html.sty| take effect, and are then overridden
-% in a few circumstances by this package.
-%    \begin{macrocode}
-\let\htmladdimg\hyperimage
-%    \end{macrocode}
-%
-%    \begin{macrocode}
-\def\htmladdnormallink#1#2{\href{#2}{#1}}
-\def\htmladdnormallinkfoot#1#2{\href{#2}{#1}\footnote{#2}}
-\def\htmlref#1#2{% anchor text, label
-  \label at hyperref[{#2}]{#1}%
-}
-%    \end{macrocode}
-% This is really too much. The \LaTeX2html package defines its own
-% |\hyperref| command, with a different syntax. Was this always here?
-% Its weird, anyway. We interpret it in the `printed' way, since
-% we are about fidelity to the page.
-%    \begin{macrocode}
-\def\@@latextohtmlX{%
-  \let\hhyperref\hyperref
-  \def\hyperref##1##2##3##4{% anchor text for HTML
-                     % text to print before label in print
-                     % label
-                     % post-label text in print
-    ##2\ref{##4}##3%
-  }%
-}
-%    \end{macrocode}
-%
 % \section{Forms creation}
 % Allow for creation of PDF or HTML forms. The effects here are
 % limited somewhat by the need to support both output formats,





More information about the latex3-commits mailing list.