| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
\NeedsTeXFormat{LaTeX2e} |
|---|
| 17 |
|
|---|
| 18 |
\ProvidesPackage{pstricks} |
|---|
| 19 |
[2008/01/01 v0.35 LaTeX wrapper for `PSTricks' (RN,HV)] |
|---|
| 20 |
|
|---|
| 21 |
\DeclareOption{plain}{ |
|---|
| 22 |
\input{pstricks.tex} |
|---|
| 23 |
\ProvidesFile{pstricks.tex} |
|---|
| 24 |
[\filedate\space v\fileversion\space `PSTricks' (tvz)] |
|---|
| 25 |
\endinput |
|---|
| 26 |
} |
|---|
| 27 |
\DeclareOption*{\OptionNotUsed} |
|---|
| 28 |
|
|---|
| 29 |
\ProcessOptions\relax |
|---|
| 30 |
|
|---|
| 31 |
\@ifundefined{PSTricksLoaded} |
|---|
| 32 |
{ |
|---|
| 33 |
\let\saved@scalebox\scalebox |
|---|
| 34 |
\input{pstricks.tex} |
|---|
| 35 |
\ProvidesFile{pstricks.tex} |
|---|
| 36 |
[\filedate\space v\fileversion\space `PSTricks' (tvz)] |
|---|
| 37 |
\IfFileExists{pstricks.pro}{ |
|---|
| 38 |
\ProvidesFile{pstricks.pro} |
|---|
| 39 |
[2008/01/01 v. 1.03, PostScript prologue file (hv)] |
|---|
| 40 |
\@addtofilelist{pstricks.pro}}{} |
|---|
| 41 |
\IfFileExists{pst-dots.pro}{ |
|---|
| 42 |
\ProvidesFile{pst-dots.pro} |
|---|
| 43 |
[2006/12/19 v. 2.00, PostScript prologue file (hv)] |
|---|
| 44 |
\@addtofilelist{pst-dots.pro}}{} |
|---|
| 45 |
\IfFileExists{pst-algparser.pro}{ |
|---|
| 46 |
\ProvidesFile{pst-algparser.pro} |
|---|
| 47 |
[2008/01/01 v. 0.01, PostScript prologue file (hv)] |
|---|
| 48 |
\@addtofilelist{pst-algparser.pro}}{} |
|---|
| 49 |
{ |
|---|
| 50 |
\let\psscalebox=\scalebox |
|---|
| 51 |
\let\psscaleboxto=\scaleboxto |
|---|
| 52 |
}{} |
|---|
| 53 |
\let\scalebox\saved@scalebox |
|---|
| 54 |
}{} |
|---|
| 55 |
|
|---|
| 56 |
\IfFileExists{xcolor.sty}{ |
|---|
| 57 |
\def\pst@ColorPackage{xcolor} |
|---|
| 58 |
\PassOptionsToPackage{override}{xcolor} |
|---|
| 59 |
}{\def\pst@ColorPackage{color}} |
|---|
| 60 |
|
|---|
| 61 |
\newif\ifpst@DIA\pst@DIAfalse |
|---|
| 62 |
\DeclareOption{DIA}{\pst@DIAtrue} |
|---|
| 63 |
\DeclareOption{noxcolor}{\def\pst@ColorPackage{color}} |
|---|
| 64 |
\DeclareOption{vtex}{ |
|---|
| 65 |
\def\psfs@solid{\pst@fill{\pst@usecolor\psfillcolor fill }} |
|---|
| 66 |
\def\psfs@eofill{\pst@fill{\pst@usecolor\psfillcolor eofill }} |
|---|
| 67 |
\def\psfs@shape{\pst@fill{\pst@usecolor\psfillcolor fill }} |
|---|
| 68 |
} |
|---|
| 69 |
\DeclareOption*{ |
|---|
| 70 |
\PassOptionsToPackage\CurrentOption{\pst@ColorPackage}} |
|---|
| 71 |
\ProcessOptions\relax |
|---|
| 72 |
|
|---|
| 73 |
\RequirePackage{\pst@ColorPackage} |
|---|
| 74 |
|
|---|
| 75 |
\@ifpackageloaded{xcolor}{ |
|---|
| 76 |
\@ifpackagelater{xcolor}{2004/05/02} |
|---|
| 77 |
{ |
|---|
| 78 |
\let\pst@getcolor\XC@getcolor |
|---|
| 79 |
\let\pst@usecolor\XC@usecolor |
|---|
| 80 |
} |
|---|
| 81 |
{ |
|---|
| 82 |
\PackageError{pstricks}{ |
|---|
| 83 |
*************************************************\MessageBreak |
|---|
| 84 |
* Your Version of `xcolor.sty' is too old!\MessageBreak |
|---|
| 85 |
* You need the version from 2004/05/02 or newer\MessageBreak |
|---|
| 86 |
* or use: \string\usepackage[noxcolor]{pstricks}\MessageBreak |
|---|
| 87 |
*************************************************}{} |
|---|
| 88 |
} |
|---|
| 89 |
}{ |
|---|
| 90 |
\def\pst@getcolor#1#2{ |
|---|
| 91 |
\@ifundefined{\string\color@#1} |
|---|
| 92 |
{\@pstrickserr{Color `#1' not defined}\@eha} |
|---|
| 93 |
{\edef#2{#1}}} |
|---|
| 94 |
\def\pst@usecolor#1{\expandafter\expandafter\expandafter\c@lor@to@ps |
|---|
| 95 |
\csname\string\color@#1\endcsname\@@\space} |
|---|
| 96 |
\definecolor{darkgray}{gray}{.25} |
|---|
| 97 |
\definecolor{gray}{gray}{.5} |
|---|
| 98 |
\definecolor{lightgray}{gray}{.75} |
|---|
| 99 |
} |
|---|
| 100 |
|
|---|
| 101 |
\definecolor{gradbegin}{rgb}{0,1,1} |
|---|
| 102 |
\definecolor{gradend}{rgb}{0,.1,.95} |
|---|
| 103 |
|
|---|
| 104 |
\@ifundefined{xglobal} |
|---|
| 105 |
{\def\xglobal#1#2#3#4 |
|---|
| 106 |
{#1{#2}{#3}{#4} |
|---|
| 107 |
\expandafter\global\expandafter\let\csname\string\color@#2 |
|---|
| 108 |
\expandafter\endcsname\csname\string\color@#2\endcsname}}{} |
|---|
| 109 |
|
|---|
| 110 |
\def\newgray#1{ |
|---|
| 111 |
\expandafter\gdef\csname #1\endcsname{\color{#1}} |
|---|
| 112 |
\xglobal\definecolor{#1}{gray}} |
|---|
| 113 |
|
|---|
| 114 |
\def\newrgbcolor#1#2{ |
|---|
| 115 |
\expandafter\gdef\csname #1\endcsname{\color{#1}} |
|---|
| 116 |
\edef\@tempa{\noexpand\newrgbcolorx{#1}#2\noexpand\@@}\@tempa} |
|---|
| 117 |
\def\newrgbcolorx#1#2 #3 #4\@@{ |
|---|
| 118 |
\xglobal\definecolor{#1}{rgb}{#2,#3,#4}} |
|---|
| 119 |
|
|---|
| 120 |
\def\newcmykcolor#1#2{ |
|---|
| 121 |
\expandafter\gdef\csname #1\endcsname{\color{#1}} |
|---|
| 122 |
\edef\@tempa{\noexpand\newcmykcolorx{#1}#2\noexpand\@@}\@tempa} |
|---|
| 123 |
\def\newcmykcolorx#1#2 #3 #4 #5\@@{ |
|---|
| 124 |
\xglobal\definecolor{#1}{cmyk}{#2,#3,#4,#5}} |
|---|
| 125 |
|
|---|
| 126 |
\def\newhsbcolor#1#2{ |
|---|
| 127 |
\expandafter\gdef\csname #1\endcsname{\color{#1}} |
|---|
| 128 |
\edef\@tempa{\noexpand\newhsbcolorx{#1}#2\noexpand\@@}\@tempa} |
|---|
| 129 |
\def\newhsbcolorx#1#2 #3 #4\@@{ |
|---|
| 130 |
\xglobal\definecolor{#1}{hsb}{#2,#3,#4}} |
|---|
| 131 |
|
|---|
| 132 |
\definecolor{black}{gray}{0} |
|---|
| 133 |
\definecolor{darkgray}{gray}{.25} |
|---|
| 134 |
\definecolor{gray}{gray}{.5} |
|---|
| 135 |
\definecolor{lightgray}{gray}{.75} |
|---|
| 136 |
\definecolor{white}{gray}{1} |
|---|
| 137 |
\definecolor{red}{rgb}{1,0,0} |
|---|
| 138 |
\definecolor{green}{rgb}{0,1,0} |
|---|
| 139 |
\definecolor{blue}{rgb}{0,0,1} |
|---|
| 140 |
|
|---|
| 141 |
|
|---|
| 142 |
|
|---|
| 143 |
\definecolor{yellow}{cmyk}{0,0,1,0} |
|---|
| 144 |
\definecolor{cyan}{cmyk}{1,0,0,0} |
|---|
| 145 |
\definecolor{magenta}{cmyk}{0,1,0,0} |
|---|
| 146 |
|
|---|
| 147 |
\renewcommand*\black{\color{black}} |
|---|
| 148 |
\renewcommand*\darkgray{\color{darkgray}} |
|---|
| 149 |
\renewcommand*\gray{\color{gray}} |
|---|
| 150 |
\renewcommand*\lightgray{\color{lightgray}} |
|---|
| 151 |
\renewcommand*\white{\color{white}} |
|---|
| 152 |
\renewcommand*\blue{\color{blue}} |
|---|
| 153 |
\renewcommand*\red{\color{red}} |
|---|
| 154 |
\renewcommand*\green{\color{green}} |
|---|
| 155 |
\renewcommand*\yellow{\color{yellow}} |
|---|
| 156 |
\renewcommand*\magenta{\color{magenta}} |
|---|
| 157 |
\renewcommand*\cyan{\color{cyan}} |
|---|
| 158 |
|
|---|
| 159 |
\AtBeginDocument{ |
|---|
| 160 |
\psset{fillcolor=white} |
|---|
| 161 |
\let\pst@endcolor=\relax |
|---|
| 162 |
|
|---|
| 163 |
|
|---|
| 164 |
} |
|---|
| 165 |
|
|---|
| 166 |
\endinput |
|---|
| 167 |
|
|---|
| 168 |
|
|---|
| 169 |
|
|---|