diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty index 73f96d69baf..48d102c1d0e 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty @@ -30,10 +30,6 @@ } -\AtBeginDocument{ -\renewcommand*{\unitspace}{} -} - \newlength{\LWR@igwidth} \newlength{\LWR@igheight} \newcommand*{\LWR@igwidthstyle}{} @@ -48,8 +44,7 @@ \setlength{\LWR@igwidth}{#1}% \ifthenelse{\lengthtest{\LWR@igwidth > 0pt}}% {% - \uselengthunit{PT}% - \renewcommand*{\LWR@igwidthstyle}{width:\rndprintlength{\LWR@igwidth}}% + \renewcommand*{\LWR@igwidthstyle}{width:\LWR@printlength{\LWR@igwidth}}% \IfEndWith{#1}{ex}% {\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes ex {}% not ex @@ -68,9 +63,8 @@ \setlength{\LWR@igheight}{#1}% \ifthenelse{\lengthtest{\LWR@igheight > 0pt}}% {% - \uselengthunit{PT}% \renewcommand*{\LWR@igheightstyle}{% - height:\rndprintlength{\LWR@igheight} % + height:\LWR@printlength{\LWR@igheight} % }% \IfEndWith{#1}{ex}% {\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes ex @@ -210,11 +204,10 @@ }% }% not starred \endgroup% - \uselengthunit{PT}% \settowidth{\LWR@igwidth}{\usebox{\LWR@imagesizebox}}% - \global\renewcommand*{\LWR@igwidthstyle}{width:\rndprintlength{\LWR@igwidth}}% + \global\renewcommand*{\LWR@igwidthstyle}{width:\LWR@printlength{\LWR@igwidth}}% \settoheight{\LWR@igheight}{\usebox{\LWR@imagesizebox}}% - \global\renewcommand*{\LWR@igheightstyle}{height:\rndprintlength{\LWR@igheight}}% + \global\renewcommand*{\LWR@igheightstyle}{height:\LWR@printlength{\LWR@igheight}}% }{}% \LWR@traceinfo{LWR@includegraphicsb: about to create href}% \href{\LWR@parsedfilename}% |