# Using package nomencl

I have used the package nomencl. In my code I have incorporated the \nomenclature as well. But when I compile, it is not showing me any results. My code is :

\documentclass[pdftex,12pt,a4paper]{report}
\usepackage{nomencl}
\makenomenclature
\begin{document}
---page numbering and other things included-----
\include{symbols}
-----others---
\end{document}


### symbols.tex

\chapter*{NOTATIONS}
\nomenclature{$G_e$}{Equivalent Shear Modulus}
\printnomenclature


Shall I use \nomenclature while explaining the chapter. Will It give me the same results? like

\documentclass[pdftex,12pt,a4paper]{report}
\usepackage{nomencl}
\makenomenclature
\begin{document}
---page numbering and other things included-----
\include{symbols}
\include{chap3-calculate_w}
-----others---
\end{document}


### symbols.tex

\chapter*{NOTATIONS}
\printnomenclature


### chap3-calculate_w.tex

\chapter{SETTLEMENT RESPONSE OF GEOSYNTHETIC REINFORCED GRANULAR FILL SOFT SOIL}
\label{chap:W}
\section{INTRODUCTION}
In this thesis, the methodology to determine an  Equivalent single layer shear modulus \nomenclature{$G_e$}{Equivalent Shear Modulus},$G_e$ value for a...etc


I am not getting the output in both these. Can someone help me with this?

-
Please edit your MWE and format the code block by selecting it and clicking on the {} symbol. Thanks. Also, review your earlier questions and accept any answers that were helpful to you. –  Peter Grill Sep 8 '11 at 3:23
After running LaTeX, did you run makeindex <filename>.nlo -s nomencl.ist -o <filename>.els, and then rerun LaTeX? –  Peter Grill Sep 8 '11 at 3:43
Since you are using TeXMaker you need to define the sequence of commands used by the Quick Build command via the Configure Texmaker dialog to include the above mentioned options to makeindex. –  Peter Grill Sep 8 '11 at 5:50
I'd just like to add that I had a similar issue, and it turned out to be a problem caused by using \pagenumbering{gobble} - a command that "eated up" the nomenclature section in the compiled document. –  arbolitoloco Mar 5 at 22:27

The nomencl package documentation explicitly states the compile sequence in order to use the package:

latex <filename>.tex
makeindex <filename>.nlo -s nomencl.ist -o <filename>.nls
latex <filename>.tex


If you're using pdflatex, the same sequence holds. After following this sequence, your nomenclature chapter is printed, as expected:

-
I'm sorry I can't get it. I compiled using pdflat and then quick builded it. But I am not getting the results. –  Reshma B Sep 8 '11 at 4:06
You need to compile using pdflatex, then run makeindex, then run pdflatex again. What does quick build mean? –  Werner Sep 8 '11 at 4:22
Kind of annoying - but I guess one can build this into your compile commands. –  Forkrul Assail Aug 29 '12 at 16:59
@ForkrulAssail arara aside, this can be integrated with latexmk –  mlt May 20 '14 at 23:21

Using kile, I have configured the QuikBuild command as follows:

go to: Settings -> Configure Kile... -> Build

create a new tool:

• Name: "MakeIndexNomencl"
• Command: makeindex
• Options: '%S.nlo' -s nomencl.ist -o '%S.nls'

add MakeIndexNomencl and a second PDFLaTeX to the QuickBuild tool:

• PDFLaTeX
• MakeIndexNomencl
• PDFLaTeX
-

arara has a predefined nomencl rule, so you can use (from the nomencl documentation) the following directives:

% arara: pdflatex
% arara: nomencl
% arara: pdflatex
\documentclass{article}

\usepackage{nomencl}
\makenomenclature

\begin{document}

\section*{Main equations}

$$a=\frac{N}{A}$$%

\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}


Running arara:

\$ arara mydoc.tex
__ _ _ __ __ _ _ __ __ _
/ _ | '__/ _ | '__/ _ |
| (_| | | | (_| | | | (_| |
\__,_|_|  \__,_|_|  \__,_|

Running PDFLaTeX... SUCCESS
Running Nomencl... SUCCESS
Running PDFLaTeX... SUCCESS


The output:

-

This may have been answered sufficiently elsewhere, but I configured TeXmaker to do this automatically by adding the flowing line of code to the makeindex. I imagine it maybe possible to do something similar in other editors.

Go to;

options,

Configure TeXmaker,

then in the makeindex box add

%.nlo -s nomencl.ist -o %.els`

to the end of whatever is already in the box, separated by a space.

I am using TeXmaker under windows 7 and this worked for me, hopefully its helpful.

-