Generalacronym package and hyphenation

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
corderin
Posts: 77
Joined: Sun Dec 14, 2008 2:27 pm

acronym package and hyphenation

Post by corderin »

I have a problem with the acronym package, this package seems to avoid the acronym hyphenation and that generates bad boxes, I would like to disable this behaviour but I don´t find how...

Does anybody know how to force acronyms to be hyphenated?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

acronym package and hyphenation

Post by phi »

After some testing, I found out that acronym inserts an empty hbox after each acronym which prevents hyphenation. For the curious: Line 231 in acronym.sty. To avoid this, you have to redefine the \AC@get macro:

Code: Select all

\makeatletter
\renewcommand*\AC@get[3]{%
    \ifx#1\relax
       \PackageWarning{acronym}{Acronym `#3' is not defined}%
       \textbf{#3!}%
    \else
       \expandafter#2#1%
    \fi}
\makeatother
Perhaps you could inform the package author about this issue.
Post Reply