%% %% This is file `thmdef-shaded.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% thmdef-shaded.dtx (with options: `shaded') %% This is a generated file. %% %% This file is part of the `thmtools' package. %% The `thmtools' package has the LPPL maintenance status: maintained. %% Current Maintainer is Ulrich M. Schwarz, ulmi@absatzen.de %% %% Copyright (C) 2008-2010 by Ulrich M. Schwarz. %% %% This file may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, version 1.3a. %% This version is obtainable at %% http://www.latex-project.org/lppl/lppl-1-3a.txt %% %% \NeedsTeXFormat {LaTeX2e} \ProvidesPackage {thmdef-shaded}[2010/05/18 v24] \define@key{thmdef}{shaded}[{}]{% \thmt@trytwice{}{% \RequirePackage{shadethm}% \RequirePackage{thm-patch}% \addtotheorempreheadhook[\thmt@envname]{% \setlength\shadedtextwidth{\linewidth}% \kvsetkeys{thmt@shade}{#1}\begin{shadebox}}% \addtotheorempostfoothook[\thmt@envname]{\end{shadebox}}% }% } \define@key{thmt@shade}{textwidth}{\setlength\shadedtextwidth{#1}} \define@key{thmt@shade}{bgcolor}{\thmt@definecolor{shadethmcolor}{#1}} \define@key{thmt@shade}{rulecolor}{\thmt@definecolor{shaderulecolor}{#1}} \define@key{thmt@shade}{rulewidth}{\setlength\shadeboxrule{#1}} \define@key{thmt@shade}{margin}{\setlength\shadeboxsep{#1}} \def\thmt@colorlet#1#2{% %\typeout{don't know how to let color `#1' be like color `#2'!}% \@xa\let\csname\string\color@#1\@xa\endcsname \csname\string\color@#2\endcsname % this is dubious at best, we don't know what a backend does. } \AtBeginDocument{% \ifcsname colorlet\endcsname \let\thmt@colorlet\colorlet \fi } \def\thmt@drop@relax#1\relax{} \def\thmt@definecolor#1#2{% \thmt@def@color{#1}#2\thmt@drop@relax {gray}{0.5}% \thmt@colorlet{#1}{#2}% \relax } \def\thmt@def@color#1#2#{% \definecolor{#1}} \endinput %% %% End of file `thmdef-shaded.sty'.