summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hypertex.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hypertex.def')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hypertex.def24
1 files changed, 18 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hypertex.def b/Master/texmf-dist/tex/latex/hyperref/hypertex.def
index ed3d90bf7cd..9415e410618 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hypertex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hypertex.def
@@ -7,7 +7,6 @@
%% hyperref.dtx (with options: `hypertex')
%%
%% File: hyperref.dtx Copyright 1995-2001 Sebastian Rahtz,
-%% RCS: $Id: hyperref.dtx 6.71 2000/10/04 rahtz Exp rahtz $
%%
%% This file is part of the `Hyperref Bundle'.
%% -------------------------------------------
@@ -23,7 +22,7 @@
%% given in the file `manifest.txt'.
%%
\ProvidesFile{hypertex.def}
- [2003/11/30 v6.74m
+ [2006/08/16 v6.75c
Hyperref driver for HyperTeX specials]
\def\PDF@FinishDoc{}
\def\PDF@SetupDoc{%
@@ -40,7 +39,7 @@
\special{html:<a name=\hyper@quote #1\hyper@quote>}%
\endgroup
\Hy@activeanchortrue
- \Hy@colorlink{\@anchorcolor}\anchor@spot\Hy@endcolorlink
+ \Hy@colorlink\@anchorcolor\anchor@spot\Hy@endcolorlink
\special{html:</a>}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
@@ -60,7 +59,7 @@
}
\def\@urltype{url}
\def\hyper@linkstart#1#2{%
- \Hy@colorlink{\csname @#1color\endcsname}%
+ \expandafter\Hy@colorlink\csname @#1color\endcsname
\def\Hy@tempa{#1}%
\ifx\Hy@tempa\@urltype
\special{html:<a href=\hyper@quote#2\hyper@quote>}%
@@ -87,7 +86,7 @@
\hyper@chars
\special{html:<a href=\hyper@quote#2\hyper@quote>}%
}%
- \Hy@colorlink{\@urlcolor}#1%
+ \Hy@colorlink\@urlcolor#1%
\@linkdim\ht\@tempboxa
\advance\@linkdim by -6.5\p@
\raise\@linkdim\hbox{\special{html:</a>}}%
@@ -96,7 +95,7 @@
\begingroup
\hyper@chars
\special{html:<a href=\hyper@quote#2\hyper@quote>}%
- \Hy@colorlink{\@urlcolor}#1%
+ \Hy@colorlink\@urlcolor#1%
\special{html:</a>}%
\Hy@endcolorlink
\endgroup
@@ -163,6 +162,19 @@
\Hy@org@chapter
}%
}
+\let\H@old@part\@part
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname chapter\endcsname\relax
+ \let\Hy@secnum@part\z@
+\else
+ \let\Hy@secnum@part\m@ne
+\fi
+\def\@part{%
+ \ifnum\Hy@secnum@part>\c@secnumdepth
+ \phantomsection
+ \fi
+ \H@old@part
+}
\let\H@old@spart\@spart
\def\@spart#1{%
\H@old@spart{#1}%