MakeIndex, Nomenclature, Glossaries and AcronymsNomenclature in Texnic Center

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

Nomenclature in Texnic Center

Post by JJ »

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.

Code: Select all

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Nomenclature in Texnic Center

Post by Stefan Kottwitz »

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
LaTeX.org admin
spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

Nomenclature in Texnic Center

Post by spiegboy »

write a batch file

Code: Select all

makeindex <yourfilename>.nlo -s  nomencl.ist -o <yourfilename>.nls
pause>nul
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Nomenclature in Texnic Center

Post by localghost »

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
JJ
Posts: 3
Joined: Fri Jul 10, 2009 11:08 am

Nomenclature in Texnic Center

Post by JJ »

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
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Nomenclature in Texnic Center

Post by localghost »

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.
Supplement for a build profile to get a nomenclature.
nomenclature.png (14.15 KiB) Viewed 10984 times
JJ
Posts: 3
Joined: Fri Jul 10, 2009 11:08 am

Re: Nomenclature in Texnic Center

Post by JJ »

Thanks a lot!! It works, I was just doing it wrong.
Post Reply