diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty | 54 |
1 files changed, 30 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty index eebba0bd43c..329de5bc815 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-keyfloat.sty @@ -24,30 +24,36 @@ {% \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 + {% + \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}{} |