the original code you have posted seems to work also, if you run pdflatex
, then makeindex
, then pdflatex
again. I have copied and pasted your example into a file named n.tex
. Then, I did
pdflatex n.tex
makeindex n.nlo -s nomencl.ist -o n.nls
pdflatex n.tex
and it seems to work.
You may also want to check a more up-to-date version of the documentation (the one from CTAN):
package page on CTAN;
documentation, linked from CTAN
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 User
→ User Commands
→ Edit User Commands
as in the picture.
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
Press OK
. Now in the build list an entry with arara
should appear as shown. Choose it.
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:
Hope it is all done well. :-)
Best Answer
Your MWE causes the error
which means the environments aren't correctly nested. Move
\end{framed}
before\end{table*}
:Remember that the document build requires a call to the
makeindex
application, as described in Using package nomencl.