diff options
author | Karl Berry <karl@freefriends.org> | 2018-01-30 21:05:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-01-30 21:05:29 +0000 |
commit | 83e0b95d2f78cf405abe952e383dcd0d986eee66 (patch) | |
tree | 322c558d9417cafdf345ae56b31ef814ac057e72 /Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty | |
parent | 1b674ef86fe17b1011f19a929dfd82253eb90995 (diff) |
lwarp (30jan18)
git-svn-id: svn://tug.org/texlive/trunk@46495 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty index 86e466408e4..20124144cfa 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty @@ -6,7 +6,7 @@ %% %% lwarp.dtx (with options: `keyfloat') %% This is a generated file. -%% Copyright 2016-2017 Brian Dunn +%% Copyright 2016-2018 Brian Dunn %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -20,15 +20,42 @@ \LWR@ProvidesPackagePass{keyfloat} \AtBeginDocument{ - -\let\KFLT@boxinner\relax -\let\endKFLT@boxinner\relax - -\NewEnviron{KFLT@boxinner} +\RenewDocumentCommand{\KFLT@onefigureimage}{} +{% +\LWR@traceinfo{KFLT@onefigureimage}% +\ifthenelse{\NOT\equal{\KFLT@lw}{}}% +{\includegraphics% +[scale=\KFLT@s,width=\KFLT@imagewidth]{\KFLT@i}}% +{% not linewidth +\ifthenelse{\dimtest{\KFLT@w}{>}{0pt}}% +{% width is given +\ifthenelse{\dimtest{\KFLT@h}{>}{0pt}}% +{% w and h +\includegraphics% +[scale=\KFLT@s,% +width=\KFLT@imagewidth,height=\KFLT@h]{\KFLT@i}% +}% w and h +{% only w +\includegraphics% +[scale=\KFLT@s,width=\KFLT@imagewidth]{\KFLT@i}% +}% only w +}% width is given +{% width is not given +\ifthenelse{\dimtest{\KFLT@h}{>}{0pt}}% +{\includegraphics% +[scale=\KFLT@s,height=\KFLT@h]{\KFLT@i}}% +{\includegraphics% +[scale=\KFLT@s]{\KFLT@i}}% +}% width is not given +}% not linewidth +\LWR@traceinfo{KFLT@onefigureimage: done}% +} +\RenewDocumentEnvironment{KFLT@boxinner}{} {% \LWR@traceinfo{KFLT@boxinner}% \LWR@stoppars% -\KFLT@frame{\BODY}% +} +{ \LWR@startpars% \LWR@traceinfo{KFLT@boxinner: done}% } |