[xindy] Problems with merge-rule
Brought to you by:
jschrod
|
From: Simon S. <si...@si...> - 2017-01-16 07:19:36
|
Hi,
I have some trouble with merge-rules. It’s probably just me not understanding something properly, but help is appreciated.
Consider the following MWE:
\RequirePackage{filecontents}
\documentclass{article}
\usepackage{imakeidx}
\begin{filecontents*}{test.xdy}
(merge-rule "More, Thomas" "Morus, Thomas" :again )
(merge-rule "… (.*)" "\1" :again)
\end{filecontents*}
\def\xindyopt{-d level=3 -t xindyxindy.log -C utf8 -M test -M texindy}
\makeindex[program=truexindy,options=\xindyopt]
\usepackage{fontspec}
\setmainfont{TeX Gyre Pagella}
\begin{document}
Test
\index{Mort}
\index{More, Thomas}
\newpage
New Test
\index{Morus, Thomas}
\printindex
\end{document}
What I want to achieve is that the two entries ‚Morus, Thomas‘ and ‚More, Thomas‘ are both sorted under ‚Morus, Thomas‘. In the MWE the are alphabetically sorted correctly – the entry appears after ‚Mort‘ – but what is displayed is ‚More, Thomas‘. This seems to depend entirely on which index entry appears first in the document. If change the order and have \index{Morus, Thomas} first, everything is as it should be. How can I make it, that the ‚Morus, Thomas‘ is printed in the index, regardless of the order of appearance?
Thanks
Simon
--
Simon Spiegel
Steinhaldenstr. 50
8002 Zürich
Telephon: ++41 44 451 5334
Mobophon: ++41 76 459 6039
http://www.simifilm.ch
http://www.utopia2016.ch
„Yesterday is history. Tomorrow is a mystery. Today is a gift. That is why they call it the present.“
|