diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty | 34 |
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 + |