From b6623b70d37bb1d67234317f1f7d2273a209ba5d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 11 Jun 2021 19:53:34 +0000 Subject: keyfloat (11jun21) git-svn-id: svn://tug.org/texlive/trunk@59557 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/keyfloat/keyfloat.sty | 27 +++++++---------------- 1 file changed, 8 insertions(+), 19 deletions(-) (limited to 'Master/texmf-dist/tex/latex') 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% -- cgit v1.2.3