[Tex/LaTex] Invoking makeindex for nomencl

nomenclaturetexshop

I have spent many many hours failing to implement nomencl for my PhD thesis. The problem seems to be with invoking makeindex and creating the .nls file

I keep reading that I must invoke makeindex or write a Unix command:

makeindex filename.nlo  -s nomencl.ist -o filename.nls

But I don't know how to do this. I would be grateful for some instructions i.e. where do I type the command?

I am using TeXShop 2.43.

Best Answer

Save a new file ~/Library/TeXShop/Engines/Nomenclature.engine with following contents:

#!/bin/sh

bfname=$(dirname "$1")/"`basename "$1" .tex`"
makeindex "$bfname".nlo -s nomencl.ist -o "$bfname".nls

Make this new file executable using chmod u+x ~/Library/TeXShop/Engines/Nomenclature.engine from within a shell or set the executable bit at the file privileges. See, e.g., WikiHow for more information about how to change file privileges.

Restart TeXShop. Now you should have an entry Nomenclature in the drop down menu next to Typeset.

To get a nomenclature first run LaTeX, then Nomenclature, then LaTeX again.