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.sty27
1 files changed, 14 insertions, 13 deletions
diff --git a/macros/latex/contrib/hvfloat/latex/hvfloat.sty b/macros/latex/contrib/hvfloat/latex/hvfloat.sty
index 7c1e23111a..b80e7ce0c1 100644
--- a/macros/latex/contrib/hvfloat/latex/hvfloat.sty
+++ b/macros/latex/contrib/hvfloat/latex/hvfloat.sty
@@ -1,4 +1,4 @@
-%% $Id: hvfloat.sty 584 2022-07-20 18:29:58Z herbert $
+%% $Id: hvfloat.sty 596 2022-09-01 13:15:38Z herbert $
%%
%%
%% IMPORTANT NOTICE:
@@ -16,9 +16,8 @@
%% `hvfloat' offers rotating of captions and objects for floats
%%
\NeedsTeXFormat{LaTeX2e}
-\def\fileversion{2.40}
-\def\filedate{2022/07/20}
-%\message{`hvfloat' v\fileversion, \filedate\space (Herbert Voss)}
+\def\fileversion{2.41}
+\def\filedate{2022/09/01}
\ProvidesPackage{hvfloat}[\filedate\space v\fileversion\space special floating objects (hv)]
\let\hvFloatFileVersion\fileversion
%
@@ -56,14 +55,17 @@
\ifhv@hyperref
\RequirePackage{hyperref}
\fi
+
\ifhv@nostfloats
- \def\thisfloatpagestyle#1{%
- \global\@namedef{\number\@currbox @float}{\thispagestyle{#1}}}
\else
\RequirePackage{stfloats}% for bottom floats in a twocolumn mode
- \RequirePackage{floatpag}% for bottom floats in a twocolumn mode
+% \RequirePackage{floatpag}% for bottom floats in a twocolumn mode
\fi
%
+%\def\hv@thisfloatpagestyle#1{%
+% \global\@namedef{\number\@currbox @float}{\thispagestyle{#1}}\relax
+%}
+
\providecommand*\LenToUnit[1]{\strip@pt\dimexpr#1*\p@/\unitlength}
\newlength\hvObjectWidth
@@ -451,6 +453,7 @@
\newcounter{hv@ptable}%
\newcounter{subhv@pfigure}%
\newcounter{subhv@ptable}%
+\newcount\hv@tempcnt
\newif\ifhv@star
\newif\if@hvsubstar
@@ -630,7 +633,6 @@
\else
\ifx\hvSet@capWidth\hv@LineWidth% captionwidth=objectheight
\setlength\hvCapWidth{\linewidth}%
- \typeout{>>>>\the\hvCapWidth}%
\else
\ifx\hvSet@capWidth\hv@Natural% captionwidth=\linewidth-\objectwidth-separation
\ifhv@capbeside
@@ -672,7 +674,6 @@
\saveCaptionSkip% we put this space ourselve
\ifnum\hvSet@capAngle=0 % need rotation?
\savebox\hvCaptionBox{% NO rotation
- \typeout{>>>>\the\hvCapWidth}%
\minipage[b]{\hvCapWidth}%% minipage, to get hyphenation
% \ifx\relax\hv@caption@format\relax\else\expandafter\captionsetup\expandafter{\hv@caption@format}\fi
\ifhv@nonFloat
@@ -1787,18 +1788,17 @@
\end{\hv@floatType}%
}
-
-
\def\setPageObject{%
\ifhv@star
\begin{\hv@floatType*}[p]%
\else
\begin{\hv@floatType}[p]%
\fi
- \thisfloatpagestyle{empty}%
+ \hv@tempcnt=\@floatpenalty% suppress "float too big" message
\hfuzz=\maxdimen
\expandafter\hvFloatSet\expandafter{\hv@save@setting}%
\ifhv@FULLPAGE
+ \@floatpenalty=\z@% no message that float too large
\vspace*{\the\dimexpr-1in-\voffset-\topmargin-\headheight-\headsep}%-0.5\baselineskip%
\checkoddpage
\if@twoside
@@ -1810,7 +1810,7 @@
\else
\hspace*{\the\dimexpr-\oddsidemargin-\parindent-1in}%
\fi
-% \AtBeginShipoutNext{\thispagestyle{empty}}%
+ \AtBeginShipoutNext{\thispagestyle{empty}}% to prevent heading/footer
% \afterpage{\AddToHookNext{shipout/after}{\thispagestyle{empty}}}%
\usebox\hvObjectBox
\else
@@ -1821,6 +1821,7 @@
\else
\end{\hv@floatType}%
\fi
+ \@floatpenalty=\hv@tempcnt% restore
}
\ExplSyntaxOn