*** empty log message ***
[m17n/m17n-docs.git] / styles / hypertex.def
1 %%
2 %% This is file `hypertex.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hyperref.dtx  (with options: `hypertex')
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{hypertex.def}
26   [2001/05/26 v6.71g
27   Hyperref driver for HyperTeX specials]
28 \def\PDF@FinishDoc{}
29 \def\PDF@SetupDoc{%
30   \ifx\@baseurl\@empty\else
31     \special{html:<base href="\@baseurl">}%
32   \fi
33 }
34 \def\hyper@anchor#1{%
35   \Hy@SaveLastskip
36   \begingroup
37     \let\protect=\string
38     \hyper@chars
39     \special{html:<a name=\hyper@quote #1\hyper@quote>}%
40   \endgroup
41   \Hy@activeanchortrue
42   \Hy@colorlink{\@anchorcolor}\anchor@spot\Hy@endcolorlink
43   \special{html:</a>}%
44   \Hy@activeanchorfalse
45   \Hy@RestoreLastskip
46 }
47 \def\hyper@anchorstart#1{%
48   \Hy@SaveLastskip
49   \begingroup
50     \hyper@chars
51     \special{html:<a name=\hyper@quote#1\hyper@quote>}%
52   \endgroup
53   \Hy@activeanchortrue
54 }
55 \def\hyper@anchorend{%
56   \special{html:</a>}%
57   \Hy@activeanchorfalse
58   \Hy@RestoreLastskip
59 }
60 \def\@urltype{url}
61 \def\hyper@linkstart#1#2{%
62   \Hy@colorlink{\csname @#1color\endcsname}%
63   \def\Hy@tempa{#1}%
64   \ifx\Hy@tempa\@urltype
65     \special{html:<a href=\hyper@quote#2\hyper@quote>}%
66   \else
67     \begingroup
68       \hyper@chars
69       \special{html:<a href=\hyper@quote\##2\hyper@quote>}%
70     \endgroup
71   \fi
72 }
73 \def\hyper@linkend{%
74   \special{html:</a>}%
75   \Hy@endcolorlink
76 }
77 \def\hyper@linkfile#1#2#3{%
78   \hyper@linkurl{#1}{file:#2\ifx\\#3\\\else\##3\fi}%
79 }
80 \def\hyper@linkurl#1#2{%
81   \leavevmode
82   \ifHy@raiselinks
83     \setbox\@tempboxa=\color@hbox #1\color@endbox
84     \@linkdim\dp\@tempboxa
85     \lower\@linkdim\hbox{%
86       \hyper@chars
87       \special{html:<a href=\hyper@quote#2\hyper@quote>}%
88     }%
89     \Hy@colorlink{\@urlcolor}#1%
90     \@linkdim\ht\@tempboxa
91     \advance\@linkdim by -6.5\p@
92     \raise\@linkdim\hbox{\special{html:</a>}}%
93     \Hy@endcolorlink
94   \else
95     \begingroup
96       \hyper@chars
97       \special{html:<a href=\hyper@quote#2\hyper@quote>}%
98       \Hy@colorlink{\@urlcolor}#1%
99       \special{html:</a>}%
100       \Hy@endcolorlink
101     \endgroup
102   \fi
103 }
104 \def\hyper@link#1#2#3{%
105   \hyper@linkurl{#3}{\##2}%
106 }
107 \def\hyper@image#1#2{%
108   \begingroup
109     \hyper@chars
110     \special{html:<img src=\hyper@quote#1\hyper@quote>}%
111   \endgroup
112 }
113 \def\@Form[#1]{\typeout{Sorry, HyperTeX does not support FORMs}}
114 \def\@endForm{}
115 \def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
116   \typeout{Sorry, HyperTeX does not support FORM gauges}%
117 }
118 \def\@TextField[#1]#2{% parameters, label
119   \typeout{Sorry, HyperTeX does not support FORM text fields}%
120 }
121 \def\@CheckBox[#1]#2{% parameters, label
122   \typeout{Sorry, HyperTeX does not support FORM checkboxes}%
123 }
124 \def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
125   \typeout{Sorry, HyperTeX does not support FORM choice menus}%
126 }
127 \def\@PushButton[#1]#2{% parameters, label
128   \typeout{Sorry, HyperTeX does not support FORM pushbuttons}%
129 }
130 \def\@Reset[#1]#2{\typeout{Sorry, HyperTeX does not support FORMs}}
131 \def\@Submit[#1]#2{\typeout{Sorry, HyperTeX does not support FORMs}}
132 \let\H@old@ssect\@ssect
133 \def\@ssect#1#2#3#4#5{%
134   \H@old@ssect{#1}{#2}{#3}{#4}{#5}%
135   \phantomsection
136 }
137 \let\H@old@schapter\@schapter
138 \def\@schapter#1{%
139   \H@old@schapter{#1}%
140   \begingroup
141     \let\@mkboth\@gobbletwo
142     \Hy@GlobalStepCount\Hy@linkcounter
143     \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
144     \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
145   \endgroup
146 }
147 \@ifundefined{@chapter}{}{%
148   \let\Hy@org@chapter\@chapter
149   \def\@chapter{%
150     \def\Hy@next{%
151       \Hy@GlobalStepCount\Hy@linkcounter
152       \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
153       \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
154     }%
155     \ifnum\c@secnumdepth>\m@ne
156       \@ifundefined{if@mainmatter}%
157       \iftrue{\csname if@mainmatter\endcsname}
158         \let\Hy@next\relax
159       \fi
160     \fi
161     \Hy@next
162     \Hy@org@chapter
163   }%
164 }
165 \let\H@old@spart\@spart
166 \def\@spart#1{%
167   \H@old@spart{#1}%
168   \Hy@GlobalStepCount\Hy@linkcounter
169   \xdef\@currentHref{part*.\the\Hy@linkcounter}%
170   \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
171 }
172 \let\H@old@sect\@sect
173 \def\@sect#1#2#3#4#5#6[#7]#8{%
174   \ifnum #2>\c@secnumdepth
175     \Hy@GlobalStepCount\Hy@linkcounter
176     \xdef\@currentHref{section*.\the\Hy@linkcounter}%
177   \fi
178   \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
179   \ifnum #2>\c@secnumdepth
180     \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
181   \fi
182 }
183 \def\Hy@tempa{%
184   \def\@addchap[##1]##2{%
185     \typeout{##2}%
186     \if@twoside
187       \@mkboth{##1}{}%
188     \else
189       \@mkboth{}{##1}%
190     \fi
191     \addtocontents{lof}{\protect\addvspace{10\p@}}%
192     \addtocontents{lot}{\protect\addvspace{10\p@}}%
193     \Hy@GlobalStepCount\Hy@linkcounter
194     \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
195     \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
196     \if@twocolumn
197        \@topnewpage[\@makeschapterhead{##2}]%
198     \else
199        \@makeschapterhead{##2}%
200        \@afterheading
201     \fi
202     \addcontentsline{toc}{chapter}{##1}%
203   }%
204 }
205 \@ifclassloaded{scrbook}{%
206   \@ifclasslater{scrbook}{2001/01/01}{%
207     \let\Hy@tempa\@empty
208   }{}%
209 }{%
210   \@ifclassloaded{scrreprt}{%
211     \@ifclasslater{scrreprt}{2001/01/01}{%
212       \let\Hy@tempa\@empty
213     }{}%
214   }{%
215     \let\Hy@tempa\@empty
216   }%
217 }%
218 \Hy@tempa
219 \endinput
220 %%
221 %% End of file `hypertex.def'.