[TxMt] LaTeX: Makeindex for nomencl

Jonas Müller muellerj at gmx.de
Thu May 1 15:25:51 UTC 2008


Something like this should do the job:

# Set up file and dirname
M=${TM_LATEX_MASTER:=$TM_FILEPATH}
DIR=`dirname "$M"`
FILE=`basename -s.tex "$M"`
PDF="${FILE%.tex}.pdf"
CWD="`pwd`/"

# Switch to the right directory.
cd "$TM_PROJECT_DIRECTORY"
cd "$DIR"

makeindex "$FILE"

(this assumes you have /usr/texbin/ or equivalent in your PATH).

Best,
Jonas

On 1 May 2008, at 16:15, Christian wrote:

> Hi Brad,
> I never did anything with programming. How would I have to write  
> that simple textmate command for makeindex?
> ThanksChristian
> Am 01.05.2008 um 14:42 schrieb Brad Miller:
>> Christian,
>>
>> There is no easy way to pass special arguments to the makeindex  
>> command right now.
>>
>> After This semester is over I can look at adding special options  
>> for bibtex and makeindex to the Latex preferences panel, but that  
>> doesn't help you today.
>>
>> In the meantime, I think you either need to keep running makeindex  
>> from the command line or write a simple textmate command that  
>> invokes the command below.
>>
>> Brad
>>
>>
>> On May 1, 2008, at 6:45 AM, Christian wrote:
>>
>>> Am 30.04.2008 um 15:10 schrieb Christian:
>>>> Hi,
>>>>
>>>> Creating a nomenclature with nomencl needs to invoke MakeIndex  
>>>> with the following:
>>>>
>>>> makeindex ⟨filename ⟩.nlo -s nomencl.ist -o  
>>>> ⟨filename ⟩.nls
>>>>
>>>> The *.nlo file is successfully created after running LaTeX and I  
>>>> would like invoke MakeIndex as I do it when compiling the  
>>>> document with LaTeX.
>>>>
>>>> How could I do that?
>>>>
>>>> Thanks in advance,
>>>> Christian
>>>
>>> That should be possible with TM. Does somebody have any hints,  
>>> please...?
>>>
>>>
>>> Thanks
>>> Christian
>>>
>>> ______________________________________________________________________
>>> For new threads USE THIS: textmate at lists.macromates.com
>>> (threading gets destroyed and the universe will collapse if you  
>>> don't)
>>> http://lists.macromates.com/mailman/listinfo/textmate
>>
>>
>> ______________________________________________________________________
>> For new threads USE THIS: textmate at lists.macromates.com
>> (threading gets destroyed and the universe will collapse if you  
>> don't)
>> http://lists.macromates.com/mailman/listinfo/textmate
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate




More information about the textmate mailing list