summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pgf-periodictable/pgfPT.input.library.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-21 20:53:00 +0000
committerKarl Berry <karl@freefriends.org>2023-02-21 20:53:00 +0000
commit307d931f6e784fa18a29b2675473afaa8a25aba1 (patch)
tree9f5f3afc75809f57d9d3435f4d82fe134a6f5b67 /Master/texmf-dist/doc/latex/pgf-periodictable/pgfPT.input.library.tex
parent5dd5c8504b7ea6fb177c99f4db0c8fd0d48bf548 (diff)
pgf-periodictable (21feb23) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2022.final@66035 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/pgf-periodictable/pgfPT.input.library.tex')
-rw-r--r--Master/texmf-dist/doc/latex/pgf-periodictable/pgfPT.input.library.tex52
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pgf-periodictable/pgfPT.input.library.tex b/Master/texmf-dist/doc/latex/pgf-periodictable/pgfPT.input.library.tex
new file mode 100644
index 00000000000..682bfe55383
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pgf-periodictable/pgfPT.input.library.tex
@@ -0,0 +1,52 @@
+% --------------------------------------------------------------------------------------------------
+% subfile of pgf-PeriodicTable package ----------------------------------------------------------
+% --------------------------------------------------------------------------------------------------
+% Macro for loading pgf-PeriodicTable libraries --------------------------------------------------
+% --------------------------------------------------------------------------------------------------
+% --------------------------------------------------------------------------------------------------
+% --------------------------------------------------------------------------------------------------
+%
+%
+% Taken and adapted from pgf ---------------->
+% Library files inclusion
+% Include a library file.
+%
+% #1 = List of names of library file.
+%
+% Description:
+%
+% This command includes a list of library files. For each file X in the
+% list, the file pgfPTlibrary.X.tex is included, provided this has
+% not been done earlier.
+%
+% \usepgfPTlibrary{elements}
+% \usepgflPTibrary[elements,plot]
+%
+\def\usepgfPTlibrary#1{\ignorespaces%
+ \edef\pgfPT@list{#1}%
+ \@for\pgfPT@temp:=\pgfPT@list\do{%
+ \ifx\pgfPT@temp\@empty\relax%
+ \else%
+ \expandafter\ifx\csname pgfPT@library@\pgfPT@temp @loaded\endcsname\relax%
+ \expandafter\let\csname pgfPT@library@\pgfPT@temp @loaded\endcsname=\@empty%
+ \expandafter\edef\csname pgfPT@library@#1@atcode\endcsname{\the\catcode`\@}%
+ \expandafter\edef\csname pgfPT@library@#1@barcode\endcsname{\the\catcode`\|}%
+ \expandafter\edef\csname pgfPT@library@#1@dollarcode\endcsname{\the\catcode`\$}%
+ \catcode`\@=11%
+ \catcode`\|=12%
+ \catcode`\$=3%
+ \pgfutil@InputIfFileExists{pgfPTlibrary.\pgfPT@temp.tex}{}{%
+ \PackageError{pgfPT}{I did not find the pgfPT library
+ '\pgfPT@temp'. I looked for the file named
+ pgfPTlibrary.\pgfPT@temp.tex, but could not find it in in
+ the current texmf trees.}
+ }%
+ \catcode`\@=\csname pgfPT@library@#1@atcode\endcsname%
+ \catcode`\|=\csname pgfPT@library@#1@barcode\endcsname%
+ \catcode`\$=\csname pgfPT@library@#1@dollarcode\endcsname%
+ \fi%
+ \fi%
+ }%
+}%
+% <---------------- Taken and adapted from pgf (pgfutil-common.tex)
+\endinput