summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-07-16 21:14:36 +0000
committerKarl Berry <karl@freefriends.org>2019-07-16 21:14:36 +0000
commitcf12bb505e9a4455ac9fb495f04cf7a2d079186c (patch)
treeeeb96649fd30bc3ac8752f78005b52d8efc47d57 /Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
parentd2055c0169cf583fb9af2de4061319e5b31a4303 (diff)
lwarp (16jul19)
git-svn-id: svn://tug.org/texlive/trunk@51653 c570f23f-e606-0410-a88d-b1316a301751
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}