diff options
author | Karl Berry <karl@freefriends.org> | 2021-07-25 20:51:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-07-25 20:51:24 +0000 |
commit | 606d2674882ceb10c99061012169ed7ecfd39dad (patch) | |
tree | 6c0bcead64a3c8972732ba98ea7acf055221fc2b /Master/texmf-dist/tex | |
parent | 4036c5c95034f8262cff2d7327ff2c105967dd8e (diff) |
hvfloat
git-svn-id: svn://tug.org/texlive/trunk@60065 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty b/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty index 3d54b4f9817..4d9e265b626 100644 --- a/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty +++ b/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty @@ -15,8 +15,8 @@ %% `hvfloat' offers rotating of captions and objects for floats %% \NeedsTeXFormat{LaTeX2e} -\def\fileversion{2.32} -\def\filedate{2021/06/26} +\def\fileversion{2.33} +\def\filedate{2021/07/14} %\message{`hvfloat' v\fileversion, \filedate\space (Herbert Voss)} \ProvidesPackage{hvfloat}[\filedate\space v\fileversion\space special floating objects (hv)] \let\hvFloatFileVersion\fileversion @@ -1258,13 +1258,12 @@ \def\do@hvFloat@doublePAGE#1{% image on left and right page with caption on the right ---------------------------------- % #1-> 0/1 caption under/right - \global\setlength\hv@tempWidthA{\the\dimexpr1in+\oddsidemargin-\hvSet@bindCorrection}% - \global\setlength\hv@leftPageObjectWidth{\the\dimexpr\paperwidth-1in-\evensidemargin-\hvSet@bindCorrection}% +% \global\setlength\hv@tempWidthA{\the\dimexpr1in+\oddsidemargin-\hvSet@bindCorrection}% +% \global\setlength\hv@leftPageObjectWidth{\the\dimexpr\paperwidth-1in-\evensidemargin-\hvSet@bindCorrection}% \expandafter\global\expandafter\savebox\expandafter\hvObjectBox\expandafter{\ifhv@useOBox\usebox{\hvOBox}\else\hv@floatObject\fi}% \expandafter\global\expandafter\savebox\expandafter\hv@boxLeftPage\expandafter{\clipbox*{0 -\depth{} \hv@leftPageObjectWidth{} \height}{\usebox\hvObjectBox}}% \expandafter\global\expandafter\savebox\expandafter\hv@boxRightPage\expandafter{\clipbox*{\hv@leftPageObjectWidth{} -\depth{} \width{} \height}{\usebox\hvObjectBox}}% -% \endgroup% started at main macro \hvFloat - \checkoddpage + \checkoddpage \ifoddpage \if@twocolumn \if@firstcolumn @@ -1283,7 +1282,7 @@ \afterpage{\afterpage{\do@hvFloat@doublePAGECaptionRight{#1}}}% \fi \else - \afterpage{\do@hvFloat@doublePAGECaptionRight{#1}}% + \afterpage{\do@hvFloat@doublePAGECaptionRight{#1}}% onecolumn/left page \fi \fi \endgroup% startet at main macro @@ -1293,15 +1292,21 @@ % #1-> 0/1 caption under/right \afterpage{% \hfuzz=\maxdimen - \expandafter\hvFloatSet\expandafter{\hv@save@setting}% - \global\savebox{\hvObjectBox}{\ifhv@useOBox\usebox{\hvOBox}\else\hv@floatObject\fi}% + \expandafter\hvFloatSet\expandafter{\hv@save@setting}% + \ifhv@useOBox + \global\let\hvObjectBox\hvOBox + \else + \global\savebox\hvObjectBox{\hv@floatObject}% + \fi \noindent + \global\setlength\hv@tempWidthA{\the\dimexpr1in+\oddsidemargin-\hvSet@bindCorrection}% + \global\setlength\hv@leftPageObjectWidth{\the\dimexpr\paperwidth-1in-\evensidemargin-\hvSet@bindCorrection}% \clipbox*{0 -\depth{} \hv@leftPageObjectWidth{} \height}{\usebox\hvObjectBox}% \null\newpage\if@twocolumn\null\newpage\fi \expandafter\global\expandafter\savebox\expandafter\hvObjectBox\expandafter{\ifhv@useOBox\usebox{\hvOBox}\else\hv@floatObject\fi}% \noindent \hspace*{\dimexpr-\hv@tempWidthA}% - \clipbox*{\the\hv@leftPageObjectWidth{} -\depth{} \width{} \height{}}{\usebox\hvObjectBox}% + \clipbox*{\the\hv@leftPageObjectWidth{} -\depth{} \width{} \height{}}{\usebox\hvObjectBox}% \begingroup \ifnum#1>0 \medskip |