Latest news 2019-11-04: The giveaway of two signed copies of “Quack, quack, quack. Give my hat back!” has closed and the winning entrants have been selected. Thank you to everyone who took part.

# glossaries package FAQ

FAQ Search Tips

What does the xindy error "CHAR: index 0 should be less than the length of the string" mean? 🔗

xindy discards all commands and braces from the sort string. If your sort string (either specified by the sort key or the name key) only consists of commands, this will be treated by xindy as an empty sort string, which produces an error message in newer versions of xindy. For example, the following will cause a problem:

\newglossaryentry{alpha}{name={\ensuremath{\alpha}},
description=alpha}

Either use a different sort key for the entry, for example:
\newglossaryentry{alpha}{sort=alpha,
name={\ensuremath{\alpha}},
description=alpha}

or, if all entries are like this, you may prefer to use the sort=use or sort=def package options. See the Sorting Options section of the user manual for further details of the sort option.