## 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.

1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2. \documentclass{article}
3. \usepackage{nomencl}
4. \makenomenclature
5. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6. \begin{document}
7.
8. \section*{Main equations}
9.
10. \begin{equation}
11. a=\frac{N}{A}
12. \end{equation}%
13. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14. \nomenclature{$a$}{The number of angels per unit area}%
15. \nomenclature{$N$}{The number of angels per needle point}%
16. \nomenclature{$A$}{The area of the needle point}%
17. The equation $\sigma = m a$%
18. \nomenclature{$\sigma$}{The total mass of angels per unit area}%
19. \nomenclature{$m$}{The mass of one angel}
20. follows easily.
21. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22. \printnomenclature
23. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
24. \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: 9549
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

1. makeindex <yourfilename>.nlo -s nomencl.ist -o <yourfilename>.nls
2. pause>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 7943 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.