diff options
author | Karl Berry <karl@freefriends.org> | 2022-09-01 20:57:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-09-01 20:57:51 +0000 |
commit | c33b0506dec82a5c94fb746adae4e5c136849815 (patch) | |
tree | c2f7c5a2c5f2146f78b7b20a5bb18c48294769bb /Master/texmf-dist/tex/latex/hvfloat | |
parent | 5a8014528bd307d08ac441c1218daa0bfe50b112 (diff) |
hvfloat (1sep22)
git-svn-id: svn://tug.org/texlive/trunk@64258 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 | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty b/Master/texmf-dist/tex/latex/hvfloat/hvfloat.sty index 7c1e23111ac..b80e7ce0c1c 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 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 |