# No file %.nls while using nomencl

I would like to use nomencl. I have the following code:

\usepackage{nomencl}
\makenomenclature
\nomenlature{test}{This is a test}
\printnomenclature
\makeindex My_file.nlo -s nomencl.ist -o My_file.nls"


No file My_file.nls.

All my files are in the same folder and I can see the nlo file.

I am using TeXworks (pdfLaTeX+MakeIndex+BibTeX) and Windows Vista.

-

The command \makeindex doesn't have any arguments. The arguments you are showing must be used for the compilation makeindex:

Suppose your file has the name demo than you have to call

pdfLaTeX demo.tex
makeindex demo.nlo -s nomencl.ist -o demo.nls
bibtex demo.aux
pdfLaTeX demo.tex
pdfLaTeX demo.tex


To test the compilation steps you can use the following MWE:

\documentclass{article}

\usepackage{nomencl}
\makenomenclature
\nomenclature{test}{This is a test}

\begin{document}
\section{foo}

\printnomenclature
\end{document}


You can simplify the compilation by using arara:

% arara: pdflatex
% arara: bibtex
% arara: nomencl
% arara: pdflatex


and compile the file with arara. The documentation describes the integration of arara inside TeXWorks.

-
Unfortunately, I still get the same error. I will try arara now... – C.Colden May 18 '13 at 18:44
@Denis: Please see my edit. Does the example fail for you? – Marco Daniel May 18 '13 at 18:54
Could you show me the full tex script you are using? Including commands... – C.Colden May 18 '13 at 19:19
@Denis: what do you mean? The example is saved as demo.tex and the compilation is shown too. – Marco Daniel May 18 '13 at 19:22
@Denis: These lines don't contain to the tex-file. These are compilation steps which are done in the terminal. – Marco Daniel May 18 '13 at 19:31