[texhax] Hyphenation of "2,5-dimethylfuran" and its ilk
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu May 15 17:55:08 CEST 2014
On 15/05/2014 13:50, Simmie, John wrote:
> The ordinary command \hyphenation{} in a LaTeX document works well but only for letters.
> Extdash.sty covers those cases where the text contains a hyphen naturally as in “Twisletown-MacSwiddelpipes”
> But how can globally hyphenate chemical names which can contain both digits (these can also be primed) & hyphens ?
> eg 5-methyl-2(3H)-furanone, 4,4'-oxybis[benzenamine, etc
> J. Simmie::Chemistry::NUI Galway
I'd use the \iupac macro from chemmacros:
\documentclass{article}
\usepackage{chemmacros}
\begin{document}
Some filler text to force hyphenation.
\iupac{5-methyl-2(3\emph{H})-furanone}
\iupac{4,4'-oxybis\|[benzenamine]}
Breaking - indicated by \-, break point without always printing a hyphen
indicated by \|.
--
Joseph Wright
More information about the texhax
mailing list