[Tex/LaTex] Problem with nomenclature

acronymsnomenclaturetexmaker

I am trying to get a list of abbreviations into my paper using the

\usepackage{nomencl}
\makenomenclature

package. However, I won't create a list in my document when I type

\printnomenclature

Can anyone please help? I am very new to Tex, so please help me out.
The documentation says I have to run makeindex <filename>.nlo -s nomencl.ist -o <filename>.nls
I have no idea what this means, nor do I know where to type this or what filename to enter.

My file looks like this, and I am typing in TexMaker:

\documentclass[12pt]{article} 
\usepackage{nomencl}
\makenomenclature

\begin{document}

\printnomenclature

\nomenclature{AIMR}{Association for Investment Management and Research}

blablabla AIMR

\end{document}

Best Answer

This is going to be long...

From command prompt:

Let us say that your tex file (file.tex) is in D:\my folder. Open file.tex in texmaker and choose pdflatex in the build list, compile. Now open command prompt (Start→ run → cmd). In the command prompt that opens type

makeindex.exe D:\my folder\file.nlo -s nomencl.ist -o D:\my folder\file.nls

Now go back to texmaker and again compile with pdflatex using build button.

Using arara:

Download and install arara. Make sure that arara.exe is in system path. (while installing, the installer asks this option. Choose yes).

Now open texmaker. Using the menu go to UserUser CommandsEdit User Commands as in the picture.

enter image description here

Now the following window will open. Type Arara in Menu Item and arara % under Command as shown. Now on the left hand side Command 1: Arara should appear as below

enter image description here

Press OK. Now in the build list an entry with arara should appear as shown. Choose it.

enter image description here

Now add following lines to your file.tex:

%% this is file.tex. Following three lines need to be added.
% arara: pdflatex
% arara: nomencl
% arara: pdflatex

\documentclass{amsart}
\usepackage{nomencl}

\usepackage{etoolbox}
\makeatletter
% copy the formatting of section titles
\let\nomencl@section\section
% if the level is greater than 1000, then amsart
% doesn't include the section's title in the toc
\patchcmd{\nomencl@section}{{1}}{{1001}}{}{}
% patch \thenomenclature to call \nomencl@section
% instead of \section*
\patchcmd{\thenomenclature}
  {\section*}
  {\nomencl@section}
  {}{}
\makeatother

\renewcommand{\nomname}{List of Notations}
\makenomenclature

\setcounter{tocdepth}{1}

\nomenclature[000]{$Hi$}{World}

\begin{document}
\tableofcontents

\printnomenclature[1in]

\section{world}
\end{document}

Now press Build button which reads 1: Arara as below:

enter image description here

Hope it is all done well. :-)