CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/esindex



Generates automatically sort keys. Originally only for Spanish, but version 1.5 provides tools for it to be adapted to other languages, so that, for example,


can be made equivalent to


This package is based on the principle that sort keys should be generated in most cases in the context where the entry appears in the document.

Recent changes

1.8   2024-04-27
      - Fix - Some replacements stopped working in pdflatex with utf8
        because of a change the LaTeX LICR.
1.7   2019-10-10
      - Fix - because of a change in a macro name, it stopped
        working with xe/lua
      - Multi-level comparisons (up to 3), to better sort the items.
1.6   2019-09-30
      - Package option 'babel', which wraps each entry not in the main
        language with \foreignlanguage (or other macro).

1.5   2019-01-28
      - Macro \esindexactual, to replace all ocurrences of an entry
        with a new text.
      - Package option 'nospanish', for it to be adapted to other
      - \esindexreplace, \esindexlastchar, \esindexkey now work with

License: MIT

Javier Bezos — http://www.texnia.com

Download the contents of this package in one zip archive (75.2k).

esindex – Generate sorting keys for indexes

With this package sorting keys can be automatically generated. It was originally devised for Spanish, so that, say, \esindex{cañón} is correctly alphabetized in the index, but it can be configured to generate sorting keys for other languages, with custom replacements and multilevel comparisons.

Home pagehttp://www.texnia.com/
Version1.8 2024-04-27
LicensesMIT License
Copyright1998–2024 Javier Bezos
MaintainerJavier Bezos López
Contained inTeX Live as esindex
MiKTeX as esindex
Guest Book Sitemap Contact Contact Author