When TeXing the attached MWE using xindy
for sorting, the Greek entries
are sorted between the Latin letters "R" and "S" while they are sorted after
the Latin Letters when not using xindy
. How can this be fixed by
- either sorting them after the Latin Letters (like with
makeindex
) - or by sorting them before the Latin Letters?
% ----- minimal example -----
\documentclass{scrartcl}
\usepackage{luatex85} % <-- only needed for LuaLaTeX
\usepackage{longtable}
\usepackage[
automake,
nomain,
nonumberlist,
symbols,
% comment next `key-value` and Greek Letters are sorted
% after the Latin Letters
xindy={
codepage=utf8,
},
]{glossaries-extra}
\makeglossaries
\renewcommand*{\glspostdescription}{}
\newglossarystyle{symbver}{
% change length of `\glsdescwidth'
\setlength{\glsdescwidth}{8cm}
% put the glossary in a longtable environment:
\renewenvironment{theglossary}
{\begin{longtable}[l]{lp{\glsdescwidth}r}}
{\end{longtable}}
% No heading between groups:
\renewcommand*{\glsgroupheading}[1]{}
% Set the table’s header:
\renewcommand*{\glossaryheader}{}
\renewcommand*{\glsresetentrylist}{}
% Main (level 0) entries displayed in a row optionally numbered:
\renewcommand*{\glossentry}[2]{%
\tabularnewline % start with empty row
\rlap{%
\glsentryitem{##1}% Entry number if required
\glstarget{##1}{\glossentryname{##1}}% Name
}
\tabularnewline % end of row
}
% Similarly for sub-entries (no sub-entry numbers):
\renewcommand*{\subglossentry}[3]{%
% ignoring first argument (sub-level)
\glstarget{##2}{\glossentryname{##2}}% Name
& \glossentrydesc{##2}% Description
& \glossentrysymbol{##2}% Unit
\tabularnewline % end of row
}
% Nothing between groups:
\renewcommand*{\glsgroupskip}{}
}
\newglossaryentry{subscripts}{
type=symbols,
name={\textbf{Subscripts}},
description={\nopostdesc},
sort=d,
}
\newglossaryentry{symb:sub:alpha}{
type=symbols,
name=$\alpha$,
description={entry},
symbol={},
sort=α:entry,
parent=subscripts,
}
\newglossaryentry{symb:sub:omega}{
type=symbols,
name=$\omega$,
description={exit},
symbol={},
sort=ω:exit,
parent=subscripts,
}
\newglossaryentry{symb:sub:relative}{
type=symbols,
name=rel,
description={relative},
symbol={},
sort=r:relative,
parent=subscripts,
}
\newglossaryentry{symb:sub:saturation}{
type=symbols,
name=sat,
description={saturation},
symbol={},
sort=s:saturation,
parent=subscripts,
}
\begin{document}
\glsaddall[types={symbols}]
\printsymbols[
style=symbver,
]
\end{document}
% ---------------------------