summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bohr/bohr.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bohr/bohr.sty')
-rw-r--r--Master/texmf-dist/tex/latex/bohr/bohr.sty19
1 files changed, 13 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/bohr/bohr.sty b/Master/texmf-dist/tex/latex/bohr/bohr.sty
index 663ec4bd93c..bb92c960924 100644
--- a/Master/texmf-dist/tex/latex/bohr/bohr.sty
+++ b/Master/texmf-dist/tex/latex/bohr/bohr.sty
@@ -31,8 +31,8 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-\def\@bohr@date{2012/09/22}
-\def\@bohr@version{v0.2}
+\def\@bohr@date{2012/09/23}
+\def\@bohr@version{v0.2a}
\def\@bohr@description{simple atom representation according to the Bohr model}
\ProvidesPackage{bohr}[\@bohr@date\space \@bohr@version\space \@bohr@description]
@@ -226,12 +226,19 @@
\def\@bohr@define@atom@symbol#1#2{%
\csdef{@bohr@atom@symbol@num@\romannumeral#1}{#2}%
\lowercase{\csdef{@bohr@atom@number@#2}}{#1}}
-\def\@bohr@define@atom@name#1#2{%
+\def\@bohr@define@atom@name#1#2#3{%
\csdef{@bohr@atom@name@\romannumeral#1}{#2}%
- \lowercase{\csdef{@bohr@atom@name@num@#2}}{#1}}
+ \lowercase{\csdef{@bohr@atom@name@num@#3}}{#1}}
-\newrobustcmd*\DeclareAtomName[2]{%
- \@bohr@define@atom@name{#1}{#2}}
+% #1: optional name (umlauts...)
+% #2: atomic number
+% #3: element name
+\newrobustcmd*\DeclareAtomName[3][]{%
+ \ifblank{#1}
+ {\@bohr@define@atom@name{#2}{#3}{#3}}
+ {\@bohr@define@atom@name{#2}{#3}{#1}}}
+% #1: atomic number
+% #2: element symbol
\newrobustcmd*\DeclareAtomSymbol[2]{%
\@bohr@define@atom@symbol{#1}{#2}}