LaTeX forum ⇒ Generalacronym package and hyphenation

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

acronym package and hyphenation

Postby corderin » Tue Jan 27, 2009 10:44 am

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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

acronym package and hyphenation

Postby phi » Tue Feb 03, 2009 11:24 pm

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:
\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.


Return to “General”

Who is online

Users browsing this forum: No registered users and 24 guests