Debian Codegraph @

texmf-dist/tex/latex/hyperref/htexture.def

raw
1 %%
2 %% This is file `htexture.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hyperref.dtx (with options: `textures')
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.dtx
35 \ProvidesFile{htexture.def}
36 [2026-04-24 v7.01q %
37 Hyperref driver for Textures]
38 \Hy@VersionCheck{htexture.def}
39 \providecommand*{\XR@ext}{pdf}
40 \begingroup
41 \obeylines %
42 \gdef\Hy@ps@CR{\noexpand
43 }%
44 \endgroup %
45 \def\literalps@out#1{%
46 \special{postscript 0 0 transform}%
47 \special{rawpostscript itransform moveto\Hy@ps@CR #1}%
48 }%
49 \def\headerps@out#1{%
50 \special{%
51 prepostscript TeXdict begin\Hy@ps@CR
52 #1\Hy@ps@CR
53 end%
54 }%
55 }%
56 \g@addto@macro\Hy@FirstPageHook{%
57 \headerps@out{%
58 /betterpdfmark {%
59 systemdict begin %
60 dup /BP eq%
61 {cleartomark gsave nulldevice [}%
62 {dup /EP eq%
63 {cleartomark cleartomark grestore}%
64 {cleartomark}%
65 ifelse%
66 }ifelse %
67 end%
68 }def\Hy@ps@CR
69 __pdfmark__ not{/pdfmark /betterpdfmark load def}if%
70 }% end of \headerps@out
71 }% end of \AddToHook{shipout/firstpage}
72 \input{pdfmark.def}%
73 \ifx\@pdfproducer\relax
74 \def\@pdfproducer{Textures + Distiller}%
75 \fi
76 \providecommand*\@pdfborder{0 0 1}
77 \providecommand*\@pdfborderstyle{}
78 \providecommand*\@pdfview{XYZ}
79 \providecommand*\@pdfviewparams{ H.V}
80 \Hy@AtBeginDocument{%
81 \headerps@out{%
82 /vsize {\Hy@pageheight} def%
83 /DvipsToPDF {} def%
84 /PDFToDvips {} def%
85 /BPToDvips {} def%
86 /HyperBorder { 1 PDFToDvips } def\Hy@ps@CR
87 /H.V {pdf@hoff pdf@voff null} def\Hy@ps@CR
88 /H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def\Hy@ps@CR
89 /H.S {%
90 currentpoint %
91 HyperBorder add /pdf@lly exch def %
92 dup DvipsToPDF 72 add /pdf@hoff exch def %
93 HyperBorder sub /pdf@llx exch def%
94 } def\Hy@ps@CR
95 /H.L {%
96 2 sub %
97 PDFToDvips /HyperBase exch def %
98 currentpoint %
99 HyperBase sub /pdf@ury exch def%
100 /pdf@urx exch def%
101 } def\Hy@ps@CR
102 /H.A {%
103 H.L %
104 currentpoint exch pop %
105 vsize 72 sub exch DvipsToPDF %
106 HyperBase sub % baseline skip
107 sub /pdf@voff exch def%
108 } def\Hy@ps@CR
109 /H.R {%
110 currentpoint %
111 HyperBorder sub /pdf@ury exch def %
112 HyperBorder add /pdf@urx exch def %
113 currentpoint exch pop vsize 72 sub %
114 exch DvipsToPDF sub /pdf@voff exch def%
115 } def\Hy@ps@CR
116 }%
117 }
118 \def\setpdflinkmargin#1{%
119 \begingroup
120 \setlength{\dimen@}{#1}%
121 \literalps@out{%
122 /HyperBorder{\strip@pt\dimen@\space PDFToDvips}def%
123 }%
124 \endgroup
125 }
126 \Hy@AtBeginDocument{%
127 \ifHy@colorlinks
128 \headerps@out{/PDFBorder{/Border [0 0 0]}def}%
129 \fi
130 }
131 \expandafter\let\expandafter\keepPDF@SetupDoc
132 \csname PDF@SetupDoc\endcsname
133 \def\PDF@SetupDoc{%
134 \ifx\@baseurl\@empty
135 \else
136 \special{html:<base href="\@baseurl">}%
137 \fi
138 \keepPDF@SetupDoc
139 }
140 \Hy@WrapperDef\hyper@anchor#1{%
141 \Hy@SaveLastskip
142 \Hy@VerboseAnchor{#1}%
143 \begingroup
144 \let\protect=\string
145 \special{html:<a name=%
146 \hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
147 \endgroup
148 \Hy@activeanchortrue
149 \Hy@colorlink\@anchorcolor\anchor@spot\Hy@endcolorlink
150 \special{html:</a>}%
151 \Hy@activeanchorfalse
152 \Hy@RestoreLastskip
153 }
154 \Hy@WrapperDef\hyper@anchorstart#1{%
155 \Hy@SaveLastskip
156 \Hy@VerboseAnchor{#1}%
157 \begingroup
158 \hyper@chars
159 \special{html:<a name=%
160 \hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
161 \endgroup
162 \Hy@activeanchortrue
163 }
164 \def\hyper@anchorend{%
165 \special{html:</a>}%
166 \Hy@activeanchorfalse
167 \Hy@RestoreLastskip
168 }
169 \def\@urltype{url}
170 \def\hyper@linkstart#1#2{%
171 \Hy@VerboseLinkStart{#1}{#2}%
172 \expandafter\Hy@colorlink\csname @#1color\endcsname
173 \def\Hy@tempa{#1}%
174 \ifx\Hy@tempa\@urltype
175 \special{html:<a href=\hyper@quote#2\hyper@quote>}%
176 \else
177 \begingroup
178 \hyper@chars
179 \special{%
180 html:<a href=%
181 \hyper@quote\#\HyperDestNameFilter{#2}\hyper@quote>%
182 }%
183 \endgroup
184 \fi
185 }
186 \def\hyper@linkend{%
187 \special{html:</a>}%
188 \Hy@endcolorlink
189 }
190 \def\hyper@linkfile#1#2#3{%
191 \hyper@linkurl{#1}{%
192 \Hy@linkfileprefix#2\ifx\\#3\\\else\##3\fi
193 }%
194 }
195 \def\hyper@linkurl#1#2{%
196 \leavevmode
197 \ifHy@raiselinks
198 \Hy@SaveSpaceFactor
199 \Hy@SaveSavedSpaceFactor
200 \sbox\@tempboxa{\Hy@RestoreSpaceFactor#1}%
201 \Hy@RestoreSavedSpaceFactor
202 \@linkdim\dp\@tempboxa
203 \lower\@linkdim\hbox{%
204 \hyper@chars
205 \special{html:<a href=\hyper@quote#2\hyper@quote>}%
206 }%
207 \Hy@colorlink\@urlcolor
208 \Hy@RestoreSpaceFactor
209 #1\Hy@xspace@end
210 \Hy@SaveSpaceFactor
211 \@linkdim\ht\@tempboxa
212 \advance\@linkdim by -6.5\p@
213 \raise\@linkdim\hbox{\special{html:</a>}}%
214 \Hy@endcolorlink
215 \Hy@RestoreSpaceFactor
216 \else
217 \begingroup
218 \hyper@chars
219 \special{html:<a href=\hyper@quote#2\hyper@quote>}%
220 \Hy@colorlink\@urlcolor#1\Hy@xspace@end
221 \special{html:</a>}%
222 \Hy@endcolorlink
223 \endgroup
224 \fi
225 }
226 \def\hyper@link#1#2#3{%
227 \Hy@VerboseLinkStart{#1}{#2}%
228 \hyper@linkurl{#3}{\#\HyperDestNameFilter{#2}}%
229 }
230 \def\hyper@image#1#2{%
231 \begingroup
232 \hyper@chars
233 \special{html:<img src=\hyper@quote#1\hyper@quote>}%
234 \endgroup
235 }
236 \endinput
237 %%
238 %% End of file `htexture.def'.