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

Bug Tracker

ID96
StatusClosed (Not a Bug)
Categoryglossaries
Versionv4.11
Summarydropping/missing entrys

Report

The combination of tex.xdy and glossaries.sty in [example] resulted in the automated creation of input for xindy. That input if written by a human would clearly show a fundamental misunderstanding how xindy works, says Joachim (xindy). Suggestion: \newglossaryentry{foo}{..} should append the gls name ("foo") to the xindy-sort-key in order to make it unique (even after application of merge-rules). MWE at stackexchange: [Link] Discussion in xindy-discuss@... [Link] [Link] [Link]

Fabian

MWE

\documentclass[10pt,ngerman]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}

\usepackage[xindy]{imakeidx}
\usepackage[xindy,acronym]{glossaries}
\newglossary{symbolslist}{syiX1}{sygX1}{Symbolverzeichnis} 
\makeglossaries
\makeindex
\newglossaryentry{physical_t}{
type=symbolslist,
name={\ensuremath{t}},
description={text t}
}
\newglossaryentry{physical_dt}{
type=symbolslist,
name={\ensuremath{\Delta t}},
description={missing text delta}
}
\newglossaryentry{tau_k}{
type=symbolslist,
name={\ensuremath{\tau_k}},
description={text tau}
}
\newglossaryentry{gamma_k}{
type=symbolslist,
name={\ensuremath{\gamma_k}},
description={missing text gamma}
}
\newacronym{abc}{ABC}{the ABC thing}
\begin{document}
\glsaddall
\printglossary[type=\acronymtype,style=long]
\printglossary[type=symbolslist,style=long]
\end{document}

Evaluation

This isn't a bug. The glossaries documentation states that you must provide the sort key if the name contains commands. For example:
\newglossaryentry{gamma_k}{
type=symbolslist,
name={\ensuremath{\gamma_k}},
sort={gamma_k},
description={missing text gamma}
}
This is analogous to \index where you can't do \index{\ensuremath{\gamma_k}} but must do \index{gamma_k@\ensuremath{\gamma_k}}.

The suggestion, if implemented in glossaries, would break plenty of existing documents that rely on the sort key behaving as documented (for example, dual-entry glossaries that use a prefixing system for the label). The solution is to either add the sort key for each entry or provide a command that sets the sort key from the label. For example:

\newcommand*{\newsymbol}[2]{\newglossaryentry{#1}{sort=#1,type=symbolslist,#2}}

\newsymbol{gamma_k}{name={\ensuremath{\gamma_k}},
description={missing text gamma}}

Add comment.

Watch This Report

If you would like to be notified whenever updates are made to this report, please fill in your email address in the box below and click on "Notify Me of Changes" button. (Please ensure the address is valid.) Your details won't be passed on to third parties in line with this site's Privacy Policy.

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).

(Optional.)
E mail:
Confirm E mail:
Confirm Bug ID:

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).

(Optional. If provided, it will be shown with the comment.)
Confirm Bug ID:

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.

Return to list.

© 2019 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs