When using the acronym
package (current version 2012/10/29 v1.38) with hyperref, the upper case indefinite article command \Iac
does not compile in some cases. This code
\documentclass{article}
\usepackage{acronym}
\usepackage{hyperref}
\begin{document}
\begin{acronym}
\acro {HMM} {Hidden Markov Model}
\acroindefinite {HMM} {an} {a}
\end{acronym}
\Iac{HMM}
\Iac{HMM}
\end{document}
results in
! Undefined control sequence.
\hyper@@link ->\let \Hy@reserved@a
\relax \@ifnextchar [{\hyper@link@ }{\hyp...
l.13 \Iac{HMM}
I contacted the package maintainer and he does not have time to fix this issue but would incorporate patches into the .sty file if submitted to him. Thus my question is if anyone can provide me with either a workaround that I can use in my .tex file or a patch for the bug in the .sty file.
I so far checked these combinations of indefinite article commands:
\Iac used once works fine
\Iac used twice for the same acronym DOES NOT WORK
\Iac* works multiple times
\Iac* then \Iac on the same acronym works
\Iac then \Iac* on the same acronym DOES NOT WORK
\iac works multiple times
\iac then \Iac on the same acronym DOES NOT WORK
\Iac then \iac on the same acronym works
Note: \iac's behaviour is inverse to that of \Iac*
\iac* and \Iac on the same acronym works in both orders
As I hardly know latex myself, any help would be greatly appreciated.
\@firstupper
, that can't work along withhyperref
. I'm afraid there's no quick fix.