LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and AcronymsNomenclature 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

Postby JJ » Fri Jul 10, 2009 11:12 am

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 9416
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sat Jul 11, 2009 1:05 am

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
Site admin

spiegboy
Posts: 120
Joined: Thu Dec 06, 2007 9:58 am

Postby spiegboy » Sat Jul 11, 2009 6:32 am

write a batch file

  1. makeindex <yourfilename>.nlo -s nomencl.ist -o <yourfilename>.nls
  2. pause>nul

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Sat Jul 11, 2009 9:37 am

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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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

Postby JJ » Sat Jul 11, 2009 12:17 pm

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: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Sat Jul 11, 2009 1:21 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
nomenclature.png
Supplement for a build profile to get a nomenclature.
nomenclature.png (14.15 KiB) Viewed 7686 times
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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

Postby JJ » Sun Jul 12, 2009 8:44 pm

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


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 1 guest