blob: fd9d3237599ef49088026a4cbef62e4746e92006 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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'.
|