<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Alain,<div><br class="webkit-block-placeholder"></div><div>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.</div><div><br class="webkit-block-placeholder"></div><div>One question, How are you telling TextMate to use the <span class="Apple-style-span" style="font-family: Inconsolata; font-size: 14px; ">--shell-escape option?</span></div><div><font class="Apple-style-span" face="Inconsolata" size="4"><span class="Apple-style-span" style="font-size: 14px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="Inconsolata" size="4"><span class="Apple-style-span" style="font-size: 14px;">Are you setting that option in the Preferences dialog or through the use of a %!TEX option?</span></font></div><div><font class="Apple-style-span" face="Inconsolata" size="4"><span class="Apple-style-span" style="font-size: 14px;"><br class="webkit-block-placeholder"></span></font></div><div><font class="Apple-style-span" face="Inconsolata" size="4"><span class="Apple-style-span" style="font-size: 14px;"><div>%!TEX TS-options = --shell-escape</div><div>%!TEX TS-program = pdflatex</div><div><br class="webkit-block-placeholder"></div><div>As I said yesterday a workaround for you on this problem is to simply use</div><div><br class="webkit-block-placeholder"></div><div>%!TEX TS-program = myscript</div><div><br class="webkit-block-placeholder"></div><div>Where you put your own script that does has everything it needs to typeset this particular file.</div><div><br class="webkit-block-placeholder"></div><div>Brad</div><div><br class="webkit-block-placeholder"></div></span></font></div><div><font class="Apple-style-span" face="Inconsolata" size="4"><span class="Apple-style-span" style="font-size: 14px;"><br></span></font><div><div>On Jan 25, 2008, at 5:44 PM, Alain Matthes wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Now I'm sure : there is a problem with the python script<br><br>because with this command I can compile my file :<br><br># Source some support functions we need.<br>. "${TM_SUPPORT_PATH}/lib/html.sh"<br><br># Get the viewer program. Any program (that works with open -a <name>) can be used,<br># except 'html' which is reserved to mean the internal HTML window. This is also the<br># default option.<br>V=${TM_LATEX_VIEWER:=html}<br><br># Set up some variables we need.<br>TEX=${TM_LATEX_COMPILER:=pdflatex}<br>EL=${TM_LATEX_ERRLVL:=1}<br>M=${TM_LATEX_MASTER:=$TM_FILEPATH}<br>DIR=`dirname "$M"`<br>FILE=`basename "$M"`<br>PDF="${FILE%.tex}.pdf"<br>CWD="`pwd`/"<br><br># Switch to the right directory.<br>cd "$TM_PROJECT_DIRECTORY"<br>cd "$DIR"<br><br># Prepare output window.<br>htmlHeader "Compiling LaTeX (file $FILE)"<br>echo '<h1>Compiling LaTeX...</h1>'<br><br># Check if we actually have a tex compiler<br>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>."<br><br># Function to close window if the error level is low enough.<br>close() {<br><span class="Apple-tab-span" style="white-space:pre">      </span>if (($RC <= $EL)); then closeWindow; fi<br>}<br><br>run_tex () {<br> "$TEX" ${TM_LATEX_OPTIONS:=--shell-escape -interaction=nonstopmode -file-line-error-style} "$1"<br>}<br><br># Compile. Bail out on errors.<br>run_tex "$FILE" 2>&1<br><br><br># View...<br><span class="Apple-tab-span" style="white-space:pre">    </span>open -a "$V" "$PDF"<br><br><br>Best Regards<br><br>Alain<br><br><br>______________________________________________________________________<br>For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>(threading gets destroyed and the universe will collapse if you don't)<br><a href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</a><br></div></blockquote></div><br></div></body></html>