[texhax] \hyphenation{MPW1K/6-311++G(d,p)

Martin Heller mr_heller at yahoo.dk
Mon Nov 26 20:07:49 CET 2007


Simmie, John skrev:
> In trying to globally hyphenate MPW1K/6-311G(d,p) and similar
> jaw-breaking constructs

Where and how should it break?

> With \hyphenation{...} in the preamble
> LaTeX tells me that it can only handle letters a-z and the inputenc
> package does not 
> cover this situation either.
> 
> Is there another sty file that can please?

You can use url.sty and define \UrlBreaks for a new url command

\documentclass{article}
\usepackage{url}

\DeclareUrlCommand\stuff{\urlstyle{rm}}

\begin{document}

\stuff{MPW1K/6-311G(d,p)}

\end{document}



More information about the texhax mailing list