Debian Codegraph @

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

raw
1 %%
2 %% This is file `hdvipson.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hyperref.dtx (with options: `dvipsone')
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{hdvipson.def}
36 [2026-04-24 v7.01q %
37 Hyperref driver for dvipsone]
38 \Hy@VersionCheck{hdvipson.def}
39 \providecommand*{\XR@ext}{pdf}
40 \let\Hy@raisedlink\@empty
41 \providecommand*\@pdfborder{0 0 1}
42 \providecommand*\@pdfborderstyle{}
43 \def\literalps@out#1{\special{ps:#1}}%
44 \def\headerps@out#1{\special{headertext=#1}}%
45 \input{pdfmark.def}%
46 \HyInfo@AddonUnsupportedtrue
47 \def\PDF@FinishDoc{%
48 \Hy@UseMaketitleInfos
49 \HyInfo@TrappedUnsupported
50 \special{PDF: Keywords \@pdfkeywords}%
51 \special{PDF: Title \@pdftitle}%
52 \special{PDF: Creator \@pdfcreator}%
53 \ifx\@pdfcreationdate\@empty
54 \else
55 \special{PDF: CreationDate \@pdfcreationdate}%
56 \fi
57 \ifx\@pdfmoddate\@empty
58 \else
59 \special{PDF: ModDate \@pdfmoddate}%
60 \fi
61 \special{PDF: Author \@pdfauthor}%
62 \ifx\@pdfproducer\relax
63 \else
64 \special{PDF: Producer \@pdfproducer}%
65 \fi
66 \special{PDF: Subject \@pdfsubject}%
67 \Hy@DisableOption{pdfauthor}%
68 \Hy@DisableOption{pdftitle}%
69 \Hy@DisableOption{pdfsubject}%
70 \Hy@DisableOption{pdfcreator}%
71 \Hy@DisableOption{addtopdfcreator}%
72 \Hy@DisableOption{pdfcreationdate}%
73 \Hy@DisableOption{pdfcreationdate}%
74 \Hy@DisableOption{pdfmoddate}%
75 \Hy@DisableOption{pdfproducer}%
76 \Hy@DisableOption{pdfkeywords}%
77 \Hy@DisableOption{pdftrapped}%
78 \Hy@DisableOption{pdfinfo}%
79 }
80 \def\PDF@SetupDoc{%
81 \def\Hy@temp{}%
82 \ifx\@pdfstartpage\@empty
83 \else
84 \ifx\@pdfstartview\@empty
85 \else
86 \edef\Hy@temp{%
87 ,Page=\@pdfstartpage
88 ,View=\@pdfstartview
89 }%
90 \fi
91 \fi
92 \edef\Hy@temp{%
93 \noexpand\pdfmark{%
94 pdfmark=/DOCVIEW,%
95 PageMode=/\@pdfpagemode
96 \Hy@temp
97 }%
98 }%
99 \Hy@temp
100 \ifx\@pdfpagescrop\@empty
101 \else
102 \pdfmark{pdfmark=/PAGES,CropBox=\@pdfpagescrop}%
103 \fi
104 \edef\Hy@temp{%
105 \ifHy@pdftoolbar\else /HideToolbar true\fi
106 \ifHy@pdfmenubar\else /HideMenubar true\fi
107 \ifHy@pdfwindowui\else /HideWindowUI true\fi
108 \ifHy@pdffitwindow /FitWindow true\fi
109 \ifHy@pdfcenterwindow /CenterWindow true\fi
110 \ifHy@pdfdisplaydoctitle /DisplayDocTitle true\fi
111 \Hy@UseNameKey{NonFullScreenPageMode}\@pdfnonfullscreenpagemode
112 \Hy@UseNameKey{Direction}\@pdfdirection
113 \Hy@UseNameKey{ViewArea}\@pdfviewarea
114 \Hy@UseNameKey{ViewClip}\@pdfviewclip
115 \Hy@UseNameKey{PrintArea}\@pdfprintarea
116 \Hy@UseNameKey{PrintClip}\@pdfprintclip
117 \Hy@UseNameKey{PrintScaling}\@pdfprintscaling
118 \Hy@UseNameKey{Duplex}\@pdfduplex
119 \ifx\@pdfpicktraybypdfsize\@empty
120 \else
121 /PickTrayByPDFSize \@pdfpicktraybypdfsize
122 \fi
123 \ifx\@pdfprintpagerange\@empty
124 \else
125 /PrintPageRange[\@pdfprintpagerange]%
126 \fi
127 \ifx\@pdfnumcopies\@empty
128 \else
129 /NumCopies \@pdfnumcopies
130 \fi
131 }%
132 \Hy@pstringdef\Hy@pstringB{\@baseurl}%
133 \pdfmark{%
134 pdfmark=/PUT,%
135 Raw={%
136 \string{Catalog\string}<<%
137 \ifx\Hy@temp\@empty
138 \else
139 /ViewerPreferences<<\Hy@temp>>%
140 \fi
141 \Hy@UseNameKey{PageLayout}\@pdfpagelayout
142 \ifx\@pdflang\relax
143 \else
144 /Lang(\@pdflang)%
145 \fi
146 \ifx\@baseurl\@empty
147 \else
148 /URI<</Base(\Hy@pstringB)>>%
149 \fi
150 >>%
151 }%
152 }%
153 }
154 \providecommand*\@pdfview{XYZ}
155 \providecommand*\@pdfviewparams{ %
156 gsave revscl currentpoint grestore %
157 72 add exch pop null exch null%
158 }
159 \def\Hy@BorderArrayPatch{BorderArrayPatch}
160 \g@addto@macro\Hy@FirstPageHook{%
161 \headerps@out{%
162 /DvipsToPDF { 65781 div } def%
163 /PDFToDvips { 65781 mul } def%
164 /BPToDvips{65781 mul}def%
165 /HyperBorder { 1 PDFToDvips } def%
166 /H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def%
167 /BorderArrayPatch{%
168 [exch{%
169 dup dup type/integertype eq exch type/realtype eq or%
170 {BPToDvips}if%
171 }forall]%
172 }def%
173 /H.S {%
174 currentpoint %
175 HyperBorder add /pdf@lly exch def %
176 dup DvipsToPDF 72 add /pdf@hoff exch def %
177 HyperBorder sub /pdf@llx exch def%
178 } def%
179 /H.L {%
180 2 sub %
181 PDFToDvips /HyperBase exch def %
182 currentpoint %
183 HyperBase sub /pdf@ury exch def%
184 /pdf@urx exch def%
185 } def%
186 /H.A {%
187 H.L %
188 currentpoint exch pop %
189 HyperBase sub % baseline skip
190 DvipsToPDF /pdf@voff exch def%
191 } def%
192 /H.R {%
193 currentpoint %
194 HyperBorder sub /pdf@ury exch def %
195 HyperBorder add /pdf@urx exch def %
196 currentpoint exch pop DvipsToPDF /pdf@voff exch def%
197 } def%
198 }%
199 }
200 \def\setpdflinkmargin#1{%
201 \begingroup
202 \setlength{\dimen@}{#1}%
203 \literalps@out{%
204 /HyperBorder{\strip@pt\dimen@\space PDFToDvips}def%
205 }%
206 \endgroup
207 }
208 \endinput
209 %%
210 %% End of file `hdvipson.def'.