Debian Codegraph @

texmf-dist/tex/latex/pgf-spectra/pgf-spectra.input.library.tex

raw
1 % --------------------------------------------------------------------------------------------------
2 % subfile of pgf-spectra package -----------------------------------------------------------------
3 % --------------------------------------------------------------------------------------------------
4 % Macro for loading pgf-spectra libraries --------------------------------------------------------
5 % --------------------------------------------------------------------------------------------------
6 % --------------------------------------------------------------------------------------------------
7 % --------------------------------------------------------------------------------------------------
8 %
9 %
10 % Taken and adapted from pgf ---------------->
11 % Library files inclusion
12 % Include a library file.
13 %
14 % #1 = List of names of library file.
15 %
16 % Description:
17 %
18 % This command includes a list of library files. For each file X in the
19 % list, the file pgf-spectra.library.X.tex is included, provided this has
20 % not been done earlier.
21 %
22 % \usepgfspectralibrary{data}
23 % \usepgfspectralibrary{data,CIE]
24 %
25 \def\usepgfspectralibrary#1{\ignorespaces%
26 \edef\pgfspectra@list{#1}%
27 \@for\pgfspectra@temp:=\pgfspectra@list\do{%
28 \ifx\pgfspectra@temp\@empty\relax%
29 \else%
30 \expandafter\ifx\csname pgfspectra@library@\pgfspectra@temp @loaded\endcsname\relax%
31 \expandafter\let\csname pgfspectra@library@\pgfspectra@temp @loaded\endcsname=\@empty%
32 \expandafter\edef\csname pgfspectra@library@#1@atcode\endcsname{\the\catcode`\@}%
33 \expandafter\edef\csname pgfspectra@library@#1@barcode\endcsname{\the\catcode`\|}%
34 \expandafter\edef\csname pgfspectra@library@#1@dollarcode\endcsname{\the\catcode`\$}%
35 \catcode`\@=11%
36 \catcode`\|=12%
37 \catcode`\$=3%
38 \pgfutil@InputIfFileExists{pgf-spectra.library.\[email protected]}{}{%
39 \PackageError{pgf-spectra}{I did not find the pgf-spectra library
40 '\pgfspectra@temp'. I looked for the file named
41 pgf-spectra.library.\[email protected], but could not find it in in
42 the current texmf trees.}
43 }%
44 \catcode`\@=\csname pgfspectra@library@#1@atcode\endcsname%
45 \catcode`\|=\csname pgfspectra@library@#1@barcode\endcsname%
46 \catcode`\$=\csname pgfspectra@library@#1@dollarcode\endcsname%
47 \fi%
48 \fi%
49 }%
50 }%
51 % <---------------- Taken and adapted from pgf (pgfutil-common.tex)
52 \endinput