2

This question already has an answer here:

I'm not able to run the following example in Texmaker:

\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 use MiKTeX under Windows with the following Texmaker configuration:

enter image description here

and run the sequence:

enter image description here

I followed this answer to configure my editor without success. Thanks for your help

marked as duplicate by R. Schumacher, user13907, cfr, Paul Gaborit, Svend Tveskæg May 5 '15 at 1:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    I have never used either nomencl or makeindex before but: I just went to texdoc.net/texmf-dist/doc/latex/nomencl/nomencl.pdf and it is very clear that you need to run makeindex and not bib(la)tex. Additionally you need the appropriate *.lst file. So read the above reference and hopefully you will have success. – R. Schumacher May 4 '15 at 19:52
  • @R.Schumacher Running MakeIndex gives me this error: Input index file filename.idx not found. Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...] – latex fan May 4 '15 at 21:48
3

Well , I created a new user command in Texmaker and I named it MAKEINDEX. The configuration of this new command is as follows:

enter image description here

As you see, I added

makeindex %.nlo -s nomencl.ist -o %.nls

in the required command. Then, on my main.tex document, I run the sequence pdflatex -> MAKEINDEX -> pdflatex and it worked fine. Here is the output by the way.

enter image description here

I don't forget to thank R.Schumacher for directing me to re-read the documentation carefully.

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