## LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ Nomenclature in Texnic Center

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
JJ
Posts: 3
Joined: Fri Jul 10, 2009 11:08 am

### Nomenclature in Texnic Center

Hi All,

I've spent a whole afternoon trying to include a nomenclature page in my report. I've read a lot of pdf's about how to do it and none of them seems to work for me!! Here is a very short example which I literally copy and pasted it from a document I read.

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

For some reason I never get the nomenclature printed. Why are some things so difficult in LaTeX???

Thanks in advance for the help.

Cheers,
John

Stefan Kottwitz
Posts: 9416
Joined: Mon Mar 10, 2008 9:44 pm
Hi John,

you would need a run of the makeindex program, either from the command line or by the output profile. The nomencl documentation describes how to use makeindex and which parameters would be needed.

Stefan

spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am
write a batch file

makeindex <yourfilename>.nlo -s  nomencl.ist -o <yourfilename>.nlspause>nul

localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm
The command line suggested by spiegboy can be integrated into the post-processing section of a build profile in TeXnicCenter (TXC). Start TXC and press Alt+F7 to get the according dialogue window.

Best regards and welcome to the board
Thorsten
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

JJ
Posts: 3
Joined: Fri Jul 10, 2009 11:08 am
Thanks for the help. However, it doesn't seem to work. I did Alt+F7 and copy and pasted the code suggested by spiegboy under 'Command line arguments to pass MakeIndex:'. I've also pasted it under the Postprocessor tab. But still nothing happens. Unfortunately I don't know how to use the command line with texnic center (it doesn't have one). Sorry but I'm not brilliant with Latex!!

Thanks in advance for any help.

John

localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm
An entry in the post-processing section should be enough. Take a build profile (or a copied and renamed one) and do the modifications as seen in the attachment. Adaptation of paths is required. No warranty because untested.
Attachments
Supplement for a build profile to get a nomenclature.
nomenclature.png (14.15 KiB) Viewed 7685 times
LaTeX Community Moderator

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

JJ
Posts: 3
Joined: Fri Jul 10, 2009 11:08 am
Thanks a lot!! It works, I was just doing it wrong.