I'm trying to use the starred commands for the acronym
package, i.e. \ac*
, \acs*
, \acl*
, etc.
But, I can't seem to get the package not to set the AC@used
flag (which I believe is used by the acronym
package to track commands that are used in the document.
Below is a minimum working example:
\documentclass{article}
\usepackage{acronym}
\newacro{TMN}{This Means Nothing}
\begin{document}
First use works as intended:
\ac*{TMN}
But the acronym is still marked as used:
\ac*{TMN}
\end{document}
The end result is something like this:
First use works as intended:
This Means Nothing (TMN)
But the acronym is still marked as used:
TMN
Any ideas? Or should I switch to the glossaries
package?
Best Answer
It appears as we have both misinterpreted the meaning of
\ac*
as I too interpreted the documentation the same way. As per @GonzaloMedina's comment:However, one way to get the desired behavior is to redefine
\@ac
which is copied from theacronym
package, and insert a\AC@reset{#1}
call in three places which seems to produce the desired results:Note that you could use
\acf
to always get the full name as well.