TransWikia.com

Custom order in index

TeX - LaTeX Asked on April 7, 2021

I would like to define a custom order on the keys in an index. I tried to set the desired order in glossaries descriptions and names, but it doesn’t work (@ behaves differently than I expect). Can you suggest a good workaround?

Here is an MWE:

documentclass{article}
usepackage{glossaries}
usepackage{indextools}
newglossaryentry{foo}{name={1},description={foolongname}}
newglossaryentry{bar}{name={2},description={barlongname}}
makeindex[name=my]
begin{document}
    foo index[my]{glsname{foo}@foo}
    bar index[my]{glsname{bar}@bar}
    printindex[my]
end{document}

enter image description here

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP