I use the glossaries
package to create a list of acronyms as well as a list of symbols.
\usepackage[acronym,style=long]{glossaries}
For the list of symbols the standard-glossary is used.
Now I want to sort the list of acronyms alphabetically (sort=standard
), but the list of symbols in order of appearance (sort=def
). How do I do that?
I use MikTeX 2.9 with TeXnicCenter 2 (beta) on Windows 7. My project includes the hyperref
package.
Best Answer
Update:
As from
glossaries
version 4.04 (which I've just uploaded to CTAN) there are now three options for generating glossaries:makeindex
to sort the glossaries.xindy
to sort the glossaries.The options 2 and 3 still can't use independent sort methods for different glossaries, but the new option can:
This only requires two LaTeX runs (no need to use
xindy
ormakeindex
). The list of acronyms is sorted by letter (usingdatatool
's\dtlletterindexcompare
handler) and the main glossary is sorted according to use. Other sort options are:word
(word ordering usingdatatool
's\dtlwordindexcompare
handler),def
(order of definition),case
(case-sensitive usingdatatool
's\dtlcompare
handler) andnocase
(case-insensitive usingdatatool
's\dtlicompare
handler).Page 1:
Page 2:
Main drawbacks:
makeindex
/xindy
(except for theuse
method, which doesn't require any sorting).document
environment.Solution using
datagidx
:Here's my original solution using
datagidx
(part of the datatool bundle):Result: