summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvfloat
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-11-08 03:01:43 +0000
committerNorbert Preining <norbert@preining.info>2022-11-08 03:01:43 +0000
commit118cb5bbc5236bf86ca1088b9b3bae04c7b09beb (patch)
tree250db680f60212600d0e887c6d63deb3d266da89 /macros/latex/contrib/hvfloat
parent5fcfa99e5deaf9c601ba9e338f07fbefdd5d4487 (diff)
CTAN sync 202211080301
Diffstat (limited to 'macros/latex/contrib/hvfloat')
-rw-r--r--macros/latex/contrib/hvfloat/Changes1
-rw-r--r--macros/latex/contrib/hvfloat/doc/hvfloat.pdfbin5040712 -> 5044788 bytes
-rw-r--r--macros/latex/contrib/hvfloat/latex/hvfloat.sty20
3 files changed, 16 insertions, 5 deletions
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
--- a/macros/latex/contrib/hvfloat/doc/hvfloat.pdf
+++ b/macros/latex/contrib/hvfloat/doc/hvfloat.pdf
Binary files 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