Debian Codegraph @

texmf-dist/tex/latex/oberdiek/hypgotoe.sty

raw
1 %%
2 %% This is file `hypgotoe.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hypgotoe.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: hypgotoe
12 %% Version: 2019/12/29 v0.3
13 %%
14 %% Copyright (C)
15 %% 2007 Heiko Oberdiek
16 %% 2016-2019 Oberdiek Package Support Group
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3 or later is part of all distributions of
26 %% LaTeX version 2005/12/01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainers of this work are
31 %% Heiko Oberdiek and the Oberdiek Package Support Group
32 %% https://github.com/ho-tex/oberdiek/issues
33 %%
34 %%
35 %% This work consists of the main source file hypgotoe.dtx
36 %% and the derived files
37 %% hypgotoe.sty, hypgotoe.pdf, hypgotoe.ins, hypgotoe.drv,
38 %% hypgotoe-example.tex.
39 %%
40 \NeedsTeXFormat{LaTeX2e}
41 \ProvidesPackage{hypgotoe}%
42 [2019/12/29 v0.3 Links to embedded files (HO)]%
43 \RequirePackage{iftex}[2019/11/07]
44 \ifpdf
45 \else
46 \PackageError{hypgotoe}{%
47 Other drivers than pdfTeX in PDF mode are not supported.%
48 \MessageBreak
49 Package loading is aborted%
50 }\@ehc
51 \expandafter\endinput
52 \fi
53 \RequirePackage{pdfescape}[2007/10/27]
54 \RequirePackage{hyperref}[2019/12/29]
55 \define@key{Hyp}{gotoebordercolor}{%
56 \HyColor@HyperrefBordercolor{#1}%
57 \@gotoebordercolor{hyperref}{gotoebordercolor}%
58 }
59 \providecommand*{\@gotoecolor}{\@filecolor}
60 \providecommand*{\@gotoebordercolor}{\@filebordercolor}
61 \def\@hyper@readexternallink#1#2#3#4:#5:#6\\#7{%
62 \ifx\\#6\\%
63 \expandafter\@hyper@linkfile file:#7\\{#3}{#2}%
64 \else
65 \ifx\\#4\\%
66 \expandafter\@hyper@linkfile file:#7\\{#3}{#2}%
67 \else
68 \def\@pdftempa{#4}%
69 \ifx\@pdftempa\@pdftempwordfile
70 \expandafter\@hyper@linkfile#7\\{#3}{#2}%
71 \else
72 \ifx\@pdftempa\@pdftempwordrun
73 \expandafter\@hyper@launch#7\\{#3}{#2}%
74 \else
75 \ifx\@pdftempa\@pdftempwordgotoe
76 \hyper@linkgotoe{#3}{#5}%
77 \else
78 \hyper@linkurl{#3}{#7\ifx\\#2\\\else\hyper@hash#2\fi}%
79 \fi
80 \fi
81 \fi
82 \fi
83 \fi
84 }
85 \def\@pdftempwordgotoe{gotoe}
86 \def\hyper@linkgotoe#1#2{%
87 \begingroup
88 \let\HyGoToE@Root\@empty
89 \let\HyGoToE@Dest\@empty
90 \let\HyGoToE@TBegin\@empty
91 \let\HyGoToE@TEnd\@empty
92 \setkeys{HyGoToE}{#2}%
93 \leavevmode
94 \pdfstartlink
95 attr{%
96 \Hy@setpdfborder
97 \ifx\@pdfhightlight\@empty
98 \else
99 /H\@pdfhighlight
100 \fi
101 \ifx\@urlbordercolor\relax
102 \else
103 /C[\@urlbordercolor]%
104 \fi
105 }%
106 user{%
107 /Subtype/Link%
108 /A<<%
109 /Type/Action%
110 /S/GoToE%
111 \Hy@SetNewWindow
112 \HyGoToE@Root
113 \HyGoToE@Dest
114 \HyGoToE@TBegin
115 \HyGoToE@TEnd
116 >>%
117 }%
118 \relax
119 \Hy@colorlink\@gotoecolor#1%
120 \close@pdflink
121 \endgroup
122 }
123 \define@key{HyGoToE}{root}{%
124 \EdefEscapeString\HyGoToE@temp{#1}%
125 \edef\HyGoToE@Root{%
126 /F<<%
127 /Type/Filespec%
128 /F(\HyGoToE@temp)%
129 >>%
130 }%
131 }
132 \define@key{HyGoToE}{dest}{%
133 \EdefEscapeString\HyGoToE@temp{#1}%
134 \edef\HyGoToE@Dest{%
135 /D(\HyGoToE@temp)%
136 }%
137 }
138 \define@key{HyGoToE}{parent}[]{%
139 \def\HyGoToE@temp{#1}%
140 \ifx\HyGoToE@temp\@empty
141 \else
142 \PackageWarning{hypgotoe}{Ignore value for `parent'}%
143 \fi
144 \edef\HyGoToE@TBegin{%
145 \HyGoToE@TBegin
146 /T<<%
147 /R/P%
148 }%
149 \edef\HyGoToE@TEnd{%
150 \HyGoToE@TEnd
151 >>%
152 }%
153 }
154 \define@key{HyGoToE}{embedded}{%
155 \EdefEscapeString\HyGoToE@temp{#1}%
156 \edef\HyGoToE@TBegin{%
157 \HyGoToE@TBegin
158 /T<<%
159 /R/C%
160 /N(\HyGoToE@temp)%
161 }%
162 \edef\HyGoToE@TEnd{%
163 \HyGoToE@TEnd
164 >>%
165 }%
166 }
167 \endinput
168 %%
169 %% End of file `hypgotoe.sty'.