| 1 |
% -------------------------------------------------------------------------------------------------- |
| 2 |
% subfile of pgf-PeriodicTable package ---------------------------------------------------------- |
| 3 |
% -------------------------------------------------------------------------------------------------- |
| 4 |
% Macro for loading pgf-PeriodicTable 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 pgfPTlibrary.X.tex is included, provided this has |
| 20 |
% not been done earlier. |
| 21 |
% |
| 22 |
% \usepgfPTlibrary{elements} |
| 23 |
% \usepgflPTibrary[elements,plot] |
| 24 |
% |
| 25 |
\def\usepgfPTlibrary#1{\ignorespaces% |
| 26 |
\edef\pgfPT@list{#1}% |
| 27 |
\@for\pgfPT@temp:=\pgfPT@list\do{% |
| 28 |
\ifx\pgfPT@temp\@empty\relax% |
| 29 |
\else% |
| 30 |
\expandafter\ifx\csname pgfPT@library@\pgfPT@temp @loaded\endcsname\relax% |
| 31 |
\expandafter\let\csname pgfPT@library@\pgfPT@temp @loaded\endcsname=\@empty% |
| 32 |
\expandafter\edef\csname pgfPT@library@#1@atcode\endcsname{\the\catcode`\@}% |
| 33 |
\expandafter\edef\csname pgfPT@library@#1@barcode\endcsname{\the\catcode`\|}% |
| 34 |
\expandafter\edef\csname pgfPT@library@#1@dollarcode\endcsname{\the\catcode`\$}% |
| 35 |
\catcode`\@=11% |
| 36 |
\catcode`\|=12% |
| 37 |
\catcode`\$=3% |
| 38 |
\pgfutil@InputIfFileExists{pgfPT.library.\[email protected]}{}{% |
| 39 |
\PackageError{pgfPT}{I did not find the pgfPT library |
| 40 |
'\pgfPT@temp'. I looked for the file named |
| 41 |
pgfPTlibrary.\[email protected], but could not find it in in |
| 42 |
the current texmf trees.} |
| 43 |
}% |
| 44 |
\catcode`\@=\csname pgfPT@library@#1@atcode\endcsname% |
| 45 |
\catcode`\|=\csname pgfPT@library@#1@barcode\endcsname% |
| 46 |
\catcode`\$=\csname pgfPT@library@#1@dollarcode\endcsname% |
| 47 |
\fi% |
| 48 |
\fi% |
| 49 |
}% |
| 50 |
}% |
| 51 |
% <---------------- Taken and adapted from pgf (pgfutil-common.tex) |
| 52 |
\endinput |