Bug Tracker RSS feed

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 197🔗
Date: 2022-02-09 10:31:49
Status Closed (Not a Bug)
Category glossaries-extra
Version 1.48
Summary Aliases added to the glossary without the main entry and any reference

Sign in to subscribe to notifications about this report.

Description

This source text without any glossary reference puts aliases into the document glossary:


\documentclass[]{article}
\usepackage{glossaries-extra}
\makeglossaries

\newglossaryentry{main}{
name={main},
description={Main entry}}

\newglossaryentry{alias}{
name={Alias},
description={\nopostdesc},
alias={main}}

\begin{document}

\printglossaries

\end{document}

MWE

Download (294B)

\documentclass[]{article}
\usepackage{glossaries-extra}
\makeglossaries

\newglossaryentry{main}{
    name={main},
    description={Main entry}}

\newglossaryentry{alias}{
    name={Alias},
    description={\nopostdesc},
    alias={main}}

\begin{document}

    \printglossaries

\end{document}

Evaluation

This is a feature of all the cross-referencing keys (see, seealso and alias). See Why does the see key automatically index the entry?

Use autoseeindex=false if you want to prevent the automatic indexing (but you will then have to manually apply the cross-reference indexing with \glssee):

\documentclass[]{article}
\usepackage[autoseeindex=false]{glossaries-extra}
\makeglossaries

\newglossaryentry{main}{
name={main},
description={Main entry}}

\newglossaryentry{alias}{
name={Alias},
description={\nopostdesc},
alias={main}}

\begin{document}
\gls{main}\glssee{alias}{main}

\printglossaries

\end{document}

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