[Tex/LaTex] Creating an engine in TexShop for nomenclature

nomenclaturetexshop

I am following this guide to create an engine-file for TexShop to facilitate the use of the nomenclature package. However, after invoking the engine, it does not happen anything at all – I get no error messages, nor is a file created.

I am using TexShop 3.06 under MacOS Lion and already tried to rule out obvious mistakes (like forgotten return keys etc.). Even if I place echo-commands in the engine file, I get no output.

Are there any ideas on how to obtain a working menu entry?

Best Answer

This might be a correct version of the Nomenclature.engine file:

#! /bin/bash
PATH=/usr/texbin:/usr/local/bin:${PATH}
bfname=${1%\.*}
makeindex "$bfname".nlo -s nomencl.ist -o "$bfname".nls

In my tests it does the required call.

Related Question