Q: Is there a neat general method for typesetting chemical isotopes such as ?
A: P. J. Hinton (email@example.com) writes: This requires a little trickery. There is a SubsuperscriptBox construct that can align the atomic and mass numbers as you wish, but you have to use an empty string as the "anchor" for the subscript and superscript. Evaluating the following expression demonstrates this idea.
Here is a Text cell which displays our isotope within an inline cell (see Edit Expression Input Start Inline Cell) in ChemicalFormula style:
The decay of the isotope .
Inline cells use the setting for Default Inline Format Type under the Cell menu, which is TraditionalForm, meaning that the text will be set in whatever font is used by the style sheet for TraditionalForm (in this case Times).
The ChemicalFormula style contains some option settings which distinguish it from typical typeset math cells. If you examine any style sheet which includes the ChemicalFormula style (such as ArticleClassic, ArticleModern, Classic, Report, Textbook, TutorialBook, or this notebook), you will find the following style definition cell.
The style definitions of this cell can be inspected using Format Option Inspector... or by unformatting the cell (using Format Show Expression...) to display the cell formatting options.
In particular, SingleLetterItalicsFalse means that single letter symbols for elements (e.g., H for hydrogen) will not be italicized.
Here is a button
to speed entry of the box structure as inline cells in ChemicalFormula style. Here are instructions for using the button.
1. In a text cell, enter the element name, say Po.
2. Select the element name text with the mouse. Double-clicking over Po will do this.
3. Click on the button above.
4. Enter the subscript number.
5. Hit the key.
6. Enter the superscript number.
7. Hit —k0—l to exit the inline cell.
8. Continue typing the text.
After loading the Miscellaneous`ChemicalElements` package,
we can look up the stable isotopes of any element.
Using our button we can write,
The stable isotopes of hydrogen are and .
Note also that a Periodic Table palette, in which pressing an element pastes a description of its properties, is distributed with Mathematica.
Converted by Mathematica September 29, 1999 [Prev Page][Next Page]