In my document I use several glossaries, one of which is for the nomenclature. I have some special wishes for the sorting of this glossary. The easist way to achieve what I want is if I could give the
sort=def option for only one glossary, but as fasr as I can tell this is only available as a package option.
Therefore I think I might have to write my own rules. Since I have no experience with xindy what soever I would like to know if the following rules are a good starting point.
What I want:
- a term
#comes right after
- if a term
Xis followed by an underline it comes right after
X #X X_index #X_index Xindex #Xindex
What I think might be reasonable rules after looking here:
(merge-rule "<startOfLine>\#"(.*)<endOfLine>" "\1~e") (merge-rule "<startOfLine>(.*[^~e])<endOfLine>" "\1~b") (merge-rule "_" "~b")
I am not sure how to force a match for the entire line with the first rule.
I am not sure either how to formulate the
does not end with last character bit in the second rule. The second rule aims to prevent
\#X ending up behind
Furthermore I looked at
samplexdy.tex from the glosaries package (
docfolder/samples) and noted that the according xindy file looked huge, so any pointers on where I insert my rules or what I actually need would be apreciated. And how do I teach
glossaries that I want to use the modified xindy file only for one glossary out of several?