[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: move revtex patch out of hyperref (9cb2e9b)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Sep 2 23:34:00 CEST 2021
Repository : https://github.com/latex3/hyperref
On branch : cleanup-patches
Link : https://github.com/latex3/hyperref/commit/9cb2e9b51636ec2467266bc4a6981477ab2990c2
>---------------------------------------------------------------
commit 9cb2e9b51636ec2467266bc4a6981477ab2990c2
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Sep 2 23:34:00 2021 +0200
move revtex patch out of hyperref
>---------------------------------------------------------------
9cb2e9b51636ec2467266bc4a6981477ab2990c2
hyperref-patches.dtx | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++--
hyperref.dtx | 77 --------------------------------------------
2 files changed, 88 insertions(+), 80 deletions(-)
diff --git a/hyperref-patches.dtx b/hyperref-patches.dtx
index 23d0c30..e9bcd7f 100644
--- a/hyperref-patches.dtx
+++ b/hyperref-patches.dtx
@@ -95,7 +95,7 @@
% 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.
%
-% --End of move command--
+% --End of move comment--
%
% \begin{macrocode}
\@ifclassloaded{foils}{%
@@ -109,7 +109,7 @@
% This provide two commands for the listing package which is from 1999.
% Probably unneeded anyway, as this are the defaults, at best they prevent some warnings.
%
-% --End of move command--
+% --End of move comment--
% \begin{macrocode}
\@ifpackageloaded{listing}{%
\providecommand*\theHlisting{\thelisting}%
@@ -122,13 +122,98 @@
% This provide two commands for the listing package which is from 1999.
% Probably unneeded anyway, as this are the defaults, at best they prevent some warnings.
%
-% --End of move command--
+% --End of move comment--
% \begin{macrocode}
\@ifpackageloaded{listings}{%
\providecommand*\theHlstlisting{\thelstlisting}%
\providecommand*\toclevel at lstlisting{0}%
}{}
% \end{macrocode}
+%
+% \section{revtex}
+%
+% --Moved 2021-09-02--
+% revtex.cls is obsolete and it no installed in texlive and miktex so the patch for it
+% has been removed from hyperref.
+% -- End of move comment
+%
+% Revtex (bless its little heart) takes over |\bibcite| and looks
+% at the result to measure something. Make this a hypertext link
+% and it goes ape. Therefore, make an anodyne result first, call
+% its business, then go back to the real thing.
+% \begin{macrocode}
+\@ifclassloaded{revtex}{%
+ \Hy at Info{*** compatibility with revtex **** }%
+ \def\revtex at checking#1#2{%
+ \expandafter\let\expandafter\T at temp\csname b@#1\endcsname
+ \expandafter\def\csname b@#1\endcsname{#2}%
+ \@SetMaxRnhefLabel{#1}%
+ \expandafter\let\csname b@#1\endcsname\T at temp
+ }%
+% \end{macrocode}
+% Tanmoy provided this replacement for CITEX. Lord knows what it does.
+% For chapterbib added: \@extra at b@citeb
+% \begin{macrocode}
+ \@ifundefined{@CITE}{\def\@CITE{\@cite}}{}%
+ \providecommand*{\@extra at b@citeb}{}%
+ \def\@CITEX[#1]#2{%
+ \let\@citea\@empty
+ \leavevmode
+ \unskip
+ $^{%
+ \scriptstyle
+ \@CITE{%
+ \@for\@citeb:=#2\do{%
+ \@citea
+ \def\@citea{,\penalty\@m\ }%
+ \edef\@citeb{\expandafter\@firstofone\@citeb}%
+ \if at filesw
+ \immediate\write\@auxout{\string\citation{\@citeb}}%
+ \fi
+ \@ifundefined{b@\@citeb\extra at b@citeb}{%
+ \mbox{\reset at font\bfseries ?}%
+ \G at refundefinedtrue
+ \@latex at warning{%
+ Citation `\@citeb' on page \thepage \space undefined%
+ }%
+ }{%
+ {\csname b@\@citeb\@extra at b@citeb\endcsname}%
+ }%
+ }%
+ }{#1}%
+ }$%
+ }%
+% \end{macrocode}
+% No, life is too short. I am not going to understand the
+% Revtex |\@collapse| macro, I shall
+% just restore the original behaviour of |\@citex|;
+% sigh. This is SO vile.
+% \begin{macrocode}
+ \def\@citex[#1]#2{%
+ \let\@citea\@empty
+ \@cite{%
+ \@for\@citeb:=#2\do{%
+ \@citea
+ \def\@citea{,\penalty\@m\ }%
+ \edef\@citeb{\expandafter\@firstofone\@citeb}%
+ \if at filesw
+ \immediate\write\@auxout{\string\citation{\@citeb}}%
+ \fi
+ \@ifundefined{b@\@citeb\@extra at b@citeb}{%
+ \mbox{\reset at font\bfseries ?}%
+ \G at refundefinedtrue
+ \@latex at warning{%
+ Citation `\@citeb' on page \thepage \space undefined%
+ }%
+ }{%
+ \hbox{\csname b@\@citeb\@extra at b@citeb\endcsname}%
+ }%
+ }%
+ }{#1}%
+ }%
+}{}
+% \end{macrocode}
+%
% \begin{macrocode}
%</package>
% \end{macrocode}
diff --git a/hyperref.dtx b/hyperref.dtx
index 0bf70a4..254cef1 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -11707,83 +11707,6 @@
%<*package>
% \end{macrocode}
%
-% Revtex (bless its little heart) takes over |\bibcite| and looks
-% at the result to measure something. Make this a hypertext link
-% and it goes ape. Therefore, make an anodyne result first, call
-% its business, then go back to the real thing.
-% \begin{macrocode}
-\@ifclassloaded{revtex}{%
- \Hy at Info{*** compatibility with revtex **** }%
- \def\revtex at checking#1#2{%
- \expandafter\let\expandafter\T at temp\csname b@#1\endcsname
- \expandafter\def\csname b@#1\endcsname{#2}%
- \@SetMaxRnhefLabel{#1}%
- \expandafter\let\csname b@#1\endcsname\T at temp
- }%
-% \end{macrocode}
-% Tanmoy provided this replacement for CITEX. Lord knows what it does.
-% For chapterbib added: \@extra at b@citeb
-% \begin{macrocode}
- \@ifundefined{@CITE}{\def\@CITE{\@cite}}{}%
- \providecommand*{\@extra at b@citeb}{}%
- \def\@CITEX[#1]#2{%
- \let\@citea\@empty
- \leavevmode
- \unskip
- $^{%
- \scriptstyle
- \@CITE{%
- \@for\@citeb:=#2\do{%
- \@citea
- \def\@citea{,\penalty\@m\ }%
- \edef\@citeb{\expandafter\@firstofone\@citeb}%
- \if at filesw
- \immediate\write\@auxout{\string\citation{\@citeb}}%
- \fi
- \@ifundefined{b@\@citeb\extra at b@citeb}{%
- \mbox{\reset at font\bfseries ?}%
- \G at refundefinedtrue
- \@latex at warning{%
- Citation `\@citeb' on page \thepage \space undefined%
- }%
- }{%
- {\csname b@\@citeb\@extra at b@citeb\endcsname}%
- }%
- }%
- }{#1}%
- }$%
- }%
-% \end{macrocode}
-% No, life is too short. I am not going to understand the
-% Revtex |\@collapse| macro, I shall
-% just restore the original behaviour of |\@citex|;
-% sigh. This is SO vile.
-% \begin{macrocode}
- \def\@citex[#1]#2{%
- \let\@citea\@empty
- \@cite{%
- \@for\@citeb:=#2\do{%
- \@citea
- \def\@citea{,\penalty\@m\ }%
- \edef\@citeb{\expandafter\@firstofone\@citeb}%
- \if at filesw
- \immediate\write\@auxout{\string\citation{\@citeb}}%
- \fi
- \@ifundefined{b@\@citeb\@extra at b@citeb}{%
- \mbox{\reset at font\bfseries ?}%
- \G at refundefinedtrue
- \@latex at warning{%
- Citation `\@citeb' on page \thepage \space undefined%
- }%
- }{%
- \hbox{\csname b@\@citeb\@extra at b@citeb\endcsname}%
- }%
- }%
- }{#1}%
- }%
-}{}
-% \end{macrocode}
-%
% \subsection{Package harvard}
%
% Override Peter Williams' Harvard package; we have to
More information about the latex3-commits
mailing list.