summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.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-framed.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-framed.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty243
1 files changed, 243 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty
new file mode 100644
index 00000000000..5ca5029df95
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty
@@ -0,0 +1,243 @@
+%%
+%% This is file `lwarp-framed.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% lwarp.dtx (with options: `framed')
+%% This is a generated file.
+%% Copyright 2016-2017 Brian Dunn
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+\LWR@ProvidesPackagePass{framed}
+
+
+\renewenvironment{framed}{%
+\BlockClass{framed}%
+}
+{\endBlockClass}
+
+\renewenvironment{oframed}{%
+\BlockClass{framed}%
+}
+{\endBlockClass}
+
+\renewenvironment{shaded}{%
+\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor%
+\BlockClass{framed}[background: \#\LWR@tempcolor]%
+}
+{\endBlockClass}
+
+\renewenvironment{shaded*}{%
+\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor%
+\BlockClass{framed}[background: \#\LWR@tempcolor]%
+}
+{\endBlockClass}
+
+\renewenvironment{leftbar}{%
+\BlockClass{framedleftbar}
+ \def\FrameCommand{}%
+ \MakeFramed {}
+}%
+ {\endMakeFramed\endBlockClass}
+
+\renewenvironment{snugshade}{%
+\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor%
+\BlockClass{snugframed}[background: \#\LWR@tempcolor]%
+}
+{\endBlockClass}
+
+\renewenvironment{snugshade*}{%
+\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor%
+\BlockClass{snugframed}[background: \#\LWR@tempcolor]%
+}
+{\endBlockClass}
+
+\let\oframed\framed
+\let\endoframed\endframed
+
+\RenewEnviron{titled-frame}[1]{%
+\CustomFBox{#1}{}{0pt}{0pt}{0pt}{0pt}{\BODY}
+}
+
+\renewcommand{\CustomFBox}[7]{%
+\convertcolorspec{named}{TFFrameColor}{HTML}\LWR@tempcolor%
+\begin{BlockClass}{framed}[border: 3px solid \#\LWR@tempcolor]%
+\ifthenelse{\isempty{#1}}{}{% not empty
+\begin{BlockClass}{framedtitle}[background: \#\LWR@tempcolor]%
+\textcolor{TFTitleColor}{\textbf{#1}}%
+\end{BlockClass}
+}% not empty
+
+#7
+
+\ifthenelse{\isempty{#2}}{}{% not empty
+\convertcolorspec{named}{TFFrameColor}{HTML}\LWR@tempcolor%
+\begin{BlockClass}{framedtitle}[background: \#\LWR@tempcolor]%
+\textcolor{TFTitleColor}{\textbf{#2}}%
+\end{BlockClass}
+}% not empty
+\end{BlockClass}
+}
+
+\renewcommand\TitleBarFrame[3][]{
+\CustomFBox
+ {#2}{}%
+ \fboxrule\fboxrule\fboxrule\fboxrule
+ {#3}%
+}
+
+\renewcommand{\TF@Title}[1]{#1}
+
+\let\MakeFramed\relax
+\let\endMakeFramed\relax
+
+\NewEnviron{MakeFramed}[1]{%
+\FrameCommand{\begin{minipage}{\linewidth}\BODY\end{minipage}}%
+}
+
+\renewcommand*{\fb@put@frame}[2]{%
+\relax%
+\@tempboxa%
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+\endinput
+%%
+%% End of file `lwarp-framed.sty'.