diff options
author | Karl Berry <karl@freefriends.org> | 2012-10-19 22:06:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-10-19 22:06:16 +0000 |
commit | cdbc45c8e13872e3fd8515046f37efcc36f14919 (patch) | |
tree | 72943ff3b92d318860048a4fbd223e03ded4ed02 /Master/texmf-dist/tex/latex/boxhandler | |
parent | 2daba66c685de3f2d9b7abd7e526c627aa1e9379 (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')
-rw-r--r-- | Master/texmf-dist/tex/latex/boxhandler/boxhandler.sty | 14 |
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 |