[OS X TeX] bibtex8 TeXShop engine

Luis Vitorio Cargnini lvcargnini at gmail.com
Sun Oct 19 20:23:26 CEST 2008


don't try with .aux us ehte basename "$1" .tex or do the following:

this is my engine for nomenclaures
lvcargnini% cat MakeNomencl.engine
#!/bin/tcsh

set path= ($path /usr/texbin /usr/local/bin)
set filename="$1"
set basename="${filename:r}"
makeindex "$basename".nlo -s nomencl.ist -o "$basename".nls

you can use
set filename="$1"
set basename="${filename:r}" for example to take only the base file name

Le 08-10-19 à 13:10, Peter Dyballa a écrit :

>
> Am 19.10.2008 um 16:06 schrieb Alex Hamann:
>
>> #!/bin/tcsh
>> set path= ($path /usr/texbin /usr/local/bin)
>> bibtex8 --wolfgang "$1"
>>
>> but obviously the above code will run the command on the .tex file  
>> not on .aux. Could anybody how to obtain the desired result?
>
>
> You can use the basename command that's able to remove a file name's  
> extension. In some ENGINE files it's use as:
>
> 	set basefname=`basename "$1" .tex`
>
> Then you can use:
>
> 	bibtex8 --wolfgang "${basefname}.aux"
>
> --
> Mit friedvollen Grüßen
>
>  Pete
>
> Das Militär ist eine Pflanze, die mensch sorgfältig pflegen muss,  
> damit sie keine Früchte trägt.	(Jacques Tati)
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>




More information about the macostex-archives mailing list