summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-04-11 23:02:14 +0000
committerKarl Berry <karl@freefriends.org>2007-04-11 23:02:14 +0000
commit6858df01ea6ebb32f4be0f68e4b2e03d8713f38f (patch)
treed0466192a4c6ae7f99e95d2e6e9b613ebcb73d3d /Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
parent59314283a9039be6cceb0bbee8600837477c9058 (diff)
oberdiek: accsupp, atenddvi, hycolor, iflang (11apr07)
git-svn-id: svn://tug.org/texlive/trunk@4149 c570f23f-e606-0410-a88d-b1316a301751
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{%