Monday, January 8, 2007

Nomencl.sty

Question: How do you implement the nomencl.sty package in Latex using the front end for macs called TexShop?

Answer:
Well its not that easy.
  1. First of all you have include two packages in the preamble "\usepackage{nomencl}" and "\usepackage{makeidx}".
  2. Then you have to include the command "\makenomenclature" in your preamble.
    1. This is only true for the newest version of nomencl.ins If you have an older version it will likely want you to use \makeglossary
  3. Use \printnomenclature where you want it printed in the body (generally under the abstract)
  4. \nomenclature{$N$}{This is is the number N} is an example of a line for each item.
  5. Then Typset the document using LaTex
  6. This will create a file called .nlo
  7. In terminal (unfortunately) type:
    1. makeindex Journal\ Paper\ 2006.nlo -s ~/library/texmf/tex/nomencl/nomencl.ist -o Journal\ Paper\ 2006.nls
    2. Clearly this command was for my "Journal Paper 2006.tex" file
    3. furthermore, you must first navigate to the folder containing the .tex file, or include its path in the command
  8. Then go back and typset your document again using Latex

No comments: