*** empty log message ***
[m17n/m17n-docs.git] / styles / htexture.def
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 %% File: hyperref.dtx Copyright 1995-2001 Sebastian Rahtz,
10 %% RCS: $Id: hyperref.dtx 6.71 2000/10/04 rahtz Exp rahtz $
11 %%
12 %% This file is part of the `Hyperref Bundle'.
13 %% -------------------------------------------
14 %%
15 %% It may be distributed under the conditions of the LaTeX Project Public
16 %% License, either version 1.2 of this license or (at your option) any
17 %% later version.  The latest version of this license is in
18 %%    http://www.latex-project.org/lppl.txt
19 %% and version 1.2 or later is part of all distributions of LaTeX
20 %% version 1999/12/01 or later.
21 %%
22 %% The list of all files belonging to the `Hyperref Bundle' is
23 %% given in the file `manifest.txt'.
24 %%
25 \ProvidesFile{htexture.def}
26   [2001/05/26 v6.71g
27   Hyperref driver for Textures]
28 \input{pdfmark.def}%
29 \def\@pdfproducer{Textures + Distiller}%
30 \def\literalps@out#1{\special{rawpostscript #1}}%
31 \def\headerps@out#1{\special{prepostscript #1}}%
32 \providecommand\@pdfborder{0 0 1}
33 \providecommand\@pdfview{XYZ}
34 \providecommand\@pdfviewparams{ H.V}
35 \headerps@out{%
36   /vsize {\Hy@pageheight} def
37   /DvipsToPDF {} def
38   /PDFToDvips {} def
39   /HyperBorder  { 1 PDFToDvips } def
40   /H.V {pdf@hoff pdf@voff null} def
41   /H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def
42   /H.S {
43     currentpoint
44     HyperBorder add /pdf@lly exch def
45     dup DvipsToPDF  /pdf@hoff exch def
46     HyperBorder sub /pdf@llx exch def
47   } def
48   /H.L {
49     2 sub
50     PDFToDvips /HyperBase exch def
51     currentpoint
52     HyperBase sub /pdf@ury exch def
53     /pdf@urx exch def
54   } def
55   /H.A {
56     H.L
57     currentpoint exch pop
58     vsize 72 sub exch DvipsToPDF
59     HyperBase sub % baseline skip
60     sub /pdf@voff exch def
61   } def
62   /H.R {
63     currentpoint
64     HyperBorder sub /pdf@ury exch def
65     HyperBorder add /pdf@urx exch def
66     currentpoint exch pop vsize 72 sub
67     exch DvipsToPDF sub /pdf@voff exch def
68   } def
69   systemdict
70   /pdfmark known not
71   {userdict /pdfmark systemdict /cleartomark get put} if
72 }
73 \AfterBeginDocument{%
74   \ifHy@colorlinks
75     \headerps@out{%
76       TeXdict begin^^J%
77         /PDFBorder{/Border [0 0 0]}def^^J%
78       end%
79     }%
80   \fi
81 }
82 \expandafter\let\expandafter\keepPDF@SetupDoc
83   \csname PDF@SetupDoc\endcsname
84 \def\PDF@SetupDoc{%
85   \ifx\@baseurl\@empty\else
86     \special{html:<base href="\@baseurl">}%
87   \fi
88   \keepPDF@SetupDoc
89 }
90 \def\hyper@anchor#1{%
91   \Hy@SaveLastskip
92   \begingroup
93     \let\protect=\string
94     \special{html:<a name=\hyper@quote #1\hyper@quote>}%
95   \endgroup
96   \Hy@activeanchortrue
97   \Hy@colorlink{\@anchorcolor}\anchor@spot\Hy@endcolorlink
98   \special{html:</a>}%
99   \Hy@activeanchorfalse
100   \Hy@RestoreLastskip
101 }
102 \def\hyper@anchorstart#1{%
103   \Hy@SaveLastskip
104   \begingroup
105     \hyper@chars
106     \special{html:<a name=\hyper@quote#1\hyper@quote>}%
107   \endgroup
108   \Hy@activeanchortrue
109 }
110 \def\hyper@anchorend{%
111   \special{html:</a>}%
112   \Hy@activeanchorfalse
113   \Hy@RestoreLastskip
114 }
115 \def\@urltype{url}
116 \def\hyper@linkstart#1#2{%
117   \Hy@colorlink{\csname @#1color\endcsname}%
118   \def\Hy@tempa{#1}%
119   \ifx\Hy@tempa\@urltype
120     \special{html:<a href=\hyper@quote#2\hyper@quote>}%
121   \else
122     \begingroup
123       \hyper@chars
124       \special{html:<a href=\hyper@quote\##2\hyper@quote>}%
125     \endgroup
126   \fi
127 }
128 \def\hyper@linkend{%
129   \special{html:</a>}%
130   \Hy@endcolorlink
131 }
132 \def\hyper@linkfile#1#2#3{%
133   \hyper@linkurl{#1}{file:#2\ifx\\#3\\\else\##3\fi}%
134 }
135 \def\hyper@linkurl#1#2{%
136   \leavevmode
137   \ifHy@raiselinks
138     \setbox\@tempboxa=\color@hbox #1\color@endbox
139     \@linkdim\dp\@tempboxa
140     \lower\@linkdim\hbox{%
141       \hyper@chars
142       \special{html:<a href=\hyper@quote#2\hyper@quote>}%
143     }%
144     \Hy@colorlink{\@urlcolor}#1%
145     \@linkdim\ht\@tempboxa
146     \advance\@linkdim by -6.5\p@
147     \raise\@linkdim\hbox{\special{html:</a>}}%
148     \Hy@endcolorlink
149   \else
150     \begingroup
151       \hyper@chars
152       \special{html:<a href=\hyper@quote#2\hyper@quote>}%
153       \Hy@colorlink{\@urlcolor}#1%
154       \special{html:</a>}%
155       \Hy@endcolorlink
156     \endgroup
157   \fi
158 }
159 \def\hyper@link#1#2#3{%
160   \hyper@linkurl{#3}{\##2}%
161 }
162 \def\hyper@image#1#2{%
163   \begingroup
164     \hyper@chars
165     \special{html:<img src=\hyper@quote#1\hyper@quote>}%
166   \endgroup
167 }
168 \endinput
169 %%
170 %% End of file `htexture.def'.