Bug Tracker RSS feed

One or more errors has occurred:

I’m currently working on a major new version of the datatool package. This may take a while. Please be patient. (Experimental version available for testing.)

ID 124🔗
Date: 2017-04-07 16:21:57
Status Closed (Not a Bug)
Category glossaries
Version v4.26
Summary If a non reverenced glossary entry has a see field. Die Entry is in the Glossary anyway.

Sign in to subscribe to notifications about this report.

Description

If one adds an Glossary entry in the following Format.
\newglossaryentry{CD}{type=\acronymtype,
name={CD},
description={compact disc},
first={compact disc (CD)},
see=[Glossary:]{cd}
}
The Acronymentry is shown regardless of it's usage.

MWE

Download (538B)

\documentclass{article}

\usepackage[acronym]{glossaries}
\makeglossaries

\newglossaryentry{cd}{
name={CD},
description={compact disc}
}

\newglossaryentry{CD}{type=\acronymtype,
name={CD},
description={compact disc},
first={compact disc (CD)},
see=[Glossary:]{cd}
}

\newglossaryentry{DVD}{type=\acronymtype,
name={DVD},
description={digital versatile disc},
first={digital versatile disc DVD}
}

\begin{document}
\noindent


First use \gls{DVD}\    subsequent \gls{DVD}

\printglossary
\printglossary[type=\acronymtype]

\end{document}

Evaluation

This isn't a bug. The see key is designed to behave in this way. From the user manual (emphasis added):

see
Cross-reference another entry. Using the see key will automatically add this entry to the glossary, but will not automatically add the cross-referenced entry. The referenced entry should be supplied as the value to this key.
If you don't want the entry automatically added you could instead do:
\newglossaryentry{CD}{type=\acronymtype,
name={CD},
description={compact disc\glssee[Glossary:]{CD}{cd}},
first={compact disc (CD)}
}

Update 2020-03-02: there's more flexibility with the glossaries-extra package. You can use the package option autoseeindex=false to prevent the automatic indexing performed by the see combined with indexcrossrefs which will automatically index any cross-references that haven't been marked as used at the end of the document. A more powerful alternative is to use glossaries-extra with bib2gls.

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=124