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.sty11
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
index 64e8aa1b18c..61c5a38bef4 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-graphics.sty
@@ -51,7 +51,7 @@
\newcommand*{\LWR@igxscale}{1}
\newcommand*{\LWR@igyscale}{1}
\newcommand*{\LWR@igclass}{inlineimage}
-\newcommand*{\LWR@igalt}{(image)}
+\newcommand*{\LWR@igalt}{\ImageAltText}
\define@key{igraph}{width}{%
\setlength{\LWR@igwidth}{#1}%
@@ -196,7 +196,11 @@
\renewcommand*{\LWR@igxscale}{1}%
\renewcommand*{\LWR@igyscale}{1}%
\renewcommand*{\LWR@igclass}{inlineimage}%
-\renewcommand*{\LWR@igalt}{(image)}%
+\ifdefvoid{\LWR@ThisAltText}{%
+ \renewcommand*{\LWR@igalt}{\ImageAltText}%
+}{%
+ \renewcommand*{\LWR@igalt}{\LWR@ThisAltText}%
+}%
\IfValueF{#3}{%
\IfValueTF{#2}%
{\setkeys{igraph}{#2}}%
@@ -316,10 +320,11 @@ src="%
"\LWR@indentHTML%
}{}%
class="\LWR@igclass"\LWR@indentHTML%
-alt="\LWR@igalt" \LWR@orignewline%
+alt="\AltTextOpen\LWR@igalt\AltTextClose" \LWR@orignewline%
}% end of image tags
}% end of href
\endgroup
+\gdef\LWR@ThisAltText{}%
\LWR@traceinfo{LWR@includegraphicsb done}%
}