Debian Codegraph @

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

raw
1 %%
2 %% This is file `hvtexmrk.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hyperref.dtx (with options: `vtexpdfmark')
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{hvtexmrk.def}
36 [2026-04-24 v7.01q %
37 Hyperref driver for VTeX in PDF/PS mode (pdfmark specials)]
38 \Hy@VersionCheck{hvtexmrk.def}
39 \providecommand*{\XR@ext}{pdf}
40 \let\Hy@raisedlink\@empty
41 \def\literalps@out#1{\special{pS:#1}}%
42 \def\headerps@out#1{\immediate\special{pS:#1}}%
43 \input{pdfmark.def}%
44 \ifx\@pdfproducer\relax
45 \ifnum\OpMode=\@ne
46 \def\@pdfproducer{VTeX}%
47 \else
48 \def\@pdfproducer{VTeX + Distiller}%
49 \fi
50 \fi
51 \providecommand*\@pdfborder{0 0 1}
52 \providecommand*\@pdfborderstyle{}
53 \providecommand*\@pdfview{XYZ}
54 \providecommand*\@pdfviewparams{ H.V}
55 \g@addto@macro\Hy@FirstPageHook{%
56 \headerps@out{%
57 /vsize {\Hy@pageheight} def%
58 /HyperBorder {1} def%
59 /H.V {pdf@hoff pdf@voff null} def%
60 /H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def%
61 /H.S {%
62 currentpoint %
63 HyperBorder sub%
64 /pdf@lly exch def %
65 dup 72 add /pdf@hoff exch def %
66 HyperBorder sub%
67 /pdf@llx exch def%
68 } def%
69 /H.L {%
70 2 sub%
71 /HyperBasePt exch def %
72 currentpoint %
73 HyperBasePt add HyperBorder add%
74 /pdf@ury exch def %
75 HyperBorder add%
76 /pdf@urx exch def%
77 } def%
78 /H.A {%
79 H.L %
80 currentpoint exch pop %
81 vsize 72 sub exch %
82 HyperBasePt add add%
83 /pdf@voff exch def%
84 } def%
85 /H.R {%
86 currentpoint %
87 HyperBorder add%
88 /pdf@ury exch def %
89 HyperBorder add%
90 /pdf@urx exch def %
91 currentpoint exch pop vsize 72 sub add%
92 /pdf@voff exch def%
93 } def%
94 }%
95 }
96 \def\setpdflinkmargin#1{%
97 \begingroup
98 \setlength{\dimen@}{#1}%
99 \literalps@out{%
100 /HyperBorder{\strip@pt\dimen@}def%
101 }%
102 \endgroup
103 }
104 \endinput
105 %%
106 %% End of file `hvtexmrk.def'.