3

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"

I receive the following error:

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.

1 Answer 1

5

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}

enter image description here

You can simplify the compilation by using arara:

Add the lines to your header:

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

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .