texlive[61792] Master/texmf-dist: elements (29jan22)

commits+karl at tug.org commits+karl at tug.org
Sat Jan 29 22:45:09 CET 2022


Revision: 61792
          http://tug.org/svn/texlive?view=revision&revision=61792
Author:   karl
Date:     2022-01-29 22:45:08 +0100 (Sat, 29 Jan 2022)
Log Message:
-----------
elements (29jan22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/elements/README
    trunk/Master/texmf-dist/tex/latex/elements/elements.sty
    trunk/Master/texmf-dist/tex/latex/elements/elements_names_brazil.def
    trunk/Master/texmf-dist/tex/latex/elements/elements_names_english.def
    trunk/Master/texmf-dist/tex/latex/elements/elements_names_french.def
    trunk/Master/texmf-dist/tex/latex/elements/elements_names_german.def
    trunk/Master/texmf-dist/tex/latex/elements/elements_names_portuges.def
    trunk/Master/texmf-dist/tex/latex/elements/elements_names_spanish.def

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/elements/elements-manual.pdf
    trunk/Master/texmf-dist/doc/latex/elements/elements-manual.tex

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/elements/elements_en.pdf
    trunk/Master/texmf-dist/doc/latex/elements/elements_en.tex

Modified: trunk/Master/texmf-dist/doc/latex/elements/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elements/README	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/doc/latex/elements/README	2022-01-29 21:45:08 UTC (rev 61792)
@@ -1,22 +1,22 @@
 --------------------------------------------------------------------------
-the ELEMENTS package v0.3 2019/10/14
+the ELEMENTS package v0.4 2022/01/29
 
   retrieve different properties of chemical elements
 
 --------------------------------------------------------------------------
 Clemens Niederberger
-Web:    https://github.com/cgnieder/elements/
-E-Mail: contact at mychemistry.eu
+Web:    https://github.com/cgnieder/elemens
+E-Mail: clemens at 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'.
 

Added: trunk/Master/texmf-dist/doc/latex/elements/elements-manual.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/elements/elements-manual.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elements/elements-manual.pdf	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/doc/latex/elements/elements-manual.pdf	2022-01-29 21:45:08 UTC (rev 61792)

Property changes on: trunk/Master/texmf-dist/doc/latex/elements/elements-manual.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/elements/elements-manual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elements/elements-manual.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/elements/elements-manual.tex	2022-01-29 21:45:08 UTC (rev 61792)
@@ -0,0 +1,331 @@
+% arara: pdflatex: { action: nonstopmode }
+% arara: biber
+% arara: pdflatex: { action: nonstopmode }
+% arara: pdflatex: { action: nonstopmode }
+% --------------------------------------------------------------------------
+% the ELEMENTS package
+% 
+%   retrieve different properties of chemical elements
+% 
+% --------------------------------------------------------------------------
+% Clemens Niederberger
+% Web:    https://github.com/cgnieder/elemens
+% E-Mail: clemens at cnltx.de
+% --------------------------------------------------------------------------
+% 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.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.3c or later is part of all distributions of LaTeX
+% version 2008/05/04 or later.
+% 
+% This work has the LPPL maintenance status `maintained'.
+% 
+% The Current Maintainer of this work is Clemens Niederberger.
+% --------------------------------------------------------------------------
+% If you have any ideas, questions, suggestions or bugs to report, please
+% feel free to contact me.
+% --------------------------------------------------------------------------
+\documentclass[load-preamble+]{cnltx-doc}
+\usepackage{elements}
+
+\setcnltx{
+  package = elements ,
+  authors = Clemens Niederberger ,
+  email   = clemens at cnltx.de ,
+  url     = https://github.com/cgnieder/elements ,
+  add-cmds = {
+    atomicnumber,
+    DeclareAtomIsotopes,
+    DeclareAtomName,
+    DeclareAtomSymbol,
+    DeclareElectronDistribution,
+    elconf,
+    elementname,
+    elementsymbol,
+    mainelementisotope,
+    printangularmomentum,
+    saveatomicnumber,
+    saveelementisotopes,
+    saveelementname,
+    saveelementsymbol,
+    savemainelementisotope,
+    setangularmomentum,
+    setatomisotopes,
+    setatomname,
+    setatomsymbol,
+    setelectrondistribution,
+    writeelconf,
+    Z
+  } ,
+  add-silent-cmds = {
+    endhead, foo, ifnumless, LTleft, LTright, midrule, theelement, toprule,
+    whileboolexpr
+  } ,
+  add-silent-envs = { longtable, landscape } ,
+  abstract = {%
+    This package provides means for retrieving properties of chemical elements
+    like atomic number, element symbol, element name, electron distribution or
+    isotope number.  Properties are defined for the elements up to the atomic
+    number~118.
+
+    This package is a spin-off of the package \pkg{bohr}~\cite{pkg:bohr} by
+    the same author.
+  } ,
+  index-setup = {
+     othercode = \footnotesize ,
+     level = \addsec ,
+     noclearpage
+  } ,
+  makeindex-setup = {
+     columns = 3 ,
+     columnsep = 1em
+  }
+}
+
+\makeatletter
+\def\libertine at figurestyle{LF}
+\RequirePackage{amsmath}
+\undef\lvert \undef\lVert
+\undef\rvert \undef\rVert
+\RequirePackage[libertine]{newtxmath}
+\def\libertine at figurestyle{OsF}
+\makeatother
+
+\usepackage{array,booktabs,longtable}
+\usepackage{lscape}
+
+\defbibheading{bibliography}{\addsec{References}}
+
+\begin{document}
+
+\section{Licence and Requirements}
+\license
+
+\elements\ loads the packages \pkg{etoolbox}~\cite{pkg:etoolbox} and
+\pkg{translations}~\cite{pkg:translations}.
+
+\section{Element Names}
+
+\begin{commands}
+  \command{elementname}[\Marg{\meta{atomic number}|\meta{element symbol}}]
+    Prints the element name of a given element as defined with \cs{setatomname}.
+  \command{setatomname}[\oarg{alt.\@ name}\marg{atomic number}\marg{element
+    name}]
+    Define or redefine the name of an element.  If \meta{element name}
+    contains non-ascii symbols the optional argument \meta{alt.\@ name} must
+    be given.  In this case \meta{alt.\@ name} must be used in \elements'
+    other macros where an element's name can be given as argument.
+  \command{DeclareAtomName}[\oarg{alt.\@ name}\marg{atomic
+    number}\marg{element name}]
+    This is the same as \cs{setatomname} but used before begin document or in
+    packages/classes.
+  \command{saveelementname}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
+      symbol}|\meta{element name}}]
+    Saves the name of the given element as replacement text for the macro
+    \meta{cs}.
+\end{commands}
+
+\begin{example}[side-by-side]
+  \elementname{Cu} \par
+  \elementname{11} \par
+  \saveelementname\foo{28}
+  \ttfamily\meaning\foo
+\end{example}
+
+\section{Element Symbols}
+
+\begin{commands}
+  \command{elementsymbol}[\Marg{\meta{atomic number}|\meta{element name}}]
+    Prints the element symbol of a given element as defined with \cs{setatomsymbol}.
+  \command{setatomsymbol}[\marg{atomic number}\marg{element symbol}]
+    Define or redefine the symbol of an element.
+  \command{DeclareAtomSymbol}[\marg{atomic number}\marg{element symbol}]
+    This is the same as \cs{setatomsymbol} but used before begin document or in
+    packages/classes.
+  \command{saveelementsymbol}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
+      symbol}|\meta{element name}}]
+    Saves the symbol of the given element as replacement text for the macro
+    \meta{cs}.
+\end{commands}
+
+\begin{example}[side-by-side]
+  \elementsymbol{13} \par
+  \elementsymbol{Sulfur} \par
+  \saveelementsymbol\foo{83}
+  \ttfamily\meaning\foo
+\end{example}
+
+\section{Atomic Numbers}
+
+\begin{commands}
+  \command{atomicnumber}[\Marg{\meta{element symbol}|\meta{element name}}]
+    Prints the atomic number of a given element.
+  \command{Z}[\Marg{\meta{element symbol}|\meta{element name}}]
+    An alias of \cs{atomicnumber} but only defined at begin document and only
+    if it isn't defined already.
+  \command{saveatomicnumber}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
+      symbol}|\meta{element name}}]
+    Saves the atomic number of the given element as replacement text for the
+    macro \meta{cs}.
+\end{commands}
+
+\begin{example}[side-by-side]
+  \atomicnumber{U} \par
+  \atomicnumber{Chlorine} \par
+  \saveatomicnumber\foo{Kr}
+  \ttfamily\meaning\foo
+\end{example}
+
+\section{Electron Configuration}
+
+\begin{commands}
+  \command{elconf}[\Marg{\meta{atomic number}|\meta{element
+      symbol}|\meta{element name}}]
+    Typesets the electron configuration of the given element.
+  \command{writeelconf}[\marg{electron distribution}]
+    Typesets the electron distribution \meta{electron distribution}.  The
+    input is the same as described below for \cs{setelectrondistribution}.
+  \command{setelectrondistribution}[\marg{atomic number}\marg{electron distribution}]
+     This set the electron distribution associated with the atom number
+     \meta{atomic number}.  \meta{electron distribution} is a comma-separated
+     list of the number of electrons placed on each shell from inner to outer
+     shell.  For example \verbcode+\setelectrondistribution{3}{2,0,1}+ would
+     be an excited \elementname{3}.   The number of electrons with the same
+     principal quantum number but a different angular quantum number are
+     separated with a \code{+} ordered by the angular quantum number, \ie,
+     first \emph{s}, then \emph{p}, then \emph{d}, and then \emph{f} .
+     \elementname{29}’s distribution would be declared like this: \\
+     \verbcode!\setelectrondistribution{29}{2,2+6,2+6+10,1}!. \\
+     A declaration with \verbcode!\setelectrondistribution{29}{2,8,18,1}!
+     would work but then \verbcode!\elconf{29}! would give the wrong results.
+  \command{DeclareElectronDistribution}
+    This is the same as \cs{setelectrondistribution} but used before begin
+    document or in packages/classes.
+  \command{printangularmomentum}[\marg{angular momentum}]
+    \sinceversion{0.1e}This command is used be \cs{elconf} and
+    \cs{writeelconf} for typesetting $\printangularmomentum{s}$,
+    $\printangularmomentum{p}$, $\printangularmomentum{d}$, \ldots{} You can
+    redefine it if you want to change how those functions are typeset (keeping
+    in mind that it will be used in \emph{math mode}).  The initial definition
+    is:\par
+    \verbcode+\newcommand*\printangularmomentum[1]{\mathrm{#1}}+
+\end{commands}
+
+\begin{example}[side-by-side]
+  \writeelconf{2,2+6,2+6+7} \par
+  \elconf{Cl}
+\end{example}
+
+There is currently \emph{no way} to get the electron configuration in the
+shortened way (\eg:
+[Ar]$\printangularmomentum{d}^{10}4\printangularmomentum{s}^1$).
+
+\section{Isotope Lists}
+
+\begin{commands}
+  \command{setatomisotopes}[\marg{atomic number}\marg{isotope list}]
+    Defines or redefines the isotope list for a given element.  \meta{isotope
+      list} should be a comma seperated list of integers.  One of the integers
+    may be preceded with a \code{!} to mark the main isotope for the given
+    element: \verbcode+\setatomisotopes{6}{10,11,!12,13,14,15,16}+
+  \command{DeclareAtomIsotopes}[\marg{atomic number}\marg{isotope list}]
+    This is the same as \cs{setatomisotopes} but used before begin document or
+    in packages/classes.
+  \command{saveelementisotopes}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
+      symbol}|\meta{element name}}]
+    Saves the isotope list of the given element as replacement text for the
+    macro \meta{cs}.
+  \command{savemainelementisotope}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
+      symbol}|\meta{element name}}]
+    Saves the main isotope of the given element as replacement text for the
+    macro \meta{cs}.  If the isotope list of the element contains no main
+    isotope \meta{cs} will be equivalent to \cs*{@empty}.
+  \command{mainelementisotope}[\Marg{\meta{atomic number}|\meta{element
+      symbol}|\meta{element name}}]
+    Print\sinceversion{0.1d} the main isotope of the given element.  If the
+    isotope list of the element contains no main isotope nothing will be
+    printed.
+\end{commands}
+
+\begin{example}[side-by-side]
+  \ttfamily
+  \saveelementisotopes\foo{C}
+  \meaning\foo\par
+  \savemainelementisotope\foo{C}
+  \meaning\foo\par
+  \normalfont
+  \mainelementisotope{C}
+\end{example}
+
+\clearpage
+
+\section{Supported Languages}
+Currently the following languages are supported:
+\begin{itemize}
+  \item English
+  \item German
+  \item French
+  \item \sinceversion{0.2}Spanish
+  \item \sinceversion{0.3}Portuguese and Brazilian Portuguese
+\end{itemize}
+
+\addsec{Element Properties}
+
+On the following pages a table containing the properties known to \elements\
+is printed. For those interested: the code used to get the table is as follows
+(using the packages \pkg{lscape}~\cite{pkg:lscape},
+\pkg{longtable}~\cite{pkg:longtable} and \pkg{booktabs}~\cite{pkg:booktabs}).
+
+\begin{sourcecode}[gobble=0]
+\setlength\LTleft\fill
+\setlength\LTright\fill
+\newcounter{element}
+\setcounter{element}{1}
+\begin{landscape}
+\begin{longtable}{lllll}
+  \toprule
+    Number & Symbol & Name & Main Isotope & Electron Configuration \\
+  \midrule
+  \endhead
+  \whileboolexpr{test{\ifnumless{\value{element}}{119}}}
+    {
+      \theelement &
+      \elementsymbol{\arabic{element}} &
+      \elementname{\arabic{element}} &
+      \mainelementisotope{\arabic{element}} &
+      \elconf{\arabic{element}}
+      \stepcounter{element} \\
+    }
+    {}
+\end{longtable}
+\end{landscape}
+\end{sourcecode}
+
+\setlength\LTleft\fill
+\setlength\LTright\fill
+\newcounter{element}
+\setcounter{element}{1}
+\begin{landscape}
+\begin{longtable}{lllll}
+  \toprule
+    Number & Symbol & Name & Main Isotope & Electron Configuration \\
+  \midrule
+  \endhead
+  \whileboolexpr{test{\ifnumless{\value{element}}{119}}}
+    {
+      \theelement &
+      \elementsymbol{\arabic{element}} &
+      \elementname{\arabic{element}} &
+      \mainelementisotope{\arabic{element}} &
+      \elconf{\arabic{element}}
+      \stepcounter{element} \\
+    }
+    {}
+\end{longtable}
+\end{landscape}
+
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/latex/elements/elements-manual.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/elements/elements_en.pdf
===================================================================
(Binary files differ)

Deleted: trunk/Master/texmf-dist/doc/latex/elements/elements_en.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/elements/elements_en.tex	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/doc/latex/elements/elements_en.tex	2022-01-29 21:45:08 UTC (rev 61792)
@@ -1,332 +0,0 @@
-% arara: pdflatex: { action: nonstopmode }
-% arara: biber
-% arara: pdflatex: { action: nonstopmode }
-% arara: pdflatex: { action: nonstopmode }
-% --------------------------------------------------------------------------
-% the ELEMENTS package
-% 
-%   retrieve different properties of chemical elements
-% 
-% --------------------------------------------------------------------------
-% Clemens Niederberger
-% Web:    http://www.mychemistry.eu/forums/forum/elements/
-% E-Mail: contact at mychemistry.eu
-% --------------------------------------------------------------------------
-% Copyright 2011--2019 Clemens Niederberger
-% 
-% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% 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.
-% 
-% This work has the LPPL maintenance status `maintained'.
-% 
-% The Current Maintainer of this work is Clemens Niederberger.
-% --------------------------------------------------------------------------
-% If you have any ideas, questions, suggestions or bugs to report, please
-% feel free to contact me.
-% --------------------------------------------------------------------------
-\documentclass[load-preamble+]{cnltx-doc}
-\usepackage[utf8]{inputenc}
-\usepackage{elements}
-
-\setcnltx{
-  package = elements ,
-  authors = Clemens Niederberger ,
-  email   = contact at mychemistry.eu ,
-  url     = https://github.com/cgnieder/elements ,
-  add-cmds = {
-    atomicnumber,
-    DeclareAtomIsotopes,
-    DeclareAtomName,
-    DeclareAtomSymbol,
-    DeclareElectronDistribution,
-    elconf,
-    elementname,
-    elementsymbol,
-    mainelementisotope,
-    printangularmomentum,
-    saveatomicnumber,
-    saveelementisotopes,
-    saveelementname,
-    saveelementsymbol,
-    savemainelementisotope,
-    setangularmomentum,
-    setatomisotopes,
-    setatomname,
-    setatomsymbol,
-    setelectrondistribution,
-    writeelconf,
-    Z
-  } ,
-  add-silent-cmds = {
-    endhead, foo, ifnumless, LTleft, LTright, midrule, theelement, toprule,
-    whileboolexpr
-  } ,
-  add-silent-envs = { longtable, landscape } ,
-  abstract = {%
-    This package provides means for retrieving properties of chemical elements
-    like atomic number, element symbol, element name, electron distribution or
-    isotope number.  Properties are defined for the elements up to the atomic
-    number~118.
-
-    This package is a spin-off of the package \pkg{bohr}~\cite{pkg:bohr} by
-    the same author.
-  } ,
-  index-setup = {
-     othercode = \footnotesize ,
-     level = \addsec ,
-     noclearpage
-  } ,
-  makeindex-setup = {
-     columns = 3 ,
-     columnsep = 1em
-  }
-}
-
-\makeatletter
-\def\libertine at figurestyle{LF}
-\RequirePackage{amsmath}
-\undef\lvert \undef\lVert
-\undef\rvert \undef\rVert
-\RequirePackage[libertine]{newtxmath}
-\def\libertine at figurestyle{OsF}
-\makeatother
-
-\usepackage{array,booktabs,longtable}
-\usepackage{lscape}
-
-\defbibheading{bibliography}{\addsec{References}}
-
-\begin{document}
-
-\section{Licence and Requirements}
-\license
-
-\elements\ loads the packages \pkg{etoolbox}~\cite{pkg:etoolbox} and
-\pkg{translations}~\cite{pkg:translations}.
-
-\section{Element Names}
-
-\begin{commands}
-  \command{elementname}[\Marg{\meta{atomic number}|\meta{element symbol}}]
-    Prints the element name of a given element as defined with \cs{setatomname}.
-  \command{setatomname}[\oarg{alt.\@ name}\marg{atomic number}\marg{element
-    name}]
-    Define or redefine the name of an element.  If \meta{element name}
-    contains non-ascii symbols the optional argument \meta{alt.\@ name} must
-    be given.  In this case \meta{alt.\@ name} must be used in \elements'
-    other macros where an element's name can be given as argument.
-  \command{DeclareAtomName}[\oarg{alt.\@ name}\marg{atomic
-    number}\marg{element name}]
-    This is the same as \cs{setatomname} but used before begin document or in
-    packages/classes.
-  \command{saveelementname}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
-      symbol}|\meta{element name}}]
-    Saves the name of the given element as replacement text for the macro
-    \meta{cs}.
-\end{commands}
-
-\begin{example}[side-by-side]
-  \elementname{Cu} \par
-  \elementname{11} \par
-  \saveelementname\foo{28}
-  \ttfamily\meaning\foo
-\end{example}
-
-\section{Element Symbols}
-
-\begin{commands}
-  \command{elementsymbol}[\Marg{\meta{atomic number}|\meta{element name}}]
-    Prints the element symbol of a given element as defined with \cs{setatomsymbol}.
-  \command{setatomsymbol}[\marg{atomic number}\marg{element symbol}]
-    Define or redefine the symbol of an element.
-  \command{DeclareAtomSymbol}[\marg{atomic number}\marg{element symbol}]
-    This is the same as \cs{setatomsymbol} but used before begin document or in
-    packages/classes.
-  \command{saveelementsymbol}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
-      symbol}|\meta{element name}}]
-    Saves the symbol of the given element as replacement text for the macro
-    \meta{cs}.
-\end{commands}
-
-\begin{example}[side-by-side]
-  \elementsymbol{13} \par
-  \elementsymbol{Sulfur} \par
-  \saveelementsymbol\foo{83}
-  \ttfamily\meaning\foo
-\end{example}
-
-\section{Atomic Numbers}
-
-\begin{commands}
-  \command{atomicnumber}[\Marg{\meta{element symbol}|\meta{element name}}]
-    Prints the atomic number of a given element.
-  \command{Z}[\Marg{\meta{element symbol}|\meta{element name}}]
-    An alias of \cs{atomicnumber} but only defined at begin document and only
-    if it isn't defined already.
-  \command{saveatomicnumber}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
-      symbol}|\meta{element name}}]
-    Saves the atomic number of the given element as replacement text for the
-    macro \meta{cs}.
-\end{commands}
-
-\begin{example}[side-by-side]
-  \atomicnumber{U} \par
-  \atomicnumber{Chlorine} \par
-  \saveatomicnumber\foo{Kr}
-  \ttfamily\meaning\foo
-\end{example}
-
-\section{Electron Configuration}
-
-\begin{commands}
-  \command{elconf}[\Marg{\meta{atomic number}|\meta{element
-      symbol}|\meta{element name}}]
-    Typesets the electron configuration of the given element.
-  \command{writeelconf}[\marg{electron distribution}]
-    Typesets the electron distribution \meta{electron distribution}.  The
-    input is the same as described below for \cs{setelectrondistribution}.
-  \command{setelectrondistribution}[\marg{atomic number}\marg{electron distribution}]
-     This set the electron distribution associated with the atom number
-     \meta{atomic number}.  \meta{electron distribution} is a comma-separated
-     list of the number of electrons placed on each shell from inner to outer
-     shell.  For example \verbcode+\setelectrondistribution{3}{2,0,1}+ would
-     be an excited \elementname{3}.   The number of electrons with the same
-     principal quantum number but a different angular quantum number are
-     separated with a \code{+} ordered by the angular quantum number, \ie,
-     first \emph{s}, then \emph{p}, then \emph{d}, and then \emph{f} .
-     \elementname{29}’s distribution would be declared like this: \\
-     \verbcode!\setelectrondistribution{29}{2,2+6,2+6+10,1}!. \\
-     A declaration with \verbcode!\setelectrondistribution{29}{2,8,18,1}!
-     would work but then \verbcode!\elconf{29}! would give the wrong results.
-  \command{DeclareElectronDistribution}
-    This is the same as \cs{setelectrondistribution} but used before begin
-    document or in packages/classes.
-  \command{printangularmomentum}[\marg{angular momentum}]
-    \sinceversion{0.1e}This command is used be \cs{elconf} and
-    \cs{writeelconf} for typesetting $\printangularmomentum{s}$,
-    $\printangularmomentum{p}$, $\printangularmomentum{d}$, \ldots{} You can
-    redefine it if you want to change how those functions are typeset (keeping
-    in mind that it will be used in \emph{math mode}).  The initial definition
-    is:\par
-    \verbcode+\newcommand*\printangularmomentum[1]{\mathrm{#1}}+
-\end{commands}
-
-\begin{example}[side-by-side]
-  \writeelconf{2,2+6,2+6+7} \par
-  \elconf{Cl}
-\end{example}
-
-There is currently \emph{no way} to get the electron configuration in the
-shortened way (\eg:
-[Ar]$\printangularmomentum{d}^{10}4\printangularmomentum{s}^1$).
-
-\section{Isotope Lists}
-
-\begin{commands}
-  \command{setatomisotopes}[\marg{atomic number}\marg{isotope list}]
-    Defines or redefines the isotope list for a given element.  \meta{isotope
-      list} should be a comma seperated list of integers.  One of the integers
-    may be preceded with a \code{!} to mark the main isotope for the given
-    element: \verbcode+\setatomisotopes{6}{10,11,!12,13,14,15,16}+
-  \command{DeclareAtomIsotopes}[\marg{atomic number}\marg{isotope list}]
-    This is the same as \cs{setatomisotopes} but used before begin document or
-    in packages/classes.
-  \command{saveelementisotopes}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
-      symbol}|\meta{element name}}]
-    Saves the isotope list of the given element as replacement text for the
-    macro \meta{cs}.
-  \command{savemainelementisotope}[\marg{cs}\Marg{\meta{atomic number}|\meta{element
-      symbol}|\meta{element name}}]
-    Saves the main isotope of the given element as replacement text for the
-    macro \meta{cs}.  If the isotope list of the element contains no main
-    isotope \meta{cs} will be equivalent to \cs*{@empty}.
-  \command{mainelementisotope}[\Marg{\meta{atomic number}|\meta{element
-      symbol}|\meta{element name}}]
-    Print\sinceversion{0.1d} the main isotope of the given element.  If the
-    isotope list of the element contains no main isotope nothing will be
-    printed.
-\end{commands}
-
-\begin{example}[side-by-side]
-  \ttfamily
-  \saveelementisotopes\foo{C}
-  \meaning\foo\par
-  \savemainelementisotope\foo{C}
-  \meaning\foo\par
-  \normalfont
-  \mainelementisotope{C}
-\end{example}
-
-\clearpage
-
-\section{Supported Languages}
-Currently the following languages are supported:
-\begin{itemize}
-  \item English
-  \item German
-  \item French
-  \item \sinceversion{0.2}Spanish
-  \item \sinceversion{0.3}Portuguese and Brazilian Portuguese
-\end{itemize}
-
-\addsec{Element Properties}
-
-On the following pages a table containing the properties known to \elements\
-is printed. For those interested: the code used to get the table is as follows
-(using the packages \pkg{lscape}~\cite{pkg:lscape},
-\pkg{longtable}~\cite{pkg:longtable} and \pkg{booktabs}~\cite{pkg:booktabs}).
-
-\begin{sourcecode}[gobble=0]
-\setlength\LTleft\fill
-\setlength\LTright\fill
-\newcounter{element}
-\setcounter{element}{1}
-\begin{landscape}
-\begin{longtable}{lllll}
-  \toprule
-    Number & Symbol & Name & Main Isotope & Electron Configuration \\
-  \midrule
-  \endhead
-  \whileboolexpr{test{\ifnumless{\value{element}}{119}}}
-    {
-      \theelement &
-      \elementsymbol{\arabic{element}} &
-      \elementname{\arabic{element}} &
-      \mainelementisotope{\arabic{element}} &
-      \elconf{\arabic{element}}
-      \stepcounter{element} \\
-    }
-    {}
-\end{longtable}
-\end{landscape}
-\end{sourcecode}
-
-\setlength\LTleft\fill
-\setlength\LTright\fill
-\newcounter{element}
-\setcounter{element}{1}
-\begin{landscape}
-\begin{longtable}{lllll}
-  \toprule
-    Number & Symbol & Name & Main Isotope & Electron Configuration \\
-  \midrule
-  \endhead
-  \whileboolexpr{test{\ifnumless{\value{element}}{119}}}
-    {
-      \theelement &
-      \elementsymbol{\arabic{element}} &
-      \elementname{\arabic{element}} &
-      \mainelementisotope{\arabic{element}} &
-      \elconf{\arabic{element}}
-      \stepcounter{element} \\
-    }
-    {}
-\end{longtable}
-\end{landscape}
-
-\end{document}

Modified: trunk/Master/texmf-dist/tex/latex/elements/elements.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elements/elements.sty	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/tex/latex/elements/elements.sty	2022-01-29 21:45:08 UTC (rev 61792)
@@ -5,18 +5,18 @@
 % 
 % --------------------------------------------------------------------------
 % Clemens Niederberger
-% Web:    https://github.com/cgnieder/elements/
-% E-Mail: contact at mychemistry.eu
+% Web:    https://github.com/cgnieder/elemens
+% E-Mail: clemens at 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 at date{2019/10/14}
-\newcommand*\@elements at version{v0.3}
+\newcommand*\@elements at date{2022/01/29}
+\newcommand*\@elements at version{v0.4}
 \newcommand*\@elements at description{properties of chemical elements}
 
 \ProvidesPackage{elements}[%
@@ -57,7 +57,7 @@
 }
 \@elements at tmpa
 
-% chack for following !:
+% check for following !:
 \newrobustcmd*\@elements at ifbang[1]{\@ifnextchar!{\@firstoftwo{#1}}}
 
 % --------------------------------------------------------------------------
@@ -255,20 +255,23 @@
 }
 
 \newrobustcmd*\@elements at getelconf[1]{%
-  \forcsvlist{\@elements at getelconf@aux}{#1}%
+  \@elements at getelconf@aux#1,\q at stop
 }
 
-\newrobustcmd*\@elements at getelconf@aux[1]{%
+\protected\def\@elements at getelconf@aux#1,#2\q at stop{%
   \stepcounter{@elements at shell@number}%
   \setcounter{@elements at orbital@type}{0}%
   \@elements at parse@elconf#1+\q at stop
+  \ifblank{#2}{}{\@elements at getelconf@aux#2\q at stop}%
 }
 
 \protected\def\@elements at parse@elconf#1+#2\q at stop{%
-  \eappto\@elements at current@elconf{\arabic{@elements at shell@number}}%
-  \eappto\@elements at current@elconf
-    {\expandonce{\csname @elements at angmom@\arabic{@elements at orbital@type}\endcsname}}%
-  \appto\@elements at current@elconf{^{#1}}%
+  \ifblank{#1}{}{%
+    \eappto\@elements at current@elconf{\arabic{@elements at shell@number}}%
+    \eappto\@elements at current@elconf
+      {\expandonce{\csname @elements at angmom@\arabic{@elements at orbital@type}\endcsname}}%
+    \appto\@elements at current@elconf{^{#1}}%
+  }%
   \stepcounter{@elements at 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}

Modified: trunk/Master/texmf-dist/tex/latex/elements/elements_names_brazil.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elements/elements_names_brazil.def	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/tex/latex/elements/elements_names_brazil.def	2022-01-29 21:45:08 UTC (rev 61792)
@@ -8,7 +8,7 @@
 % Web:    https://github.com/cgnieder/elements/
 % E-Mail: contact at mychemistry.eu
 % --------------------------------------------------------------------------
-% Copyright 2015--2019 Clemens Niederberger
+% Copyright 2015--2022 Clemens Niederberger
 % 
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3

Modified: trunk/Master/texmf-dist/tex/latex/elements/elements_names_english.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elements/elements_names_english.def	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/tex/latex/elements/elements_names_english.def	2022-01-29 21:45:08 UTC (rev 61792)
@@ -8,7 +8,7 @@
 % Web:    https://github.com/cgnieder/elements/
 % E-Mail: contact at mychemistry.eu
 % --------------------------------------------------------------------------
-% 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

Modified: trunk/Master/texmf-dist/tex/latex/elements/elements_names_french.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elements/elements_names_french.def	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/tex/latex/elements/elements_names_french.def	2022-01-29 21:45:08 UTC (rev 61792)
@@ -8,7 +8,7 @@
 % Web:    https://github.com/cgnieder/elements/
 % E-Mail: contact at mychemistry.eu
 % --------------------------------------------------------------------------
-% 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

Modified: trunk/Master/texmf-dist/tex/latex/elements/elements_names_german.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elements/elements_names_german.def	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/tex/latex/elements/elements_names_german.def	2022-01-29 21:45:08 UTC (rev 61792)
@@ -8,7 +8,7 @@
 % Web:    https://github.com/cgnieder/elements/
 % E-Mail: contact at mychemistry.eu
 % --------------------------------------------------------------------------
-% 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

Modified: trunk/Master/texmf-dist/tex/latex/elements/elements_names_portuges.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elements/elements_names_portuges.def	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/tex/latex/elements/elements_names_portuges.def	2022-01-29 21:45:08 UTC (rev 61792)
@@ -8,7 +8,7 @@
 % Web:    https://github.com/cgnieder/elements/
 % E-Mail: contact at mychemistry.eu
 % --------------------------------------------------------------------------
-% Copyright 2015--2019 Clemens Niederberger
+% Copyright 2015--2022 Clemens Niederberger
 % 
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3

Modified: trunk/Master/texmf-dist/tex/latex/elements/elements_names_spanish.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/elements/elements_names_spanish.def	2022-01-29 18:22:00 UTC (rev 61791)
+++ trunk/Master/texmf-dist/tex/latex/elements/elements_names_spanish.def	2022-01-29 21:45:08 UTC (rev 61792)
@@ -8,7 +8,7 @@
 % Web:    https://github.com/cgnieder/elements/
 % E-Mail: contact at mychemistry.eu
 % --------------------------------------------------------------------------
-% 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



More information about the tex-live-commits mailing list.