# How to combine package acronym and hyphenation? [closed]

It seems that words part of an acronym defined using the Acronym package have trouble being hyphenated. How can I make sure that the long version of the acronym will be hyphenated correctly?

\documentclass{minimal}
\usepackage{acronym}

\hyphenation{Acro-nym}
\acrodef{OA}{Overlengthy Acronym}

\begin{document}
This very very very very lengthy useless sentence contains many words including an \ac{OA} and it should be split.

This very very very very lengthy useless sentence contains many words including an Overlengthy Acronym (OA) and it should be split.
\end{document}


On my computer, the preceding MWE results in "Acronym" being split in the second sentence but not in the first one although the produced text is identical.

-

## closed as too localized by Werner, lockstep, egreg, Marco Daniel, topskipJun 6 '12 at 13:10

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

I get exactly the same text in both paragraphs, with Acronym split across lines. – egreg May 28 '12 at 23:44
Ok, thank you. I added a more recent version of acronym.sty to the folder and it's now corrected (I was using the default ubuntu texlive version). Should I delete the question? – Abdallah May 28 '12 at 23:48
@Halladba, it cant hurt to leave the question so that someone could find it if they are having the same issue.. – Otis May 29 '12 at 3:32
@egreg You could answer this question with "Upgrade your TeXLive installation" so that this question can be closed. – Christian May 29 '12 at 16:29

It seems to be a problem with an outdated version of acronym that should be solved by updating it.