Tuesday, January 23, 2007

Nomencl

Q. Make my nomenclatures work damnit!

A. ok ok.. so i've been focusing on this for the better part of a week. But i found an easier solution that doesn't require applescript or shell scripts to do it. In the folder ~/library/texshop/engines I copied the tetex engine and renamed it nomenclature.engine with the following text inside it:

#!/bin/sh

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


The exact directory location of nomencl.ist is required since i manually installed my own updated version of nomencl.ist

Now I typset it Latex-Nomenclature-Latex and everything works beautifully!


Or change the last line to:

makeindex "$bfname".nlo -s nomencl.ist -o "$bfname".nls

if you have an updated copy of nomencl.

No comments: