[Tex/LaTex] How to prevent TeX from hyphenating acronyms

acronymscapitalizationhyphenation

Upper-case words look awkward when hyphenated. How do I suppress this behavior?

Best Answer

I recommend to define a style for acronyms. This allows consistent style changes later, for example if you change the typographic design of acronyms (such as using small caps) or introducing index commands.

And in this macro it's easy to prevent hyphenation, such as with \mbox.

\newcommand{\Acronym}[1]{\mbox{\textsc{#1}}}

Some typographers recommend to space out all-caps words a bit. That's what \textsc does here for you.

\documentclass{article}
\usepackage[english]{babel}
\newcommand{\Acronym}[1]{\mbox{\textsc{#1}}}
\begin{document}
\parbox{5em}{An EXAMPLE}
\quad
\parbox{5em}{An \Acronym{EXAMPLE}}
\end{document}

Acronym example output