summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty32
1 files changed, 20 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
index dca1348eca7..6a8c37a1207 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
@@ -297,10 +297,8 @@ img src="%
\define@key{krotbox}{x}{}
\define@key{krotbox}{y}{}
\define@key{krotbox}{units}{}
-\LetLtxMacro\LWR@origrotatebox\rotatebox
-
\AtBeginDocument{
-\RenewDocumentCommand{\rotatebox}{O{} m +m}{%
+\NewDocumentCommand{\LWR@HTML@rotatebox}{O{} m +m}{%
\renewcommand*{\LWR@rotboxorigin}{}
\setkeys{krotbox}{#1}%
\LWR@htmltagc{span style="display: inline-block; %
@@ -315,12 +313,12 @@ img src="%
\LWR@htmltagc{/span}%
\end{LWR@nestspan}%
}
-}% AtBeginDocument
+\LWR@formatted{rotatebox}
-\LetLtxMacro\LWR@origscalebox\scalebox
+}% AtBeginDocument
\AtBeginDocument{
-\RenewDocumentCommand{\scalebox}{m o m}{%
+\NewDocumentCommand{\LWR@HTML@scalebox}{m o m}{%
\LWR@htmltagc{span style="display: inline-block; %
\LWR@scalestyle{-ms-}{#1}{\IfNoValueTF{#2}{#1}{#2}} % extra space
\LWR@scalestyle{-webkit-}{#1}{\IfNoValueTF{#2}{#1}{#2}} % extra space
@@ -331,19 +329,29 @@ img src="%
\LWR@htmltagc{/span}%
\end{LWR@nestspan}%
}
-}% AtBeginDocument
+\LWR@formatted{scalebox}
-\let\LWR@origreflectbox\reflectbox
+}% AtBeginDocument
\AtBeginDocument{
-\renewcommand{\reflectbox}[1]{\scalebox{-1}[1]{#1}}
-}
-\LetLtxMacro\LWR@origresizebox\resizebox
+\newcommand{\LWR@HTML@reflectbox}[1]{%
+\scalebox{-1}[1]{#1}%
+}% \reflectbox
+
+\LWR@formatted{reflectbox}
+
+}% AtBeginDocument
\AtBeginDocument{
-\renewcommand{\resizebox}[3]{#3}
+
+\NewDocumentCommand{\LWR@HTML@resizebox}{s m m m}{%
+#4%
}
+
+\LWR@formatted{resizebox}
+
+}% AtBeginDocument
\endinput
%%
%% End of file `lwarp-graphics.sty'.