summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/isotope
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-26 22:26:41 +0000
committerKarl Berry <karl@freefriends.org>2011-08-26 22:26:41 +0000
commit5c3e7d14dc14232cab367595070b49c281524cad (patch)
treed44fee99488ee209ebff580b5dd6292ae22e2174 /Master/texmf-dist/tex/latex/isotope
parent491eb9911c303dc52a9bc0af8e5081c74d6ef572 (diff)
isotope (26aug11)
git-svn-id: svn://tug.org/texlive/trunk@23711 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/isotope')
-rw-r--r--Master/texmf-dist/tex/latex/isotope/isotope.sty20
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/isotope/isotope.sty b/Master/texmf-dist/tex/latex/isotope/isotope.sty
index b3c699d9eea..17436300da2 100644
--- a/Master/texmf-dist/tex/latex/isotope/isotope.sty
+++ b/Master/texmf-dist/tex/latex/isotope/isotope.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2003 by Heiko Bauke <heiko.bauke@physik.uni-magdeburg.de>
+%% Copyright (C) 2003-2011 by Heiko Bauke <heiko.bauke@mpi-hd.mpg.de>
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 of this license
@@ -22,28 +22,28 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{isotope}
- [2004/01/04 v0.2 for type setting isotopes]
-\newcommand{\isotopestyle}{\rm}
+ [2011/08/26 v0.3 for typesetting isotopes]
+\newcommand{\isotopestyle}{\mathrm}
\newcommand{\isotope@atomicnumber}{}
-\newcommand{\isotope@nuclearnumber}{}
+\newcommand{\isotope@nucleonnumber}{}
\newcommand{\isotope}[1][]{%
\begingroup%
- \renewcommand{\isotope@nuclearnumber}{#1}%
+ \renewcommand{\isotope@nucleonnumber}{#1}%
\isotope@two}%
\newcommand{\isotope@two}[2][]{%
\renewcommand{\isotope@atomicnumber}{#1}%
{\m@th%
\settowidth\@tempdimb{\ensuremath{%
- \isotopestyle\scriptstyle\isotope@nuclearnumber}}%
+ \scriptstyle\isotope@nucleonnumber}}%
\settowidth\@tempdimc{\ensuremath{%
- \isotopestyle\scriptstyle\isotope@atomicnumber}}%
+ \scriptstyle\isotope@atomicnumber}}%
\ifdim\@tempdimb<\@tempdimc\@tempdimb=\@tempdimc\fi%
\ensuremath{{}%
^{\makebox[\@tempdimb][r]{\ensuremath{%
- \isotopestyle\scriptstyle\isotope@nuclearnumber}}}%
+ \scriptstyle\isotope@nucleonnumber}}}%
_{\makebox[\@tempdimb][r]{\ensuremath{%
- \isotopestyle\scriptstyle\isotope@atomicnumber}}}%
- \isotopestyle#2}%
+ \scriptstyle\isotope@atomicnumber}}}%
+ \isotopestyle{#2}}%
}%
\endgroup%
}%