diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/keyfloat/keyfloat.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/keyfloat/keyfloat.sty | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/latex/keyfloat/keyfloat.sty b/Master/texmf-dist/tex/latex/keyfloat/keyfloat.sty index 1e4e559f6ef..a31f6ea7c75 100644 --- a/Master/texmf-dist/tex/latex/keyfloat/keyfloat.sty +++ b/Master/texmf-dist/tex/latex/keyfloat/keyfloat.sty @@ -18,7 +18,8 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{keyfloat} - [2021/06/08 v2.04 Key/value interface for floats and subfloats.] + [2021/06/11 v2.05 Key/value interface for floats and subfloats.] + @@ -73,22 +74,6 @@ \RequirePackage{placeins} \RequirePackage{wrapfig} -\RequirePackage{xpatch} - -\ifdef{\WF@wr} -{ - \xpatchcmd{\WF@wr} - {\gdef} - {\xdef} - {} - { - \PackageError{keyfloat} - {Unable to patch wrapfig \protect\WF@wr} - {Please inform the keyfloat author.} - } -} -{} - \PassOptionsToPackage{expand}{gettitlestring} @@ -732,8 +717,12 @@ \ifstrequal{#2}{W}% {% [W] \KFLT@findwidths% - \wrapfloat{\KFLT@type}[\KFLT@wn]{\KFLT@wp}[\KFLT@wo]% - {\KFLT@wrapwidth+2\KFLTlooseframewidth}% + \edef\next{% + \noexpand\wrapfloat% + {\KFLT@type}[\KFLT@wn]{\KFLT@wp}[\KFLT@wo]% + {\KFLT@wrapwidth+2\KFLTlooseframewidth}% + }% + \next% \minipage{\KFLT@wrapwidth+2\KFLTlooseframewidth}% \hbadness=10000\relax% \normalcolor\reset@font\normalsize% |