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.sty15
1 files changed, 7 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
index 04c1b770d86..febcad9a763 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
@@ -159,6 +159,7 @@
\Ginclude@graphics{\detokenize\expandafter{#4}}%
\endgroup%
\filename@parse{\LWR@parsedfilename}%
+\LWR@traceinfo{LWR@parsedfilename is \LWR@parsedfilename}%
\large%
\setlength{\LWR@igwidth}{0pt}%
\setlength{\LWR@igheight}{0pt}%
@@ -219,8 +220,9 @@
{% start of href
\LWR@traceinfo{LWR@includegraphicsb: about to LWR@htmltag}%
\LWR@htmltag{% start of image tags
-img src="\LWR@parsedfilename" \LWR@orignewline%
-\LWR@origtilde{} alt="[\filename@base]" \LWR@orignewline%
+img src="%
+\begingroup\@sanitize\LWR@parsedfilename\endgroup%
+" \LWR@orignewline%
\ifthenelse{
\NOT\equal{\LWR@igwidthstyle}{} \OR
\NOT\equal{\LWR@igheightstyle}{} \OR
@@ -254,7 +256,6 @@ img src="\LWR@parsedfilename" \LWR@orignewline%
\LWR@origtilde{} class="\LWR@igclass" \LWR@orignewline%
}% end of image tags
}% end of href
-\endgroup
\LWR@origscriptsize
\LWR@traceinfo{LWR@includegraphicsb done}%
}
@@ -271,10 +272,8 @@ img src="\LWR@parsedfilename" \LWR@orignewline%
\renewcommand*{\includegraphics}
{%
-\LWR@traceinfo{includegraphics}
+\LWR@traceinfo{includegraphics}%
\LWR@ensuredoingapar%
-\begingroup%
-\catcode`\_=12
\LWR@includegraphicsb%
}% includegraphics
}% AtBeginDocument
@@ -312,7 +311,7 @@ img src="\LWR@parsedfilename" \LWR@orignewline%
\LWR@rotstyle{-ms-}{#2} %
\LWR@rotstyle{-webkit-}{#2} %
\LWR@rotstyle{}{#2} %
-"{}}\LWR@orignewline%
+"}\LWR@orignewline%
\begin{LWR@nestspan}%
#3%
\LWR@htmltagc{/span}%
@@ -328,7 +327,7 @@ img src="\LWR@parsedfilename" \LWR@orignewline%
\LWR@scalestyle{-ms-}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
\LWR@scalestyle{-webkit-}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
\LWR@scalestyle{}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
-"{}}%
+"}%
\begin{LWR@nestspan}%
#3%
\LWR@htmltagc{/span}%