summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty35
1 files changed, 11 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty
index 471db8983b0..ecb8727ca62 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty
@@ -69,33 +69,20 @@
\FV@EndListFrame@Lines%
\LWR@fvendnone%
}
-
-\newcommand*{\LWR@FVfindcurrentcolor}{%
-\protect\colorlet{LWR@current@color}{.}%
-\protect\convertcolorspec{named}{LWR@current@color}{HTML}\LWR@tempcolor%
-}
-
-\newcommand*{\LWR@FVtextstyle}{%
-\LWR@FVfindcurrentcolor
-\ifdefstring{\LWR@tempcolor}{000000}%
-{}%
-{color: \#\LWR@tempcolor ; }%
-}
-
\newcommand*{\LWR@FVfindbordercolor}{%
\FancyVerbRuleColor%
-\LWR@FVfindcurrentcolor
-\color{black}
+\LWR@findcurrenttextcolor%
+\color{black}%
}
\newcommand*{\LWR@FVborderstyle}[1]{%
-padding#1: \strip@pt\dimexpr \FV@FrameSep\relax\relax pt ;
-\LWR@FVfindbordercolor
-border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor ;
+padding#1: \strip@pt\dimexpr \FV@FrameSep\relax\relax pt ; %
+\LWR@FVfindbordercolor %
+border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor ; %
}
\def\FV@Frame@none{%
-\renewcommand*{\LWR@FVstyle}{\LWR@FVtextstyle}%
+\renewcommand*{\LWR@FVstyle}{\LWR@currenttextcolorstyle}%
\let\FV@BeginListFrame\LWR@fvstartnone%
\let\FV@LeftListFrame\relax%
\let\FV@RightListFrame\relax%
@@ -104,7 +91,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\FV@Frame@none% default values
\def\FV@Frame@single{%
-\renewcommand*{\LWR@FVstyle}{\LWR@FVtextstyle\LWR@FVborderstyle{}}%
+\renewcommand*{\LWR@FVstyle}{\LWR@currenttextcolorstyle\LWR@FVborderstyle{}}%
\let\FV@BeginListFrame\LWR@fvstartsingle%
\let\FV@LeftListFrame\FV@LeftListFrame@Single%
\let\FV@RightListFrame\FV@RightListFrame@Single%
@@ -112,7 +99,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\def\FV@Frame@lines{%
\renewcommand*{\LWR@FVstyle}{%
- \LWR@FVtextstyle\LWR@FVborderstyle{-top}\LWR@FVborderstyle{-bottom}%
+ \LWR@currenttextcolorstyle\LWR@FVborderstyle{-top}\LWR@FVborderstyle{-bottom}%
}%
\let\FV@BeginListFrame\LWR@fvstartline%
\let\FV@LeftListFrame\relax%
@@ -120,21 +107,21 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\let\FV@EndListFrame\LWR@fvendline}
\def\FV@Frame@topline{%
-\renewcommand*{\LWR@FVstyle}{\LWR@FVtextstyle\LWR@FVborderstyle{-top}}%
+\renewcommand*{\LWR@FVstyle}{\LWR@currenttextcolorstyle\LWR@FVborderstyle{-top}}%
\let\FV@BeginListFrame\LWR@fvstartline%
\let\FV@LeftListFrame\relax%
\let\FV@RightListFrame\relax%
\let\FV@EndListFrame\LWR@fvendnone}
\def\FV@Frame@bottomline{%
-\renewcommand*{\LWR@FVstyle}{\LWR@FVtextstyle\LWR@FVborderstyle{-bottom}}%
+\renewcommand*{\LWR@FVstyle}{\LWR@currenttextcolorstyle\LWR@FVborderstyle{-bottom}}%
\let\FV@BeginListFrame\LWR@fvstartnone%
\let\FV@LeftListFrame\relax%
\let\FV@RightListFrame\relax%
\let\FV@EndListFrame\LWR@fvendline}
\def\FV@Frame@leftline{%
-\renewcommand*{\LWR@FVstyle}{\LWR@FVtextstyle\LWR@FVborderstyle{-left}}%
+\renewcommand*{\LWR@FVstyle}{\LWR@currenttextcolorstyle\LWR@FVborderstyle{-left}}%
\ifx\FancyVerbFillColor\relax%
\let\FV@FrameFillLine\relax%
\else%