summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvfloat/latex/hvfloat.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-11-02 03:04:14 +0000
committerNorbert Preining <norbert@preining.info>2020-11-02 03:04:14 +0000
commitede2cee3dfac406ff8defae5014e86c839b852ca (patch)
tree1b7c1dd4c2f100dfd48aaf2f325649e49385e876 /macros/latex/contrib/hvfloat/latex/hvfloat.sty
parentf3fbfce65a7de58853550aedf1b6e6acd5c29a1e (diff)
CTAN sync 202011020304
Diffstat (limited to 'macros/latex/contrib/hvfloat/latex/hvfloat.sty')
-rw-r--r--macros/latex/contrib/hvfloat/latex/hvfloat.sty32
1 files changed, 22 insertions, 10 deletions
diff --git a/macros/latex/contrib/hvfloat/latex/hvfloat.sty b/macros/latex/contrib/hvfloat/latex/hvfloat.sty
index 7eda015ab8..622c1fba50 100644
--- a/macros/latex/contrib/hvfloat/latex/hvfloat.sty
+++ b/macros/latex/contrib/hvfloat/latex/hvfloat.sty
@@ -1,7 +1,5 @@
-%% $Id: hvfloat.sty 1054 2019-05-13 08:20:11Z herbert $
+%% $Id: hvfloat.sty 36 2020-10-31 08:22:30Z herbert $
%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{hvfloat}[2019/05/13 rotating of floating objects]
%%
%% IMPORTANT NOTICE:
%%
@@ -16,10 +14,12 @@
%% DESCRIPTION:
%% `hvfloat' offers rotating of captions and objects for floats
%%
-\def\fileversion{2.15}
-\def\filedate{2019/08/31}
+\NeedsTeXFormat{LaTeX2e}
+\def\fileversion{2.17}
+\def\filedate{2020/10/31}
\message{`hvfloat' v\fileversion, \filedate\space (Herbert Voss)}
-\let\hvFileVersion\fileversion
+\ProvidesPackage{hvfloat}[\filedate\ rotating of floating objects]
+\let\hvFloatFileVersion\fileversion
%
\newif\ifhv@fbox \hv@fboxfalse
\newif\ifhv@hyperref \hv@hyperreffalse
@@ -480,16 +480,28 @@
\ifhv@onlyText\hv@longCap
\else
\ifx\hv@floatType\hv@figure
- \ifx\relax\hv@shortCap\relax \figcaption{\hv@longCap}\else\figcaption[\hv@shortCap]{\hv@longCap}\fi
+ \ifx\relax\hv@shortCap\relax
+ \figcaption{\hv@longCap\expandafter\label\expandafter{\hv@label}}%
+ \else
+ \figcaption[\hv@shortCap]{\hv@longCap\expandafter\label\expandafter{\hv@label}}%
+ \fi
\else
- \ifx\relax\hv@shortCap\relax \tabcaption{\hv@longCap}\else\tabcaption[\hv@shortCap]{\hv@longCap}\fi
+ \ifx\relax\hv@shortCap\relax
+ \tabcaption{\hv@longCap\expandafter\label\expandafter{\hv@label}}%
+ \else
+ \tabcaption[\hv@shortCap]{\hv@longCap\expandafter\label\expandafter{\hv@label}}%
+ \fi
\fi
\fi
\else
\let\@captype\hv@floatType
- \expandafter\ifx\expandafter\relax\hv@shortCap\relax \caption{\hv@longCap}\else\caption[\hv@shortCap]{\hv@longCap}\fi
+ \expandafter\ifx\expandafter\relax\hv@shortCap\relax
+ \caption{\hv@longCap\expandafter\label\expandafter{\hv@label}}%
+ \else
+ \caption[\hv@shortCap]{\hv@longCap\expandafter\label\expandafter{\hv@label}}%
+ \fi
\fi
- \expandafter\label\expandafter{\hv@label}%
+% \expandafter\label\expandafter{\hv@label}% 2.17 put label into the caption argument
\end{minipage}%
}%
\else