summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hyperref/hylatex.ltx
blob: 7eb223db30d5c77ee5779d0039c7c6bd9bf06e77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%
% hylatex.ltx
% Tanmoy Bhattacharya and Sebastian Rahtz, June 1995
%
% Use this file to make a format which includes the
% hyperref package in every LaTeX job.
%
% In web2c 7-based TeX world, we create the format file with
%   tex  -ini \&latex hylatex.ltx
% and then use with
%   tex \&hylatex
%
% In teTeX (TeX version 3.14159 (C version 6.1), LaTeX2e <1996/12/01>
% patch level 1), I create the format file with
%   initex \&latex hylatex.ltx
% and then use with
%   virtex \&hylatex
%
% This method is not supported by the LaTeX2e team, so
% I will try to find a better way. \AtBeginDocument does not
% work for reasons which I do not understand.
%
\makeatletter
\expandafter\everyjob\expandafter{\the\everyjob
 \typeout{ ********* Hyperref Macros loaded ******* }}
%
\expandafter\let\csname REAL document\endcsname\document
%
\def\document{%
 \endgroup
%
% NOTE:
% This setup sets up no options by default;
% change to suit your needs, by writing a hyperref.cfg control
% file.
%
 \RequirePackage{hyperref}
 \begingroup
 \@endpefalse\csname REAL document\endcsname
}
\makeatother
\dump