summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-08-08 20:42:15 +0000
committerKarl Berry <karl@freefriends.org>2017-08-08 20:42:15 +0000
commit8065b9f4ce6618e2a867b384059805a0d56050cb (patch)
treeb7127cf52237e63f9106eee920ad7a25da4a7555 /Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty
parent01813c8e0468ce80e613571a4548f9480d117831 (diff)
lwarp (8aug17)
git-svn-id: svn://tug.org/texlive/trunk@44988 c570f23f-e606-0410-a88d-b1316a301751
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