I am using glossaries
to keep track of my acronyms and a few other lists. However, I am running into a situation where I want to use \acf
to print the full acronym, and the description should not be repeated by subsequent \ac
commands. By default, if one uses \acf
first, the first occurrence of \ac
will again print the entire acronym such as Test Acronym (TA).
In specific, I am making a description
list to introduce a few terms, and want to make sure the full acronym is in the label:
\documentclass{scrreprt}
\usepackage[xindy, shortcuts]{glossaries}
\newacronym{TA}{TA}{Test Acronym}
\makeglossaries
\begin{document}
\printglossary[type=\acronymtype]
\begin{description}
\item[\acf{TA}] This is an explanation of the item…
The first use flag should be set after this!
But it does!, and will display Test Acronym (TA) again… Which is not intended!
\end{description}
When using \ac{TA} here like this, it should not reproduce the entire entry again.
\printglossary
\end{document}
Thus, how can I set/enforce the first use flag manually, or circumvent this problem here?
Best Answer
The package glossaries defines a boolean flag for every entry. If you call
\ac
the boolean flag is set to true. That means next time you know that the entry was used.To set this flag manual the package provides the command
\glsunset
.The documentation describes the command at page 105 (glossaries-user.pdf).
Related to your example do: