summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-02-20 21:58:20 +0000
committerKarl Berry <karl@freefriends.org>2018-02-20 21:58:20 +0000
commit6e85d755648b6c0966778e6c82dd2fff71c07756 (patch)
treeb35d043db63f8b087e5ff9a47164da95991e8551 /Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
parent4373b1d9ec9aeb43430cc8674422cc201c64ebfe (diff)
lwarp (20feb18)
git-svn-id: svn://tug.org/texlive/trunk@46689 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty15
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}%