summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/skeyval/skeyval-pstkey.tex
blob: 83fd3dfff4459d36f630d0e4609e3394426c2dde (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
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
% This is file 'skeyval-pstkey.tex', version 1.0, 2012/10/15.              %
%                                                                          %
% This package and accompanying files may be distributed and/or            %
% modified under the conditions of the LaTeX Project Public License,       %
% either version 1.3 of this license or any later version. The latest      %
% version of this license is in http://www.latex-project.org/lppl.txt      %
% and version 1.3 or later is part of all distributions of LaTeX           %
% version 2005/12/01 or later.                                             %
%                                                                          %
% The LPPL maintenance status of this software is 'author-maintained'.     %
%                                                                          %
% This software is provided 'as it is', without warranty of any kind,      %
% either expressed or implied, including, but not limited to, the          %
% implied warranties of merchantability and fitness for a particular       %
% purpose.                                                                 %
%                                                                          %
% The following files constitute the skeyval bundle and must be            %
% distributed as a whole:                                                  %
%                                                                          %
%  readme, skeyval.sty, skeyval-core.tex, skeyval-for.tex,                 %
%  skeyval-view.sty, skeyval-ltxpatch.sty, skeyval-ltxcmds.tex,            %
%  skeyval-pstkey.sty, skeyval-pstkey.tex, skeyval-testclass.cls,          %
%  and skeyval-testpkg.sty.                                                %
%                                                                          %
% Copyright (c) 2010-2012 Ahmed Musa (amusa22@gmail.com).                  %
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%

\csname skeyval-pstkey-loaded\endcsname
\expandafter\let\csname skeyval-pstkey-loaded\endcsname\endinput

\edef\skv@pst@restorecatcodes{%
  \catcode`\noexpand\@\the\catcode`\@\relax
  \let\noexpand\skv@pst@restorecatcodes\relax
}
\catcode`\@=11\relax

\def\skv@@afterfi#1\fi{\fi#1}
\def\skv@@afterelse#1\else#2\fi{\fi#1}

\ifx\ProvidesFile\@undefined\skv@@afterelse
  \message{File 'skeyval-pstkey.tex' 2012/10/15 v1.1
    PSTricks specialization of skeyval package (AM)}
  \input skeyval-core
\else\skv@@afterfi
  \ProvidesFile{skeyval-pstkey.tex}
    [2012/10/15 v1.1 PSTricks specialization of skeyval (AM)]
  \@addtofilelist{skeyval-pstkey.tex}
  \@ifpackageloaded{skeyval}{}{\RequirePackage{skeyval}}
\fi

\def\pst@famlist{}
\def\pst@addfams#1{%
  \skvcommaloop{#1}\skvtempa{%
    \skvxifin{,\skvtempa,}{,\pst@famlist,}{}{%
      \edef\pst@famlist{\pst@famlist,\skvtempa}%
    }%
  }%
}
\def\psset{\skvexpandbracenext{\skv@testopt\pss@t}\pst@famlist}
\def\pss@t[#1]#2{\skvsetkeys+[psset]{#1}{#2}\ignorespaces}
\def\@psset#1,\@nil{%
  \edef\skvtempa{\skvsetkeys+[psset]{\pst@famlist}}%
  \skvtempa{#1}%
}

\skv@pst@restorecatcodes
\endinput

%% End of file 'skeyval-pstkey.tex'.