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 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}
\addcontentsline{toc}{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}
\addcontentsline{toc}{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?

share|improve this question
    
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

4 Answers 4

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}

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

Running arara:

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

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

The output:

Output

share|improve this answer

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:

Nomenclature

share|improve this answer
    
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
1  
@ForkrulAssail arara aside, this can be integrated with latexmk –  mlt May 20 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
share|improve this answer

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.

share|improve this answer

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.