Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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.

share|improve this answer
    
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
1  
@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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.