summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty29
1 files changed, 15 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
index 68f61f6cced..e4e85161186 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
@@ -66,27 +66,28 @@
border:\LWR@printlength{\LWR@atleastonept} solid \LWR@colorstyle{#1}{#2} ; %
padding:\LWR@printlength{\fboxsep}%
}
+\NewDocumentCommand{\LWR@HTML@color}{o m}{%
+\IfValueTF{#1}{%
+ \LWR@print@color[#1]{#2}%
+ \convertcolorspec{#1}{#2}{HTML}\LWR@tempcolor%
+}{%
+ \LWR@print@color{#2}%
+ \convertcolorspec{named}{#2}{HTML}\LWR@tempcolor%
+}%
+\edef\LWR@currenttextcolor{\LWR@origpound\LWR@tempcolor}%
+}
+
+\LWR@formatted{color}
\NewDocumentCommand{\LWR@HTML@textcolor}{o m m}{%
\begingroup%
\IfValueTF{#1}{%
\color[#1]{#2}%
}{%
\color{#2}%
-}%
-\LWR@FBcancel%
-\IfValueTF{#1}{%
-\InlineClass[color:\LWR@colorstyle{#1}{#2}]{textcolor}{%
-\renewcommand*{\LWR@currenttextcolor}{\LWR@origpound\LWR@tempcolor}%
-#3%
-}%
-}{%
-\InlineClass[color:\LWR@colorstyle{named}{#2}]{textcolor}{%
-\renewcommand*{\LWR@currenttextcolor}{\LWR@origpound\LWR@tempcolor}%
-#3%
-}%
-}%
-\endgroup%
}
+\InlineClass[color:\LWR@currenttextcolor]{textcolor}{#3}%
+\endgroup%
+}%
\LWR@formatted{textcolor}