[Tex/LaTex] How to include notation using nomencl in document

nomenclature

I've been trying to use the nomencl package to start a table of notation. I'm using the example code included in the documentation:

\documentclass{article}
\usepackage{nomencl}
\makenomenclature
\begin{document}
\section*{Main equations}
\begin{equation}
a=\frac{N}{A}
\end{equation}%
\nomenclature{$a$}{The number of angels per unit area}%
\nomenclature{$N$}{The number of angels per needle point}%
\nomenclature{$A$}{The area of the needle point}%
The equation $\sigma = m a$%
\nomenclature{$\sigma$}{The total mass of angels per unit area}%
\nomenclature{$m$}{The mass of one angel}
follows easily.
\printnomenclature
\end{document}

I see this produces the .nlo file as it should, but I can't run it. I gather according to the manual I'm supposed to run a command, but how do I go about doing this – I'm running Windows 7 with TeX Live 2011.

Best Answer

The nomencl documentation states that you have to run

makeindex <filename>.nlo -s nomencl.ist -o <filename>.nls

(from the command line, or as part of your editor workflow) which produces a .nls file, which is used by \printnomenclature. In fact, nomencl defines

\def\@outputfileextension{.nlo}%
\def\@inputfileextension{.nls}%

to be the respective output and input file extensions. The former is created via \makenomenclature, while the latter is used by \printnomenclature.