[Tex/LaTex] Why the printnomenclature not working

acronymsnomenclature

This is my Script:
In my class file i added the following entry:

\usepackage[intoc]{nomencl} 
\renewcommand{\nomname}{\large \textbf{Mathematical Notation}}
\makenomenclature
\usepackage{datatool}

\begin{filecontents*}{test.csv}
Acronym,Description
LED,Light emitting diode
FET,Field effect transistor
\end{filecontents*}

\DTLloaddb{acronyms}{test.csv}

\DTLsort{Acronym}{acronyms}

In my acronym.tex file I had this entry:

\chapter*{Terminology / Notation}
\section*{\large \textbf{Acronyms / Abbreviations}}

\begin{itemize}

\DTLforeach*{acronyms}{\thisAcronym=Acronym,\thisDesc=Description}%
  {\item \textbf{\thisAcronym} \thisDesc}%
\end{itemize}
\printnomenclature

In my Chapter1:

$\gamma = \int_1^\infty\left({1\over\lfloor x\rfloor}
-{1\over x}\right)\,dx$
\nomenclature{$\gamma$}{Euler–Mascheroni constant\nomrefpage}

In my Main tex file:

\begin{document}
\include{Acronyms/acronyms}
\end{document}

Actually, I am expecting the Acronym and Nomenclature should be under the same "Terminology/Notation" but should be printed in separate page. Because i don't want to use glossary stuff as its quite complicated to compile in windows under Texlipse..So i used datatool package where we can specify list of acronyms which can be saved to csv and written back to pdf*. Also i wanted to use nomenclature because of having equations in my report..If we use independently the nomenclature package its working fine..but when i use \printnomenclature in acrnonym.tex file nomenclature is not getting printed..Any helps?

Best Answer

You're probably missing the necessary makeindex run (related question here). The following MWE using your excerpts works fine for me -- I recommend using latexmk and an appropriate .latexmkrc to make this easier:

\documentclass{report}
\usepackage[intoc]{nomencl} 
\renewcommand{\nomname}{\large \textbf{Mathematical Notation}}
\makenomenclature
\usepackage{filecontents}
\begin{filecontents*}{test.csv}
Acronym,Description
LED,Light emitting diode
FET,Field effect transistor
\end{filecontents*}
\begin{filecontents*}{acronyms.tex}
\chapter*{Terminology / Notation}
\section*{\large \textbf{Acronyms / Abbreviations}}
\begin{itemize}
\DTLforeach*{acronyms}{\thisAcronym=Acronym,\thisDesc=Description}%
  {\item \textbf{\thisAcronym} \thisDesc}%
\end{itemize}
\printnomenclature
\end{filecontents*}
\usepackage{datatool}
\DTLloaddb{acronyms}{test.csv}
\DTLsort{Acronym}{acronyms}
\begin{document}
\chapter{One}
This document works fine as long as you run the right \verb|makeindex| command.
It may be easiest to use \verb|latexmk| with the following lines in a file named
\verb|.latexmkrc| or \verb|latexmkrc| in the same directory as the .tex files.
\begin{verbatim}
add_cus_dep("nlo", "nls", 0, "nlo2nls");
sub nlo2nls {
    system("makeindex $_[0].nlo -s nomencl.ist -o $_[0].nls -t $_[0].nlg");
}
\end{verbatim}
$\gamma = \int_1^\infty\left({1\over\lfloor x\rfloor}
-{1\over x}\right)\,dx$
\nomenclature{$\gamma$}{Euler-Mascheroni constant\nomrefpage}
\include{acronyms}
\end{document}
Related Question