summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/elements/elements.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-29 21:45:08 +0000
committerKarl Berry <karl@freefriends.org>2022-01-29 21:45:08 +0000
commitfc38dbc74190decb239e2a6631f2a943d6715165 (patch)
treea8df705083fadc3691c791646d3edcb044bff777 /Master/texmf-dist/tex/latex/elements/elements.sty
parent9208778b9d643393dd86ba1128df586f368dd152 (diff)
elements (29jan22)
git-svn-id: svn://tug.org/texlive/trunk@61792 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/elements/elements.sty')
-rw-r--r--Master/texmf-dist/tex/latex/elements/elements.sty35
1 files changed, 19 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/elements/elements.sty b/Master/texmf-dist/tex/latex/elements/elements.sty
index f5e8acc2a8d..22fab8c7728 100644
--- a/Master/texmf-dist/tex/latex/elements/elements.sty
+++ b/Master/texmf-dist/tex/latex/elements/elements.sty
@@ -5,18 +5,18 @@
%
% --------------------------------------------------------------------------
% Clemens Niederberger
-% Web: https://github.com/cgnieder/elements/
-% E-Mail: contact@mychemistry.eu
+% Web: https://github.com/cgnieder/elemens
+% E-Mail: clemens@cnltx.de
% --------------------------------------------------------------------------
-% Copyright 2011--2019 Clemens Niederberger
+% Copyright 2011--2022 Clemens Niederberger
%
% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
+% conditions of the LaTeX Project Public License, either version 1.3c
% of this license or (at your option) 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.
+% and version 1.3c or later is part of all distributions of LaTeX
+% version 2008/05/04 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
@@ -25,8 +25,8 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-\newcommand*\@elements@date{2019/10/14}
-\newcommand*\@elements@version{v0.3}
+\newcommand*\@elements@date{2022/01/29}
+\newcommand*\@elements@version{v0.4}
\newcommand*\@elements@description{properties of chemical elements}
\ProvidesPackage{elements}[%
@@ -57,7 +57,7 @@
}
\@elements@tmpa
-% chack for following !:
+% check for following !:
\newrobustcmd*\@elements@ifbang[1]{\@ifnextchar!{\@firstoftwo{#1}}}
% --------------------------------------------------------------------------
@@ -255,20 +255,23 @@
}
\newrobustcmd*\@elements@getelconf[1]{%
- \forcsvlist{\@elements@getelconf@aux}{#1}%
+ \@elements@getelconf@aux#1,\q@stop
}
-\newrobustcmd*\@elements@getelconf@aux[1]{%
+\protected\def\@elements@getelconf@aux#1,#2\q@stop{%
\stepcounter{@elements@shell@number}%
\setcounter{@elements@orbital@type}{0}%
\@elements@parse@elconf#1+\q@stop
+ \ifblank{#2}{}{\@elements@getelconf@aux#2\q@stop}%
}
\protected\def\@elements@parse@elconf#1+#2\q@stop{%
- \eappto\@elements@current@elconf{\arabic{@elements@shell@number}}%
- \eappto\@elements@current@elconf
- {\expandonce{\csname @elements@angmom@\arabic{@elements@orbital@type}\endcsname}}%
- \appto\@elements@current@elconf{^{#1}}%
+ \ifblank{#1}{}{%
+ \eappto\@elements@current@elconf{\arabic{@elements@shell@number}}%
+ \eappto\@elements@current@elconf
+ {\expandonce{\csname @elements@angmom@\arabic{@elements@orbital@type}\endcsname}}%
+ \appto\@elements@current@elconf{^{#1}}%
+ }%
\stepcounter{@elements@orbital@type}%
\ifblank{#2}
{}
@@ -316,7 +319,7 @@
}
% ==========================================================================
-% define the elements properties for elements 1 -- 112
+% define the elements properties for elements 1 -- 118
%
% declare atom symbols:
\DeclareAtomSymbol{1}{H}