I want to use the nomenclature to make a custom index of files in a directory. As long as my section starts with a letter, there is no problem. But if I want to section it with a number it does not work.
I got this MWE from Nomenclature section :
\documentclass{article}
\usepackage{nomencl}
\usepackage{ifthen}
\renewcommand{\nomgroup}[1]{%
\ifthenelse{\equal{#1}{A}}{\item[\textbf{A}]}{%
\ifthenelse{\equal{#1}{0}}{\item[\textbf{0}]}
{}
}
}
}
\makenomenclature
\nomenclature[A]{$\Omega_N$}{Set of all buses (nodes).}
\nomenclature[A]{$n,m$}{Index of all buses (nodes). $m$ is alias of $n$.}
\nomenclature[A]{$\Omega_L$}{Set of all Transmission lines.}
\nomenclature[A]{$l$}{Index of transmission lines.}
\nomenclature[0]{$\Omega_{K}$}{Set of all genetors.}
\begin{document}
Some text
\printnomenclature
\end{document}
What should happen: I get an index with two sections: One starting at 0 (one entry) and the other section A has four entries.
This is what I get: I get an index with a section with no label, one entry and the other section A with four entries. For some reason, 0 is not recognized.
I've tried
\ifthenelse{#1=0}}{\item[\textbf{0}]}
as well ... no luck. Maybe 0 is a number and does not like to be compared as string...?!
EDIT: I need sections 0-9 and a-z for my index.
Any ideas are appreciated.

nomenclis not able to distinguish between digits: when you have\nomenclature[<digit>]{...}{...}the entry is placed in the “Symbols” group irrespective of the<digit>. And just the first character is used for this purpose. – egreg Mar 26 '15 at 10:08glossariespackage that has much more features. – egreg Mar 26 '15 at 10:20glossariescan handle onlyA...Zas well asnomencland I think it is for the same reason. – karlkoeller Mar 26 '15 at 10:23