From 118cb5bbc5236bf86ca1088b9b3bae04c7b09beb Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 8 Nov 2022 03:01:43 +0000 Subject: CTAN sync 202211080301 --- macros/latex/contrib/hvfloat/Changes | 1 + macros/latex/contrib/hvfloat/doc/hvfloat.pdf | Bin 5040712 -> 5044788 bytes macros/latex/contrib/hvfloat/latex/hvfloat.sty | 20 +++++++++++++++----- 3 files changed, 16 insertions(+), 5 deletions(-) (limited to 'macros/latex/contrib/hvfloat') diff --git a/macros/latex/contrib/hvfloat/Changes b/macros/latex/contrib/hvfloat/Changes index eb0e9277b8..2987bc5ebb 100644 --- a/macros/latex/contrib/hvfloat/Changes +++ b/macros/latex/contrib/hvfloat/Changes @@ -1,4 +1,5 @@ hvfloat.sty: +2.43 2022-11-07 - fix for empty caption: don't use \caption 2.42 2022-10-02 - fix for twoColumnCaption and multi(sub)floats 2.41 2022-09-01 - another fix full page floats without pagenumber and without using package floatpag diff --git a/macros/latex/contrib/hvfloat/doc/hvfloat.pdf b/macros/latex/contrib/hvfloat/doc/hvfloat.pdf index 69b0e9a1a5..49c502e55e 100644 Binary files a/macros/latex/contrib/hvfloat/doc/hvfloat.pdf and b/macros/latex/contrib/hvfloat/doc/hvfloat.pdf differ diff --git a/macros/latex/contrib/hvfloat/latex/hvfloat.sty b/macros/latex/contrib/hvfloat/latex/hvfloat.sty index 2d2765308e..b22e5f0198 100644 --- a/macros/latex/contrib/hvfloat/latex/hvfloat.sty +++ b/macros/latex/contrib/hvfloat/latex/hvfloat.sty @@ -1,4 +1,4 @@ -%% $Id: hvfloat.sty 617 2022-10-02 14:25:10Z herbert $ +%% $Id: hvfloat.sty 651 2022-11-07 07:04:33Z herbert $ %% %% %% IMPORTANT NOTICE: @@ -16,8 +16,8 @@ %% `hvfloat' offers rotating of captions and objects for floats %% \NeedsTeXFormat{LaTeX2e} -\def\fileversion{2.42} -\def\filedate{2022/10/02} +\def\fileversion{2.43} +\def\filedate{2022/11/07} \ProvidesPackage{hvfloat}[\filedate\space v\fileversion\space special floating objects (hv)] \let\hvFloatFileVersion\fileversion % @@ -676,7 +676,7 @@ \savebox\hvCaptionBox{% NO rotation \minipage[b]{\hvCapWidth}%% minipage, to get hyphenation % \ifx\relax\hv@caption@format\relax\else\expandafter\captionsetup\expandafter{\hv@caption@format}\fi - \ifhv@nonFloat + \ifhv@nonFloat \ifhv@onlyText \hv@longCap \else @@ -698,10 +698,12 @@ \ifhv@onlyText \hv@longCap \else + \expandafter\ifx\hv@longCap\@empty \else \let\@captype\hv@floatType \ifx\hv@shortCap\@empty\caption{\hv@longCap}\else\caption[\hv@shortCap]{\hv@longCap}\fi \ifx\hv@label\@empty\else\label{\hv@label}\fi \fi + \fi \fi \endminipage }% end CaptionBox without rotation @@ -721,6 +723,7 @@ \fi \fi \else + \expandafter\ifx\hv@longCap\@empty \else \ifhv@onlyText \hv@longCap \else @@ -729,6 +732,7 @@ \fi \fi \fi + \fi \ifx\hv@label\@empty\else\label{\hv@label}\fi \endminipage }% rotatebox @@ -1982,9 +1986,15 @@ \else \edef\@captype{\hv@floatType}% \expandafter\ifx\expandafter\relax\hv@shortCap\relax - \caption{\hv@longCap}% + \expandafter\ifx\hv@longCap\@empty \else % empty caption? + \caption{\hv@longCap}% + \fi \else + \expandafter\ifx\hv@longCap\@empty + \caption[\hv@shortCap]{}% + \else \caption[\hv@shortCap]{\hv@longCap}% + \fi \fi \fi \ifx\hv@label\@empty\else\label{\hv@label-cap}\fi -- cgit v1.2.3