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 | 69 |
1 files changed, 38 insertions, 31 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty index 497baad7b2b..96d77d44bba 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty @@ -17,7 +17,7 @@ %% version 2005/12/01 or later. -\LWR@ProvidesPackagePass{graphics} +\LWR@ProvidesPackagePass{graphics}[2017/06/25] \AtBeginDocument{ @@ -265,9 +265,10 @@ {% start of href \LWR@traceinfo{LWR@includegraphicsb: about to LWR@htmltag}% \LWR@htmltag{% start of image tags -img src="% +img\LWR@indentHTML% +src="% \detokenize\expandafter{\LWR@parsedfilename}% -" \LWR@orignewline% +"\LWR@indentHTML% \ifthenelse{ \NOT\equal{\LWR@igwidthstyle}{} \OR \NOT\equal{\LWR@igheightstyle}{} \OR @@ -277,39 +278,38 @@ img src="% \NOT\equal{\LWR@igyscale}{1} }% {% - \LWR@origtilde{} style="% + style="\LWR@indentHTML \ifthenelse{\NOT\equal{\LWR@igwidthstyle}{}}% - {\LWR@igwidthstyle; }{}% + {\LWR@igwidthstyle;\LWR@indentHTML}{}% \ifthenelse{\NOT\equal{\LWR@igheightstyle}{}}% - {\LWR@igheightstyle; }{}% + {\LWR@igheightstyle;\LWR@indentHTML}{}% \ifthenelse{\NOT\equal{\LWR@igorigin}{}}% {% - \LWR@origtilde{} transform-origin: \LWR@originnames{\LWR@igorigin}; % - \LWR@orignewline% + transform-origin: \LWR@originnames{\LWR@igorigin};\LWR@indentHTML% }{}% \ifthenelse{\NOT\equal{\LWR@igangle}{}}% {% - \LWR@rotstyle{-ms-}{\LWR@igangle} % extra space - \LWR@rotstyle{-webkit-}{\LWR@igangle} % extra space - \LWR@rotstyle{}{\LWR@igangle }% + \LWR@rotstyle{-ms-}{\LWR@igangle}\LWR@indentHTML + \LWR@rotstyle{-webkit-}{\LWR@igangle}\LWR@indentHTML + \LWR@rotstyle{}{\LWR@igangle }\LWR@indentHTML }{}% \ifthenelse{% \NOT\equal{\LWR@igxscale}{1}\OR% \NOT\equal{\LWR@igyscale}{1}% }% {% - \LWR@scalestyle{-ms-}{\LWR@igxscale}{\LWR@igyscale} % extra space - \LWR@scalestyle{-webkit-}{\LWR@igxscale}{\LWR@igyscale} % extra space - \LWR@scalestyle{}{\LWR@igxscale}{\LWR@igyscale}% - }{} % extra space + \LWR@scalestyle{-ms-}{\LWR@igxscale}{\LWR@igyscale}\LWR@indentHTML + \LWR@scalestyle{-webkit-}{\LWR@igxscale}{\LWR@igyscale}\LWR@indentHTML + \LWR@scalestyle{}{\LWR@igxscale}{\LWR@igyscale}\LWR@indentHTML + }{}% % \ifthenelse{\NOT\equal{\LWR@opacity}{1}}% - {opacity:\LWR@opacity; }{}% + {opacity:\LWR@opacity;\LWR@indentHTML}{}% % - " \LWR@orignewline% + "\LWR@indentHTML% }{}% -\LWR@origtilde{} class="\LWR@igclass" \LWR@orignewline% -\LWR@origtilde{} alt="\LWR@igalt" \LWR@orignewline% +class="\LWR@igclass"\LWR@indentHTML% +alt="\LWR@igalt" \LWR@orignewline% }% end of image tags }% end of href \endgroup @@ -358,13 +358,16 @@ img src="% \NewDocumentCommand{\LWR@HTML@rotatebox}{O{} m +m}{% \renewcommand*{\LWR@rotboxorigin}{} \setkeys{krotbox}{#1}% -\LWR@htmltagc{span style="display: inline-block; % -\ifthenelse{\NOT\equal{\LWR@rotboxorigin}{}}% -{transform-origin: \LWR@originnames{\LWR@rotboxorigin};\LWR@origtilde}{}% -\LWR@rotstyle{-ms-}{#2} % extra space -\LWR@rotstyle{-webkit-}{#2} % extra space -\LWR@rotstyle{}{#2} % extra space -"}\LWR@orignewline% +\LWR@htmltagc{% + span\LWR@indentHTML + style="\LWR@indentHTML + display: inline-block;\LWR@indentHTML + \ifthenelse{\NOT\equal{\LWR@rotboxorigin}{}}% + {transform-origin: \LWR@originnames{\LWR@rotboxorigin};\LWR@indentHTML}{}% + \LWR@rotstyle{-ms-}{#2}\LWR@indentHTML + \LWR@rotstyle{-webkit-}{#2}\LWR@indentHTML + \LWR@rotstyle{}{#2}"\LWR@orignewline% +}\LWR@orignewline% \begin{LWR@nestspan}% #3% \LWR@htmltagc{/span}% @@ -376,11 +379,15 @@ img src="% \AtBeginDocument{ \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 -\LWR@scalestyle{}{#1}{\IfNoValueTF{#2}{#1}{#2}} % extra space -"}% +\LWR@htmltagc{% + span\LWR@indentHTML + style="\LWR@indentHTML + display: inline-block;\LWR@indentHTML + \LWR@scalestyle{-ms-}{#1}{\IfNoValueTF{#2}{#1}{#2}}\LWR@indentHTML + \LWR@scalestyle{-webkit-}{#1}{\IfNoValueTF{#2}{#1}{#2}}\LWR@indentHTML + \LWR@scalestyle{}{#1}{\IfNoValueTF{#2}{#1}{#2}} + "\LWR@orignewline +}\LWR@orignewline% \begin{LWR@nestspan}% #3% \LWR@htmltagc{/span}% |