From f13fb3da96640748f7fd22480d3f45215a1248d3 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 27 Nov 2009 01:31:32 +0000
Subject: hyperref update (26nov09)

git-svn-id: svn://tug.org/texlive/trunk@16190 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/hyperref/hvtex.def | 45 +++++++++++++++++++-------
 1 file changed, 34 insertions(+), 11 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/hyperref/hvtex.def')

diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtex.def b/Master/texmf-dist/tex/latex/hyperref/hvtex.def
index b7776356ab7..8fb82be85e9 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hvtex.def
+++ b/Master/texmf-dist/tex/latex/hyperref/hvtex.def
@@ -24,7 +24,7 @@
 %% given in the file `manifest.txt'.
 %%
 \ProvidesFile{hvtex.def}
-  [2009/11/20 v6.79g
+  [2009/11/25 v6.79h
   Hyperref driver for VTeX in PDF/PS mode]
 \providecommand*{\XR@ext}{pdf}
 \edef\Hy@VTeXversion{%
@@ -810,12 +810,22 @@
 \fi
 \let\H@old@ssect\@ssect
 \def\@ssect#1#2#3#4#5{%
-  \H@old@ssect{#1}{#2}{#3}{#4}{#5}%
-  \phantomsection
+  \Hy@GlobalStepCount\Hy@linkcounter
+  \xdef\@currentHref{section*.\the\Hy@linkcounter}%
+  \H@old@ssect{#1}{#2}{#3}{#4}{%
+    \leavevmode
+    \hbox to 0pt{%
+      \dimen@=#1\relax\kern-\dimen@
+      \Hy@raisedlink{%
+        \hyper@anchorstart{\@currentHref}\hyper@anchorend
+      }%
+      \hss
+    }%
+    #5%
+  }%
 }
 \let\H@old@schapter\@schapter
 \def\@schapter#1{%
-  \H@old@schapter{#1}%
   \begingroup
     \let\@mkboth\@gobbletwo
     \Hy@GlobalStepCount\Hy@linkcounter
@@ -824,6 +834,7 @@
       \hyper@anchorstart{\@currentHref}\hyper@anchorend
     }%
   \endgroup
+  \H@old@schapter{#1}%
 }
 \@ifundefined{@chapter}{}{%
   \let\Hy@org@chapter\@chapter
@@ -860,25 +871,37 @@
 }
 \let\H@old@spart\@spart
 \def\@spart#1{%
-  \H@old@spart{#1}%
   \Hy@GlobalStepCount\Hy@linkcounter
   \xdef\@currentHref{part*.\the\Hy@linkcounter}%
   \Hy@raisedlink{%
     \hyper@anchorstart{\@currentHref}\hyper@anchorend
   }%
+  \H@old@spart{#1}%
 }
 \let\H@old@sect\@sect
 \def\@sect#1#2#3#4#5#6[#7]#8{%
   \ifnum #2>\c@secnumdepth
+    \expandafter\@firstoftwo
+  \else
+    \expandafter\@secondoftwo
+  \fi
+  {%
     \Hy@GlobalStepCount\Hy@linkcounter
     \xdef\@currentHref{section*.\the\Hy@linkcounter}%
-  \fi
-  \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
-  \ifnum #2>\c@secnumdepth
-    \Hy@raisedlink{%
-      \hyper@anchorstart{\@currentHref}\hyper@anchorend
+    \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{%
+      \leavevmode
+      \hbox to 0pt{%
+        \dimen@=#3\relax\kern-\dimen@
+        \Hy@raisedlink{%
+          \hyper@anchorstart{\@currentHref}\hyper@anchorend
+        }%
+        \hss
+      }%
+      #8%
     }%
-  \fi
+  }{%
+    \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
+  }%
 }
 \expandafter\def\csname Parent-4\endcsname{}
 \expandafter\def\csname Parent-3\endcsname{}
-- 
cgit v1.2.3

