summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/boxhandler/boxhandler.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-10-19 22:06:16 +0000
committerKarl Berry <karl@freefriends.org>2012-10-19 22:06:16 +0000
commitcdbc45c8e13872e3fd8515046f37efcc36f14919 (patch)
tree72943ff3b92d318860048a4fbd223e03ded4ed02 /Master/texmf-dist/tex/latex/boxhandler/boxhandler.sty
parent2daba66c685de3f2d9b7abd7e526c627aa1e9379 (diff)
boxhandler (19oct12)
git-svn-id: svn://tug.org/texlive/trunk@28031 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/boxhandler/boxhandler.sty')
-rw-r--r--Master/texmf-dist/tex/latex/boxhandler/boxhandler.sty14
1 files changed, 11 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/boxhandler/boxhandler.sty b/Master/texmf-dist/tex/latex/boxhandler/boxhandler.sty
index 61ee7381c12..6b1b341de52 100644
--- a/Master/texmf-dist/tex/latex/boxhandler/boxhandler.sty
+++ b/Master/texmf-dist/tex/latex/boxhandler/boxhandler.sty
@@ -30,7 +30,7 @@
%% arlcaptions.sty.
%%
\ProvidesPackage{boxhandler}
-[2011/02/16 v1.22
+[2012/10/18 v1.30
Tools for Optimizing Captions, Presentation, and
Placement of Tables and Figures]
\NeedsTeXFormat{LaTeX2e}
@@ -224,7 +224,7 @@
\rule{\@DataBoxOffset}{0in}\\%
\fi
\rule{\@CaptionBoxOffset}{0em}%
- \parbox{\CaptionBoxWidth}{\caption{#2}}%
+ \parbox{\CaptionBoxWidth}{\bx@caption{#2}}%
\rule{\@CaptionBoxOffset}{0em}%
\par%
\rule{\@DataBoxOffset}{0in}%
@@ -349,7 +349,7 @@
\rule{\@DataBoxOffset}{0in}%
\par%
\rule{\@CaptionBoxOffset}{0em}%
- \parbox{\CaptionBoxWidth}{\caption{#2}}%
+ \parbox{\CaptionBoxWidth}{\bx@caption{#2}}%
\rule{\@CaptionBoxOffset}{0em}%
\if T#6%
\rule{\@DataBoxOffset}{0in}\\%
@@ -577,6 +577,14 @@
}%
}
+%% \hyperactive PROVIDES A CORRECTIVE CAPTION SHIFT WHEN USING THE
+%% hyperref PACKAGE; OPTIONAL ARGUMENT IS SHIFT LENGTH
+\let\bx@caption\caption
+\newlength\hyper@shift
+\newcommand\hyper@cap[1]{\caption{\vspace*{\hyper@shift}#1}}%
+\newcommand\hyperactive[1][-1.55ex]{%
+ \setlength\hyper@shift{#1}\let\bx@caption\hyper@cap}
+
%% TO RETAIN BACKWARD COMPATIBILITY WITH THE PREDECESSOR TO boxhandler,
%% THE FOLLOWING ASSIGNMENTS ARE MADE.
\let\arltable\bxtable