[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: remove check for old toc, contentsline has now the right number of arguments (c53634e)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Jul 14 23:47:21 CEST 2021
Repository : https://github.com/latex3/hyperref
On branch : cleanup-patches
Link : https://github.com/latex3/hyperref/commit/c53634e916ea11fa8cc13dce657162010a87bcaf
>---------------------------------------------------------------
commit c53634e916ea11fa8cc13dce657162010a87bcaf
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Jul 14 23:47:21 2021 +0200
remove check for old toc, contentsline has now the right number of arguments
>---------------------------------------------------------------
c53634e916ea11fa8cc13dce657162010a87bcaf
hyperref.dtx | 20 +-------------------
1 file changed, 1 insertion(+), 19 deletions(-)
diff --git a/hyperref.dtx b/hyperref.dtx
index 27ec3c8..78183fd 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -9652,27 +9652,9 @@
% with aux and toc written the standard way.
%
% If hyperref was used last time, do nothing. If it was not used,
-% or an old version of hyperref was used, don't use that TOC at all
-% but generate a warning. Not ideal, but better than failing
-% with pre-5.0 hyperref TOCs.
+% redefine newlabel to cope with it.
% \begin{macrocode}
\ifx\hyper at last\@undefined
- \def\@starttoc#1{%
- \begingroup
- \makeatletter
- \ltx at ifpackageloaded{parskip}{\parskip\z@}{}%
- \IfFileExists{\jobname.#1}{%
- \Hy at WarningNoLine{%
- old #1 file detected, not used; run LaTeX again%
- }%
- }{}%
- \if at filesw
- \expandafter\newwrite\csname tf@#1\endcsname
- \immediate\openout\csname tf@#1\endcsname \jobname.#1\relax
- \fi
- \@nobreakfalse
- \endgroup
- }%
\def\newlabel#1#2{\@newl at bel r{#1}{#2{}{}{}{}}}%
\fi
}
More information about the latex3-commits
mailing list.