[TxMt] add a script for latex

Alain Matthes alain.matthes at mac.com
Sat Jan 7 17:23:07 UTC 2006


Hello

i need to use this script for latex:

> #!/bin/sh
> location=$(dirname "$1")
> basefname="${location}/`basename "$1" .tex`"
> # process the figures
> latex --shell-escape "$1"
> dvips -Ppdf -o "${basefname}-pics.ps" "${basefname}.dvi"
> ps2pdf13 "${basefname}-pics.ps" "${basefname}-pics.pdf"
> /bin/rm "${basefname}-pics.ps" "${basefname}.dvi"
> #process the file (once)
> pdflatex --shell-escape "$1"
>

but i don't know how to make this.

Perhaos i need to modify the script in the command Typset & View :

run_tex () {
if [ "$TEX" != latexmk.pl ]
	then "$TEX" ${TM_LATEX_OPTIONS:= --shell-escape - 
interaction=nonstopmode -file-line-error-style} "$1"
	else "$TEX" -f -r "${TM_BUNDLE_PATH}/latexmkrc" "$1"
fi
}


An idea ?

Thanks

Alain Matthes



More information about the textmate mailing list