diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/gradientframe/gradientframe.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/gradientframe/gradientframe.sty | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/gradientframe/gradientframe.sty b/Master/texmf-dist/tex/latex/gradientframe/gradientframe.sty new file mode 100644 index 00000000000..fd9d3237599 --- /dev/null +++ b/Master/texmf-dist/tex/latex/gradientframe/gradientframe.sty @@ -0,0 +1,78 @@ +%% +%% This is file `gradientframe.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% gradientframe.dtx (with options: `package') +%% +%% LaTeX package gradientframe for simple gradient frames around objects. +%% +%% Copyright (C) Christian Raue, 2011 +%% Send feedback to christian°raue@gmail°com (after being exposed to gravity). +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c 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.3c or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status 'maintained'. +%% +%% The Current Maintainer of this work is Christian Raue. +%% +%% This work consists of gradientframe.dtx and the derived file +%% gradientframe.sty. +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{gradientframe}[2011/02/10 v0.1a simple gradient frames around objects] +\RequirePackage{color} +\newcommand{\gradientframe}[2][0mm]{% +\definecolor{gray98}{gray}{.98}% +\definecolor{gray96}{gray}{.96}% +\definecolor{gray94}{gray}{.94}% +\definecolor{gray92}{gray}{.92}% +\definecolor{gray90}{gray}{.90}% +\definecolor{gray88}{gray}{.88}% +\definecolor{gray86}{gray}{.86}% +\definecolor{gray84}{gray}{.84}% +\definecolor{gray82}{gray}{.82}% +\definecolor{gray80}{gray}{.80}% +\definecolor{gray78}{gray}{.78}% +\definecolor{gray76}{gray}{.76}% +\definecolor{gray74}{gray}{.74}% +\definecolor{gray72}{gray}{.72}% +\definecolor{gray70}{gray}{.70}% +\newdimen\lineWidth% +\lineWidth=0.3px% +\newdimen\borderSpacing% +\borderSpacing=#1% +\fboxrule=\lineWidth% +\fboxsep=\lineWidth% +\fcolorbox{gray98}{gray96}{% +\fcolorbox{gray94}{gray92}{% +\fcolorbox{gray90}{gray88}{% +\fcolorbox{gray86}{gray84}{% +\fcolorbox{gray82}{gray80}{% +\fcolorbox{gray78}{gray76}{% +\fcolorbox{gray74}{gray72}{% +\fboxrule=\lineWidth% +\fboxsep=\borderSpacing% +\fcolorbox{gray70}{white}{% +#2% +}% +}% +}% +}% +}% +}% +}% +}% +}% +\endinput +%% +%% End of file `gradientframe.sty'. |