Debian Codegraph @

texmf-dist/tex/latex/hyperref/hyperref-patches.sty

raw
1 %%
2 %% This is file `hyperref-patches.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hyperref-patches.dtx (with options: `package')
8 %%
9 %% Copyright
10 %% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek
11 %% 2001-2015 Heiko Oberdiek
12 %% 2016-2019 Oberdiek Package Support Group
13 %% 2019-2026 LaTeX Project
14 %% https://github.com/latex3/hyperref/issues
15 %%
16 %% This file is part of the `Hyperref Bundle'.
17 %% -------------------------------------------
18 %%
19 %% This work may be distributed and/or modified under the
20 %% conditions of the LaTeX Project Public License, either version 1.3
21 %% of this license or (at your option) any later version.
22 %% The latest version of this license is in
23 %% http://www.latex-project.org/lppl.txt
24 %% and version 1.3 or later is part of all distributions of LaTeX
25 %% version 2005/12/01 or later.
26 %%
27 %% This work has the LPPL maintenance status `maintained'.
28 %%
29 %% The Current Maintainer of this work is the LaTeX Project.
30 %%
31 %% The list of all files belonging to the `Hyperref Bundle' is
32 %% given in the file `manifest.txt'.
33 %%
34 %% File: hyperref-patches.dtx
35 %% Copyright
36 %% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek,
37 %% 2001-2015 Heiko Oberdiek.
38 %% 2016-2019 Oberdiek Package Support Group
39 %% 2019-2026 LaTeX Project
40 %% https://github.com/latex3/hyperref/issues
41 %%
42 %% This file is part of the `Hyperref Bundle'.
43 %% -------------------------------------------
44 %%
45 %% This work may be distributed and/or modified under the
46 %% conditions of the LaTeX Project Public License, either version 1.3
47 %% of this license or (at your option) any later version.
48 %% The latest version of this license is in
49 %% http://www.latex-project.org/lppl.txt
50 %% and version 1.3 or later is part of all distributions of LaTeX
51 %% version 2005/12/01 or later.
52 %%
53 %% This work has the LPPL maintenance status `maintained'.
54 %%
55 %% The Current Maintainer of this work is the LaTeX Project.
56 %%
57 %% The list of all files belonging to the `Hyperref Bundle' is
58 %% given in the file `manifest.txt'.
59 \ProvidesPackage{hyperref-patches}[2021-06-29 v0.9 old hyperref patches]
60 \newif\ifHy@patches@foiltex
61 \Hy@patches@foiltextrue
62 \DeclareOption{nofoiltex}{\Hy@patches@foiltexfalse}
63 \newif\ifHy@patches@listing
64 \Hy@patches@listingtrue
65 \DeclareOption{nolisting}{\Hy@patches@listingfalse}
66 \newif\ifHy@patches@listings
67 \Hy@patches@listingstrue
68 \DeclareOption{nolistings}{\Hy@patches@listingsfalse}
69 \newif\ifHy@patches@revtex
70 \Hy@patches@revtextrue
71 \DeclareOption{norevtex}{\Hy@patches@revtexfalse}
72 \ProcessOptions
73 \ifHy@patches@foiltex
74 \@ifclassloaded{foils}{%
75 \providecommand*\ext@table{lot}%
76 \providecommand*\ext@figure{lof}%
77 }{}
78 \fi
79 \ifHy@patches@listing
80 \@ifpackageloaded{listing}{%
81 \providecommand*\theHlisting{\thelisting}%
82 \providecommand*\toclevel@listing{0}%
83 }{}
84 \fi
85 \ifHy@patches@listings
86 \@ifpackageloaded{listings}{%
87 \providecommand*\theHlstlisting{\thelstlisting}%
88 \providecommand*\toclevel@lstlisting{0}%
89 }{}
90 \fi
91 \ifHy@patches@revtex
92 \@ifclassloaded{revtex}{%
93 \Hy@Info{*** compatibility with revtex **** }%
94 \def\revtex@checking#1#2{%
95 \expandafter\let\expandafter\T@temp\csname b@#1\endcsname
96 \expandafter\def\csname b@#1\endcsname{#2}%
97 \@SetMaxRnhefLabel{#1}%
98 \expandafter\let\csname b@#1\endcsname\T@temp
99 }%
100 \@ifundefined{@CITE}{\def\@CITE{\@cite}}{}%
101 \providecommand*{\@extra@b@citeb}{}%
102 \def\@CITEX[#1]#2{%
103 \let\@citea\@empty
104 \leavevmode
105 \unskip
106 $^{%
107 \scriptstyle
108 \@CITE{%
109 \@for\@citeb:=#2\do{%
110 \@citea
111 \def\@citea{,\penalty\@m\ }%
112 \edef\@citeb{\expandafter\@firstofone\@citeb}%
113 \if@filesw
114 \immediate\write\@auxout{\string\citation{\@citeb}}%
115 \fi
116 \@ifundefined{b@\@citeb\extra@b@citeb}{%
117 \mbox{\reset@font\bfseries ?}%
118 \G@refundefinedtrue
119 \@latex@warning{%
120 Citation `\@citeb' on page \thepage \space undefined%
121 }%
122 }{%
123 {\csname b@\@citeb\@extra@b@citeb\endcsname}%
124 }%
125 }%
126 }{#1}%
127 }$%
128 }%
129 \def\@citex[#1]#2{%
130 \let\@citea\@empty
131 \@cite{%
132 \@for\@citeb:=#2\do{%
133 \@citea
134 \def\@citea{,\penalty\@m\ }%
135 \edef\@citeb{\expandafter\@firstofone\@citeb}%
136 \if@filesw
137 \immediate\write\@auxout{\string\citation{\@citeb}}%
138 \fi
139 \@ifundefined{b@\@citeb\@extra@b@citeb}{%
140 \mbox{\reset@font\bfseries ?}%
141 \G@refundefinedtrue
142 \@latex@warning{%
143 Citation `\@citeb' on page \thepage \space undefined%
144 }%
145 }{%
146 \hbox{\csname b@\@citeb\@extra@b@citeb\endcsname}%
147 }%
148 }%
149 }{#1}%
150 }%
151 }{}
152 \fi
153 \endinput
154 %%
155 %% End of file `hyperref-patches.sty'.