summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-09-09 20:17:31 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-09-09 20:17:31 +0000
commit498364be0f294658661f0bc83110b6c163318a64 (patch)
tree7e07f16b6e2bae846c505d8dcfda3d7b8bd45b13 /Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
parent561bdbb55852c974eee56370083c490885cabbf0 (diff)
oberdiek bundle update (done 2008-09-09)
git-svn-id: svn://tug.org/texlive/trunk@10525 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.sty30
1 files changed, 17 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty b/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
index c2d24351078..cbb184fd095 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}%
- [2008/08/11 v1.9 Adjusting anchors of captions (HO)]
+ [2008/09/08 v1.10 Adjusting anchors of captions (HO)]
\@ifundefined{hyper@@anchor}{%
\PackageError{hypcap}{You have to load 'hyperref' first}\@ehc
\endinput
@@ -38,19 +38,23 @@
\let\hc@org@caption\caption
\newif\if@capstart
\newcommand*\hypcapspace{.5\baselineskip}
+\newif\ifcapstart
+\capstarttrue
\newcommand*\capstart{%
- \H@refstepcounter\@captype % first part of caption
- \hyper@makecurrent\@captype
- \global\let\hc@currentHref\@currentHref
- \vspace*{-\hypcapspace}%
- \begingroup
- \let\leavevmode\relax
- \hyper@@anchor\@currentHref\relax
- \endgroup
- \vspace*{\hypcapspace}%
- \hc@hyperref{\let\caption\hc@caption}%
- \global\@capstarttrue
- \global\advance\csname c@\@captype\endcsname\m@ne
+ \ifcapstart
+ \H@refstepcounter\@captype % first part of caption
+ \hyper@makecurrent\@captype
+ \global\let\hc@currentHref\@currentHref
+ \vspace*{-\hypcapspace}%
+ \begingroup
+ \let\leavevmode\relax
+ \hyper@@anchor\@currentHref\relax
+ \endgroup
+ \vspace*{\hypcapspace}%
+ \hc@hyperref{\let\caption\hc@caption}%
+ \global\@capstarttrue
+ \global\advance\csname c@\@captype\endcsname\m@ne
+ \fi
}
\@ifpackagelater{hyperref}{2007/04/09}{%
\let\hc@hyperref\@gobble