Alain,

I'm sorry, but I've spent a lot of time trying to get giac and whatever to install and work but it does not work for me.  So I cannot reproduce your problem.

One question, How are you telling TextMate to use the --shell-escape option?

Are you setting that option in the Preferences dialog or through the use of a %!TEX option?

%!TEX TS-options = --shell-escape
%!TEX TS-program = pdflatex

As I said yesterday a workaround for you on this problem is to simply use

%!TEX TS-program = myscript

Where you put your own script that does has everything it needs to typeset this particular file.

Brad


On Jan 25, 2008, at 5:44 PM, Alain Matthes wrote:


Now I'm sure : there is a problem with the python script

because with this command I can compile my file :

# Source some support functions we need.
. "${TM_SUPPORT_PATH}/lib/html.sh"

# Get the viewer program. Any program (that works with open -a <name>) can be used,
# except 'html' which is reserved to mean the internal HTML window. This is also the
# default option.
V=${TM_LATEX_VIEWER:=html}

# Set up some variables we need.
TEX=${TM_LATEX_COMPILER:=pdflatex}
EL=${TM_LATEX_ERRLVL:=1}
M=${TM_LATEX_MASTER:=$TM_FILEPATH}
DIR=`dirname "$M"`
FILE=`basename "$M"`
PDF="${FILE%.tex}.pdf"
CWD="`pwd`/"

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

# Prepare output window.
htmlHeader "Compiling LaTeX (file $FILE)"
echo '<h1>Compiling LaTeX...</h1>'

# Check if we actually have a tex compiler
require_cmd "$TEX" "You can either set the <tt>TM_LATEX_COMPILER</tt> variable to the full path of your LaTeX compiler (e.g. <tt>/opt/local/bin/pdflatex</tt> or set the <tt>PATH</tt> variable to include the path of <tt>pdflatex</tt>."

# Function to close window if the error level is low enough.
close() {
if (($RC <= $EL)); then closeWindow; fi
}

run_tex () {
"$TEX" ${TM_LATEX_OPTIONS:=--shell-escape -interaction=nonstopmode -file-line-error-style} "$1"
}

# Compile. Bail out on errors.
run_tex "$FILE" 2>&1


# View...
open -a "$V" "$PDF"


Best Regards

Alain


______________________________________________________________________
For new threads USE THIS: textmate@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate