summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty15
1 files changed, 8 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty
index 905c723ac16..b78bd31188b 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty
@@ -17,6 +17,7 @@
%% version 2005/12/01 or later.
\LWR@ProvidesPackagePass{framed}
+\RequirePackage{xcolor}% for \convertcolorspec
\renewenvironment{framed}{%
@@ -34,14 +35,14 @@
\renewenvironment{shaded}{%
\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor%
\LWR@forcenewpage
-\BlockClass{framed}[background: \#\LWR@tempcolor]%
+\BlockClass[background: \#\LWR@tempcolor]{framed}%
}
{\endBlockClass}
\renewenvironment{shaded*}{%
\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor%
\LWR@forcenewpage
-\BlockClass{framed}[background: \#\LWR@tempcolor]%
+\BlockClass[background: \#\LWR@tempcolor]{framed}%
}
{\endBlockClass}
@@ -56,14 +57,14 @@
\renewenvironment{snugshade}{%
\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor%
\LWR@forcenewpage
-\BlockClass{snugframed}[background: \#\LWR@tempcolor]%
+\BlockClass[background: \#\LWR@tempcolor]{snugframed}%
}
{\endBlockClass}
\renewenvironment{snugshade*}{%
\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor%
\LWR@forcenewpage
-\BlockClass{snugframed}[background: \#\LWR@tempcolor]%
+\BlockClass[background: \#\LWR@tempcolor]{snugframed}%
}
{\endBlockClass}
@@ -77,9 +78,9 @@
\renewcommand{\CustomFBox}[7]{%
\convertcolorspec{named}{TFFrameColor}{HTML}\LWR@tempcolor%
\LWR@forcenewpage
-\begin{BlockClass}{framed}[border: 3px solid \#\LWR@tempcolor]%
+\begin{BlockClass}[border: 3px solid \#\LWR@tempcolor]{framed}%
\ifthenelse{\isempty{#1}}{}{% not empty
-\begin{BlockClass}{framedtitle}[background: \#\LWR@tempcolor]%
+\begin{BlockClass}[background: \#\LWR@tempcolor]{framedtitle}%
\textcolor{TFTitleColor}{\textbf{#1}}%
\end{BlockClass}
}% not empty
@@ -88,7 +89,7 @@
\ifthenelse{\isempty{#2}}{}{% not empty
\convertcolorspec{named}{TFFrameColor}{HTML}\LWR@tempcolor%
-\begin{BlockClass}{framedtitle}[background: \#\LWR@tempcolor]%
+\begin{BlockClass}[background: \#\LWR@tempcolor]{framedtitle}%
\textcolor{TFTitleColor}{\textbf{#2}}%
\end{BlockClass}
}% not empty