Latest news 2021-06-05: New blog post: Dickimaw Books Site Account.

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, 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

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:

Closed as this is expected behaviour not a bug.

Comments

0 comments.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:

You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=74