summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-02-21 23:54:19 +0000
committerKarl Berry <karl@freefriends.org>2007-02-21 23:54:19 +0000
commit038a5dc7d31591d03bb7dd2bee2ca5e89f0ff26a (patch)
tree0206f1532eaf8dea0c935a4e7b66a593f15ac1c4 /Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
parentd13b89bc23ac3bf2bce2bd534b97ed97e0b091c1 (diff)
oberdiek bookmark0.2, hypcap1.6 (20feb07)
git-svn-id: svn://tug.org/texlive/trunk@3977 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, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty b/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
index 9d87bd2d252..dfecf584ad2 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/hypcap.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 1999-2001, 2006 by
+%% Copyright (C) 1999-2001, 2006, 2007 by
%% Heiko Oberdiek <oberdiek@uni-freiburg.de>
%%
%% This work may be distributed and/or modified under the
@@ -29,7 +29,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hypcap}%
- [2006/02/20 v1.5 Adjusting anchors of captions (HO)]
+ [2007/02/19 v1.6 Adjusting anchors of captions (HO)]
\@ifundefined{hyper@@anchor}{%
\PackageError{hypcap}{You have to load 'hyperref' first}\@ehc
\endinput
@@ -41,6 +41,7 @@
\newcommand*\capstart{%
\H@refstepcounter\@captype % first part of caption
\hyper@makecurrent\@captype
+ \global\let\hc@currentHref\@currentHref
\vspace*{-\hypcapspace}%
\begingroup
\let\leavevmode\relax
@@ -56,7 +57,11 @@
\long\def\hc@@caption#1[#2]#3{%
\let\caption\hc@org@caption
\global\@capstartfalse
- \hyper@makecurrent\@captype
+ \ifHy@hypertexnames
+ \hyper@makecurrent\@captype
+ \else
+ \global\let\@currentHref\hc@currentHref
+ \fi
\par\addcontentsline{%
\csname ext@#1\endcsname}{#1}{%
\protect\numberline{%