Latest news 2019-12-05: new blog post "RSS Feeds and Other Notifications."

# Bug Tracker

ID 74 Closed (Not a Bug) glossaries 4.11 Incorrect acronym expansion

## Report

In the attached MWE, acronym acr2 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

\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

Closed as this is expected behaviour not a bug.

## Watch This Report

If you supply your name, it will be used in the email greeting, which provides a more personal message, otherwise you'll just get a generic greeting. If you have previously supplied your name when signing up for notifications, you don't need to resupply it unless you want to change it.

If you have previously subscribed to notifications for this report, you can unsubscribe by clicking on the "Stop Notification" button.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

Name: (Optional.)

To unsubscribe from all notifications use the notifications page.

## Comment

You can append a comment to the report using the form below. Comments are checked first before being added. Any spam or offensive content will be removed first according to this site's Terms of Website Use. Please bear in mind that I develop and maintain free software in my spare time. If you want commerical level support then you can hire a TeX consultant.

The "Confirm Bug ID" field helps to protect against spambots. Please enter the bug ID (which you can find at the top of this page).

Name: (Optional. If provided, it will be shown with the comment.) Message: You can use the following markup: [pre]Displayed verbatim[/pre] [tt]monospace text[/tt] [em]emphasized text[/em] [b]bold text[/b] [url]web address[/url] Ordered list: [ol] [li]first item[/li] [li]second item[/li] [/ol] Unordered list: [ul] [li]first item[/li] [li]second item[/li] [/ul]

Click on the Preview button to preview the message.