diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty | 112 |
1 files changed, 59 insertions, 53 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty index ef338125feb..1b44e7875b1 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty @@ -17,54 +17,60 @@ %% version 2005/12/01 or later. \LWR@ProvidesPackagePass{framed}[2011/10/22] -\AtBeginDocument{\RequirePackage{xcolor}}% for \convertcolorspec +\AtBeginDocument{\RequirePackage{xcolor}}% for \convertcolorspec -\renewenvironment{framed}{% -\LWR@forcenewpage -\BlockClass{framed}% +\renewenvironment{framed} +{% + \LWR@forcenewpage + \BlockClass{framed}% } {\endBlockClass} -\renewenvironment{oframed}{% -\LWR@forcenewpage -\BlockClass{framed}% +\renewenvironment{oframed} +{% + \LWR@forcenewpage + \BlockClass{framed}% } {\endBlockClass} -\renewenvironment{shaded}{% -\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor% -\LWR@forcenewpage -\BlockClass[background: \LWR@origpound\LWR@tempcolor]{shaded}% +\renewenvironment{shaded} +{% + \convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor% + \LWR@forcenewpage + \BlockClass[background: \LWR@origpound\LWR@tempcolor]{shaded}% } {\endBlockClass} -\renewenvironment{shaded*}{% -\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor% -\LWR@forcenewpage -\BlockClass[background: \LWR@origpound\LWR@tempcolor]{shaded}% +\renewenvironment{shaded*} +{% + \convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor% + \LWR@forcenewpage + \BlockClass[background: \LWR@origpound\LWR@tempcolor]{shaded}% } {\endBlockClass} \renewenvironment{leftbar}{% -\LWR@forcenewpage + \LWR@forcenewpage \BlockClass{framedleftbar} - \def\FrameCommand{}% - \MakeFramed {} + \def\FrameCommand{}% + \MakeFramed {} }% - {\endMakeFramed\endBlockClass} +{\endMakeFramed\endBlockClass} -\renewenvironment{snugshade}{% -\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor% -\LWR@forcenewpage -\BlockClass[background: \LWR@origpound\LWR@tempcolor]{snugframed}% +\renewenvironment{snugshade} +{% + \convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor% + \LWR@forcenewpage + \BlockClass[background: \LWR@origpound\LWR@tempcolor]{snugframed}% } {\endBlockClass} -\renewenvironment{snugshade*}{% -\convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor% -\LWR@forcenewpage -\BlockClass[background: \LWR@origpound\LWR@tempcolor]{snugframed}% +\renewenvironment{snugshade*} +{% + \convertcolorspec{named}{shadecolor}{HTML}\LWR@tempcolor% + \LWR@forcenewpage + \BlockClass[background: \LWR@origpound\LWR@tempcolor]{snugframed}% } {\endBlockClass} @@ -72,35 +78,35 @@ \let\endoframed\endframed \RenewEnviron{titled-frame}[1]{% -\CustomFBox{#1}{}{0pt}{0pt}{0pt}{0pt}{\BODY} + \CustomFBox{#1}{}{0pt}{0pt}{0pt}{0pt}{\BODY} } \renewcommand{\CustomFBox}[7]{% -\convertcolorspec{named}{TFFrameColor}{HTML}\LWR@tempcolor% -\LWR@forcenewpage -\begin{BlockClass}[border: 3px solid \LWR@origpound\LWR@tempcolor]{framed}% -\ifthenelse{\isempty{#1}}{}{% not empty - \begin{BlockClass}[background: \LWR@origpound\LWR@tempcolor]{framedtitle}% - \textcolor{TFTitleColor}{\textbf{#1}}% - \end{BlockClass} -}% not empty - -#7 - -\ifthenelse{\isempty{#2}}{}{% not empty \convertcolorspec{named}{TFFrameColor}{HTML}\LWR@tempcolor% - \begin{BlockClass}[background: \LWR@origpound\LWR@tempcolor]{framedtitle}% - \textcolor{TFTitleColor}{\textbf{#2}}% - \end{BlockClass} -}% not empty -\end{BlockClass} + \LWR@forcenewpage + \begin{BlockClass}[border: 3px solid \LWR@origpound\LWR@tempcolor]{framed}% + \ifthenelse{\isempty{#1}}{}{% not empty + \begin{BlockClass}[background: \LWR@origpound\LWR@tempcolor]{framedtitle}% + \textcolor{TFTitleColor}{\textbf{#1}}% + \end{BlockClass}% + }% not empty + + #7 + + \ifthenelse{\isempty{#2}}{}{% not empty + \convertcolorspec{named}{TFFrameColor}{HTML}\LWR@tempcolor% + \begin{BlockClass}[background: \LWR@origpound\LWR@tempcolor]{framedtitle}% + \textcolor{TFTitleColor}{\textbf{#2}}% + \end{BlockClass}% + }% not empty + \end{BlockClass}% } -\renewcommand\TitleBarFrame[3][]{ -\CustomFBox - {#2}{}% - \fboxrule\fboxrule\fboxrule\fboxrule - {#3}% +\renewcommand\TitleBarFrame[3][]{% + \CustomFBox% + {#2}{}% + \fboxrule\fboxrule\fboxrule\fboxrule% + {#3}% } \renewcommand{\TF@Title}[1]{#1} @@ -109,12 +115,12 @@ \let\endMakeFramed\relax \NewEnviron{MakeFramed}[1]{% -\FrameCommand{\begin{minipage}{\linewidth}\BODY\end{minipage}}% + \FrameCommand{\begin{minipage}{\linewidth}\BODY\end{minipage}}% } \renewcommand*{\fb@put@frame}[2]{% -\relax% -\@tempboxa% + \relax% + \@tempboxa% } \endinput |