Bug Tracker 
ID | 74🔗 |
---|---|
Date: | 2014-11-19 12:37:58 |
Status | Closed (Not a Bug) |
Category | glossaries |
Version | 4.11 |
Summary | Incorrect acronym expansion |
Sign in to subscribe to notifications about this report.
Description
In the attached MWE, acronymacr2
uses \gls{acr1}
in the long form. On first use in the text, \gls{acr2}
is expanded with "(acr1)" appended instead of "(acr2)". If I omit \setacronymstyle{long-short}
from the preamble, the expected short form is used.
This is with glossaries 2014/09/01 v4.11 (NLCT), xelatex and makeglossaries.
MWE
Download (379B)
\documentclass{article} \usepackage[acronym]{glossaries} \setacronymstyle{long-short} \makeglossaries \newacronym{acr1}{acr1}{first acronym} \newacronym{acr2}{acr2}{another version of \gls{acr1}} \begin{document} \printglossaries In my text, I first use \gls{acr1} and \gls{acr2} for the first time, then I use both \gls{acr1} and \gls{acr2} a second time. \end{document}
Evaluation
This occurs because the first use of acr1
occurs in the list of acronyms, which is at the start of the document. The same thing happens if an acronym occurs in the table of contents. Suggestions:
- use
\acrfull{acr1}
or\acrshort{acr1}
or\acrlong{acr1}
instead of\gls{acr1}
in the definition, or: - reset the acronyms after the glossary:
\printglossaries \glsresetall
Comments
0 comments.
Add Comment
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=74