diff options
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 |