summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvfloat/latex/hvfloat.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hvfloat/latex/hvfloat.sty')
-rw-r--r--macros/latex/contrib/hvfloat/latex/hvfloat.sty20
1 files changed, 15 insertions, 5 deletions
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