Bug Tracker
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):
If you don't want the entry automatically added you could instead do:
- 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.
\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
Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=124