summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/elements/elements.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/elements/elements.sty')
-rw-r--r--macros/latex/contrib/elements/elements.sty35
1 files changed, 19 insertions, 16 deletions
diff --git a/macros/latex/contrib/elements/elements.sty b/macros/latex/contrib/elements/elements.sty
index f5e8acc2a8..22fab8c772 100644
--- a/macros/latex/contrib/elements/elements.sty
+++ b/macros/latex/contrib/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}