texlive[64963] Master/texmf-dist: hvfloat (7nov22)

commits+karl at tug.org commits+karl at tug.org
Mon Nov 7 21:27:37 CET 2022


Revision: 64963
          http://tug.org/svn/texlive?view=revision&revision=64963
Author:   karl
Date:     2022-11-07 21:27:37 +0100 (Mon, 07 Nov 2022)
Log Message:
-----------
hvfloat (7nov22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/hvfloat/Changes
    trunk/Master/texmf-dist/doc/latex/hvfloat/hvfloat.pdf
    trunk/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty

Modified: trunk/Master/texmf-dist/doc/latex/hvfloat/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hvfloat/Changes	2022-11-07 20:27:15 UTC (rev 64962)
+++ trunk/Master/texmf-dist/doc/latex/hvfloat/Changes	2022-11-07 20:27:37 UTC (rev 64963)
@@ -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

Modified: trunk/Master/texmf-dist/doc/latex/hvfloat/hvfloat.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty	2022-11-07 20:27:15 UTC (rev 64962)
+++ trunk/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty	2022-11-07 20:27:37 UTC (rev 64963)
@@ -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 at caption@format\relax\else\expandafter\captionsetup\expandafter{\hv at caption@format}\fi
-        \ifhv at nonFloat
+      \ifhv at nonFloat
 	  \ifhv at onlyText
 	    \hv at longCap
   	  \else
@@ -698,10 +698,12 @@
 	  \ifhv at onlyText
 	    \hv at longCap
   	  \else
+  	   	  \expandafter\ifx\hv at longCap\@empty \else
             \let\@captype\hv at floatType
             \ifx\hv at shortCap\@empty\caption{\hv at longCap}\else\caption[\hv at shortCap]{\hv at longCap}\fi
             \ifx\hv at label\@empty\else\label{\hv at label}\fi
           \fi
+        \fi
 	\fi
       \endminipage
     }%     end CaptionBox without rotation
@@ -721,6 +723,7 @@
 	      \fi
 	    \fi
 	  \else
+	    \expandafter\ifx\hv at longCap\@empty \else
   	    \ifhv at onlyText
   	      \hv at longCap
             \else
@@ -729,6 +732,7 @@
               \fi
             \fi
           \fi
+          \fi
           \ifx\hv at label\@empty\else\label{\hv at label}\fi
         \endminipage
       }%  rotatebox
@@ -1982,9 +1986,15 @@
     \else
       \edef\@captype{\hv at floatType}%
       \expandafter\ifx\expandafter\relax\hv at shortCap\relax 
-          \caption{\hv at longCap}%
+         \expandafter\ifx\hv at longCap\@empty \else % empty caption?
+			\caption{\hv at longCap}%
+		 \fi
       \else
+	    \expandafter\ifx\hv at longCap\@empty 
+          \caption[\hv at shortCap]{}%
+        \else	    
           \caption[\hv at shortCap]{\hv at longCap}%
+        \fi
       \fi
     \fi
   \ifx\hv at label\@empty\else\label{\hv at label-cap}\fi



More information about the tex-live-commits mailing list.