diff options
author | Karl Berry <karl@freefriends.org> | 2022-11-07 20:27:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-11-07 20:27:37 +0000 |
commit | 3ccaeff068707d25c90eef386293f34f24ede69c (patch) | |
tree | 93512afe1a3449a56b7f983a4c75a257fc454335 /Master/texmf-dist/tex/latex/hvfloat | |
parent | 20a53801727e99b2b3b53c8ff85837ee10a36ec7 (diff) |
hvfloat (7nov22)
git-svn-id: svn://tug.org/texlive/trunk@64963 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hvfloat')
-rw-r--r-- | Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty b/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty index 2d2765308ef..b22e5f01985 100644 --- a/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty +++ b/Master/texmf-dist/tex/latex/hvfloat/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 |