summaryrefslogtreecommitdiff
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
parent491eb9911c303dc52a9bc0af8e5081c74d6ef572 (diff)
isotope (26aug11)
git-svn-id: svn://tug.org/texlive/trunk@23711 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/isotope/README5
-rw-r--r--Master/texmf-dist/source/latex/isotope/isotope.dtx70
-rw-r--r--Master/texmf-dist/source/latex/isotope/isotope.ins4
-rw-r--r--Master/texmf-dist/tex/latex/isotope/isotope.sty20
4 files changed, 57 insertions, 42 deletions
diff --git a/Master/texmf-dist/doc/latex/isotope/README b/Master/texmf-dist/doc/latex/isotope/README
new file mode 100644
index 00000000000..1a7d9396d66
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/isotope/README
@@ -0,0 +1,5 @@
+Despite its powerful typographic capabilities it is surprisingly
+difficult to typeset isotopes with LaTeX. Ad hoc methods as often give
+poor results with wrong alignment of atomic and nuclear numbers. The
+package isotope provides the \isotope macro for correct typesetting of
+isotopes.
diff --git a/Master/texmf-dist/source/latex/isotope/isotope.dtx b/Master/texmf-dist/source/latex/isotope/isotope.dtx
index 1d4eff55922..1aaddeeda24 100644
--- a/Master/texmf-dist/source/latex/isotope/isotope.dtx
+++ b/Master/texmf-dist/source/latex/isotope/isotope.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% 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
@@ -18,7 +18,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{isotope}
-%<package> [2004/01/04 v0.2 for type setting isotopes]
+%<package> [2011/08/26 v0.3 for typesetting isotopes]
%
%<*driver>
\documentclass{ltxdoc}
@@ -33,7 +33,7 @@
%</driver>
% \fi
%
-% \CheckSum{51}
+%\CheckSum{47}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -60,17 +60,19 @@
%
% \title{The \textsf{isotope} package\thanks{This document
% corresponds to \textsf{isotope}~\fileversion, dated \filedate.}}
-% \author{Heiko Bauke\thanks{E-mail: \texttt{heiko.bauke@physik.uni-magdeburg.de}}}
+% \author{Heiko Bauke\thanks{E-mail: \texttt{heiko.bauke@mpi-hd.mpg.de}}}
%
% \maketitle
%
% \section{Introduction}
%
-% It's quite difficult to type set isotopes with \LaTeX. The ad hoc method
-% using e.g. |$^{232}_{90}\mathrm{Th}$| results in $^{232}_{90}\mathrm{Th}$.
+% Despite its powerful typographic capabilities it is surprisingly
+% difficult to typeset isotopes with \LaTeX. Ad hoc methods as for
+% example |$^{232}_{90}\mathrm{Th}$| give poor results as
+% $^{232}_{90}\mathrm{Th}$.
% This is not satisfactory because of the wrong alignment of atomic
-% and nuclear number. The package \textsf{isotope} provides the |\isotope|
-% macro for correct type setting isotopes.
+% and nuclear numbers. The package \textsf{isotope} provides the |\isotope|
+% macro for correct typesetting of isotopes.
%
% \section{Usage}
%
@@ -80,12 +82,16 @@
% |\usepackage{isotope}|
% \end{quote}
% \DescribeMacro{\isotope}
-% The usage of the |\isotope| macro is straight forward:
+% The usage of the |\isotope| macro is straight forward. Just provide the
+% isotope's name and optionally its nucleon number and its atomic number.
% \begin{quote}
-% |\isotope|\oarg{nuclear number}\oarg{atomic number}\marg{name}
+% |\isotope|\oarg{nucleon number}\oarg{atomic number}\marg{name}
% \end{quote}
-% See \tablename~\ref{tab:example} for some examples.
-% \begin{table}[tb]
+% See \tablename~\ref{tab:example} for some examples. Note that the
+% \verb#\alpha# has been enclosed by \verb#\mathnormal#. Not doing so
+% may give unexpected results for some math fonds.
+%
+% \begin{table}[t]
% \centering
% \caption{Examples for \texttt{\textbackslash isotope} macro usage.}
% \label{tab:example}
@@ -97,21 +103,21 @@
% |\isotope{Ra}| & \isotope{Ra} \\
% |\isotope[228]{Ra}| & \isotope[228]{Ra} \\
% |\isotope[228][88]{Ra}| & \isotope[228][88]{Ra} \\
-% |$\isotope[A][Z]{X}\to| & \\
-% |\isotope[A-4][Z-2]{Y}+\isotope[4][2]{\alpha}$| &
-% \raisebox{1.5ex}[-1.5ex]{$\isotope[A][Z]{X}\to\isotope[A-4][Z-2]{Y}+\isotope[4][2]{\alpha}$}\\
+% |$\isotope[A][Z]{X}\to\isotope[A-4][Z-2]{Y}+| & \\
+% |\isotope[4][2]{\mathnormal{\alpha}}$| &
+% \raisebox{1.5ex}[-1.5ex]{$\isotope[A][Z]{X}\to\isotope[A-4][Z-2]{Y}+\isotope[4][2]{\mathnormal{\alpha}}$}\\
% \hline
% \hline
% \end{tabular}
% \end{table}
% \DescribeMacro{\isotopestyle}
-% The macro |\isotopestyle| determines the style which is used to type set the
-% name of the iostope. It may be redefined, e.g.
+% The macro |\isotopestyle| determines the style which is used to typeset the
+% name of the iostope. It may be redefined. For example, the redefinition
% \begin{quote}
-% |\renewcommand{\isotopestyle}{\sf}|\\
+% |\renewcommand{\isotopestyle}{\mathsf}|\\
% |\isotope[228]{Ra}|
% \end{quote}
-% gives {\renewcommand{\isotopestyle}{\sf}\isotope[228]{Ra}}.
+% gives {\renewcommand{\isotopestyle}{\mathsf}\isotope[228]{Ra}}.
%
% \StopEventually{\PrintChanges\PrintIndex}
%
@@ -121,45 +127,49 @@
% \changes{v0.2}{2004/01/04}{\texttt{\textbackslash isotopestyle} determines
% also the style of nuclear and atomic number.}
% |\isotopestyle| determines the style which is used to typeset the
-% name of an iostope and its nuclear and atomic number.
+% name of an iostope and its nucleon and atomic numbers.
% \begin{macrocode}
-\newcommand{\isotopestyle}{\rm}
+\newcommand{\isotopestyle}{\mathrm}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\isotope}
% \changes{v0.2}{2004/01/04}{Vertical spacing between nuclear and atomic
% number has been improved. The implementation is based no a suggestion
% of Walter Schmidt in \texttt{de.comp.text.tex}.}
-% Now it follows the implementation of \verb#\isotope# macro.
+% Now it follows the implementation of the \verb#\isotope# macro.
% \begin{macrocode}
\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%
% \end{macrocode}
-% Determine which has a larger width nuclear number or atomic number.
+% Determine which has a larger width nucleon number or atomic number.
% \begin{macrocode}
\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%
}%
% \end{macrocode}
% \end{macro}
+% \changes{v0.3}{2011/08/26}{Changed \texttt{\textbackslash
+% isotopestyle} from \texttt{\textbackslash rm} to
+% \texttt{\textbackslash mathrm} to improve typographic quality when
+% sans serif math fonts are used.}
% \PrintChanges
% \Finale
\endinput
diff --git a/Master/texmf-dist/source/latex/isotope/isotope.ins b/Master/texmf-dist/source/latex/isotope/isotope.ins
index 24a4850906e..a606944e544 100644
--- a/Master/texmf-dist/source/latex/isotope/isotope.ins
+++ b/Master/texmf-dist/source/latex/isotope/isotope.ins
@@ -1,5 +1,5 @@
%%
-%% 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
@@ -21,7 +21,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
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%
}%