summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/hypcap.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/hypcap.sty11
1 files changed, 9 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty b/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
index dfecf584ad2..f811e6236d6 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
@@ -29,7 +29,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hypcap}%
- [2007/02/19 v1.6 Adjusting anchors of captions (HO)]
+ [2007/04/09 v1.7 Adjusting anchors of captions (HO)]
\@ifundefined{hyper@@anchor}{%
\PackageError{hypcap}{You have to load 'hyperref' first}\@ehc
\endinput
@@ -48,10 +48,17 @@
\hyper@@anchor\@currentHref\relax
\endgroup
\vspace*{\hypcapspace}%
- \let\caption\hc@caption
+ \hc@hyperref{\let\caption\hc@caption}%
\global\@capstarttrue
+ \global\advance\csname c@\@captype\endcsname\m@ne
+}
+\@ifpackagelater{hyperref}{2007/04/09}{%
+ \let\hc@hyperref\@gobble
+}{%
+ \let\hc@hyperref\@firstofone
}
\def\hc@caption{%
+ \global\advance\csname c@\@captype\endcsname\@ne
\@dblarg{\hc@@caption\@captype}%
}
\long\def\hc@@caption#1[#2]#3{%