summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-27 01:31:32 +0000
committerKarl Berry <karl@freefriends.org>2009-11-27 01:31:32 +0000
commitf13fb3da96640748f7fd22480d3f45215a1248d3 (patch)
tree768074cdaabae8a0867471840c55bb9058781583 /Master/texmf-dist/source/latex
parent791133138a9bd0f02696c3ebce66bc7b9a29e6c2 (diff)
hyperref update (26nov09)
git-svn-id: svn://tug.org/texlive/trunk@16190 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx58
1 files changed, 46 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index e7a2ee3f29c..92064b5d20f 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -38,7 +38,7 @@
%<puenc>\ProvidesFile{puenc.def}
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
-%<!none> [2009/11/20 v6.79g
+%<!none> [2009/11/25 v6.79h
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -115,7 +115,7 @@
\end{document}
%</driver>
% \fi
-% \CheckSum{24885}
+% \CheckSum{24927}
%
% \MakeShortVerb{|}
% \StopEventually{}
@@ -7425,6 +7425,17 @@
}
\long\def\@gobbleopt[#1]{}
\let\hyperpage\@empty
+% \end{macrocode}
+% Ignore star from referencing macros:
+% \begin{macrocode}
+\let\NoHy@OrgRef\ref
+\def\ref{%
+ \@ifstar\NoHy@OrgRef\NoHy@OrgRef
+}
+\let\NoHy@OrgPageRef\pageref
+\def\pageref{%
+ \@ifstar\NoHy@OrgPageRef\NoHy@OrgPageRef
+}
%</nohyperref>
% \end{macrocode}
%
@@ -16709,12 +16720,22 @@
% \begin{macrocode}
\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
@@ -16723,6 +16744,7 @@
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
\endgroup
+ \H@old@schapter{#1}%
}
% \end{macrocode}
% If there is no chapter number (\cmd{\frontmatter} or
@@ -16769,25 +16791,37 @@
% \begin{macrocode}
\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}%
+ }%
}
% \end{macrocode}
% \begin{macrocode}