I have followed this example and read nomencl package documentation and I can't find a solution. The problem is, that I want to insert nomenclature after TOC, where page numbers are turned off. That is why I get the following error written in .ilg file after makeindex command:
-- Illegal page number .
All the entries are rejected, because it can't include nomenclature without value in nompageref. If I include it after the page numbering starts, than everything works as expected. Here is how the line in .nlo file looks like:
\nomenclatureentry{aCDI@[{CDI}]\begingroup Contexts and Dependency Injection\nomeqref {0}|nompageref}{}
As you can see the nompageref is missing value.
Is there a way around to include nomenclature without the need for page number?