summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-23 21:28:36 +0000
committerKarl Berry <karl@freefriends.org>2017-03-23 21:28:36 +0000
commita446276fde2e4a633907b16a14023894d6df7054 (patch)
tree02f2dd0fd46a864032895b8b37c58aa3269670ec /Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
parent652642986982eb46e55c24b1163900fd1f995055 (diff)
lwarp (23mar17)
git-svn-id: svn://tug.org/texlive/trunk@43584 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.sty34
1 files changed, 32 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
index 32043419464..68baf3bc3b5 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty
@@ -123,13 +123,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\LWR@ProvidesPackagePass{xcolor}
\newcommand*{\LWR@tempcolor}{}
\newcommand*{\LWR@currenttextcolor}{black}
-\NewDocumentCommand{\LWR@colorstyle}{m m m +m}{%
+\NewDocumentCommand{\LWR@colorstyle}{m m m m}{%
\convertcolorspec{#2}{#3}{HTML}\LWR@tempcolor%
\ifthenelse{\equal{#1}{color:}}%
{\renewcommand*{\LWR@currenttextcolor}{\#\LWR@tempcolor}}{}%
@@ -143,7 +164,7 @@
-\NewDocumentCommand{\LWR@textcolor}{O{named} m +m}{%
+\NewDocumentCommand{\LWR@textcolor}{O{named} m m}{%
\begingroup%
\LWR@colorstyle{color:}{#1}{#2}{#3}%
\endgroup%
@@ -159,11 +180,20 @@
\NewDocumentCommand{\LWR@fcolorbox}{O{named} m O{named} m m}{%
\begingroup%
+\ifthenelse{\equal{#4}{none}}{% no background color
+\LWR@colorstyle{border:1px solid }{#1}{#2}{#5}%
+}{% yes background color
\LWR@colorstyle{border:1px solid }{#1}{#2}%
{\LWR@colorstyle{background:}{#3}{#4}{#5}}%
+}%
\endgroup%
}
+\let\textcolor\LWR@textcolor
+\let\pagecolor\LWR@pagecolor
+\let\colorbox\LWR@colorbox
+\let\fcolorbox\LWR@fcolorbox
+