summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx33
1 files changed, 19 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index 1b8912eb6ed..d0c67fdf5ec 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -44,7 +44,7 @@
%<puenc>\ProvidesFile{puenc.def}
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
-%<!none> [2012/02/28 v6.82p %
+%<!none> [2012/05/13 v6.82q %
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -145,7 +145,7 @@
\end{document}
%</driver>
% \fi
-% \CheckSum{28743}
+% \CheckSum{28746}
%
% \MakeShortVerb{|}
% \StopEventually{}
@@ -11005,8 +11005,24 @@
% of the float, if the float is controlled by float.sty.
% Several \verb|\caption| commands inside one float are
% not supported.
+%
+% \cs{HyNew@float@makebox} is introduced as feature request
+% of Axel Sommerfeldt to make the life easier for his
+% package `caption'.
% \begin{macrocode}
\let\Hy@float@caption\@caption
+\newcommand{\HyNew@float@makebox}[1]{%
+ \HyOrg@float@makebox{%
+ #1\relax
+ \ifx\Hy@float@currentHref\@undefined
+ \else
+ \expandafter\hyper@@anchor\expandafter{%
+ \Hy@float@currentHref
+ }{\relax}%
+ \global\let\Hy@float@currentHref\@undefined
+ \fi
+ }%
+}%
\@ifpackageloaded{float}{%
\def\Hy@float@caption{%
\ifx\Hy@float@currentHref\@undefined
@@ -11018,18 +11034,7 @@
\float@caption
}%
\let\HyOrg@float@makebox\float@makebox
- \renewcommand{\float@makebox}[1]{%
- \HyOrg@float@makebox{%
- #1\relax
- \ifx\Hy@float@currentHref\@undefined
- \else
- \expandafter\hyper@@anchor\expandafter{%
- \Hy@float@currentHref
- }{\relax}%
- \global\let\Hy@float@currentHref\@undefined
- \fi
- }%
- }%
+ \let\float@makebox\HyNew@float@makebox
}{}
% \end{macrocode}
%