hello
I've a file and I can compile this file with texshop
A lot of teachers can compile it on Linux and XP
I can compile it with the TERMINAL`
pdflatex --shell-escape /Users/ego/Boulot/SANDBOX/trytablor.tex This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) \write18 enabled. %&-line parsing enabled. entering extended mode ..... This is MetaPost, Version 0.993 (Web2C 7.5.6) (XCasmpTV.mp (/Users/ego/Library/texmf/metapost/tableauVariation.mp) [0] ) 1 output file written: XCasmpTV.0 Transcript written on XCasmpTV.log. [MP to PDF] (./XCasmpTV.0) [1{/usr/local/texlive/2007/texmf-var/ fonts/map/pdf tex/updmap/pdftex.map}] (./trytablor.aux) ){/usr/local/texlive/2007/ texmf-dist/ fonts/enc/dvips/base/8r.enc}</usr/local/texlive/2007/texmf-dist/fonts/ type1/pub lic/fourier/fourier-ms.pfb></usr/local/texlive/2007/texmf-dist/fonts/ type1/adob e/utopia/putb8a.pfb></usr/local/texlive/2007/texmf-dist/fonts/type1/ adobe/utopi a/putbi8a.pfb></usr/local/texlive/2007/texmf-dist/fonts/type1/adobe/ utopia/putr 8a.pfb></usr/local/texlive/2007/texmf-dist/fonts/type1/adobe/utopia/ putri8a.pfb
Output written on trytablor.pdf (1 page, 33559 bytes). Transcript written on trytablor.log.
but with textmate
This is MetaPost, Version 0.993 (Web2C 7.5.6) {/usr/local/texlive/2007/texmf-var/fonts/map/pdftex/updmap/pdftex.map} !pdfTeX error: pdflatex (file /usr/local/texlive/2007/texmf-var/fonts/ map/pdfte x/updmap/pdftex.map): fflush() failed ==> Fatal error occurred, no output PDF file produced!
I would like to be sure that the problem is the script.
My question : Is it possible to use the old script or a new script for pdflatex to make a test ?
Alain
Regards
The file : tablor is on CTAN you need to install giac_osx %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% the file use giac and metapost %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{graphicx,tablor} \usepackage[upright]{fourier} \DeclareGraphicsRule{*}{mps}{*}{} \begin{document}
\begin{TV} TV([-5,7],[],"f","x",x^2,0,\tv) \end{TV}
\end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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
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
Le 26 janv. 08 à 02:35, Brad Miller a écrit :
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.
You need two files giac for osx and tableauVariation.mp (with google you can find them but I put the links below)
1) Giac install
download he version console for mac here
ftp://ftp-fourier.ujf-grenoble.fr/xcas/giac_osx.gz
gzip -d giac_osx.gz but perhaps the file is auto decompressed
sudo cp giac_osx /usr/local/bin/giac
sudo chmod +x giac or chmod 755 giac
try $giac
it's a good soft !
you have an english page here:
http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
2) tableauVariation.mp you need also a metapost file :
http://frederic.mazoit.free.fr/LaTeX_metapost/tableauVariations/tableauVaria...
you put this one in your Home here : Library/texmf/metapost/
One question, How are you telling TextMate to use the --shell-escape option?
with your preferences system
Bundles > LaTeX > Preferences and --shell-escape in the options
I can work with gnuplot without problem
Are you setting that option in the Preferences dialog
yes
or through the use of a %!TEX option?
no
%!TEX TS-options = --shell-escape %!TEX TS-program = pdflatex
I try but without success
As I said yesterday a workaround for you on this problem is to simply use
%!TEX TS-program = myscript
no! same error I have only one pdflatex : /usr/local/texlive/2007/bin/i386-darwin/ pdflatex with a mactex install
It's the same with the ppc
Where you put your own script that does has everything it needs to typeset this particular file.
I don't understand ( sorry my english is poor )
My script is the old script before the python script and I retire some parts because now we don't have LatexErrWarnHtml.py
I use Bundle Editor > Latex > new Command
input : none output : show as Html
With my script , I compile on a macbook intel and a G5 ppc but it's ugly
Regards Alain
On Jan 26, 2008, at 1:27 AM, Alain Matthes wrote:
Le 26 janv. 08 à 02:35, Brad Miller a écrit :
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.
%!TEX TS-options = --shell-escape %!TEX TS-program = pdflatex
I try but without success
As I said yesterday a workaround for you on this problem is to simply use
%!TEX TS-program = myscript
no! same error I have only one pdflatex : /usr/local/texlive/2007/bin/i386-darwin/ pdflatex with a mactex install
It's the same with the ppc
Where you put your own script that does has everything it needs to typeset this particular file.
I don't understand ( sorry my english is poor )
My script is the old script before the python script and I retire some parts because now we don't have LatexErrWarnHtml.py
I use Bundle Editor > Latex > new Command
input : none output : show as Html
With my script , I compile on a macbook intel and a G5 ppc but it's ugly
Regards Alain
Alain,
Make a file called mytex.sh
#!/bin/bash pdflatex --shell-escape -interaction=nonstopmode -file-line-error $1
Save this in a directory that is on your path. ~/bin, /usr/loca/bin then make sure it is executable: chmod +x mytex.sh
At the top of tablor.tex put the line
%!TEX TS-program = mytex.sh
Now when you run Typeset & View your script will be run as the typesetting command.
Brad
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
Le 26 janv. 08 à 13:57, Brad Miller a écrit :
Alain,
Make a file called mytex.sh
#!/bin/bash pdflatex --shell-escape -interaction=nonstopmode -file-line-error $1
Save this in a directory that is on your path. ~/bin, /usr/loca/bin then make sure it is executable: chmod +x mytex.sh
At the top of tablor.tex put the line
%!TEX TS-program = mytex.sh
Now when you run Typeset & View your script will be run as the typesetting command.
I make this and always the same error !
Sorry :(
Regards Alain
Le 26 janv. 08 à 13:57, Brad Miller a écrit :
Now when you run Typeset & View your script will be run as the typesetting command.
Brad
I try this :
texin,tex = os.popen4(ltxcmd+" "+shell_quote(texfile)) print tex.read()
I know that is stupid and i've a fatal error but i've the .pdf file
I think there is a problem around popen4 . Some friends have the same error but with OS X.4, I work with Leopard.
The end of my .log \openout3 = `XCasTV.out'.
system(giac <XCasTV.in )...executed.
system(mpost XCasmpTV)...executed.
File: XCasmpTV.0 Graphic file (type mps) [MP to PDF] (./XCasmpTV.0) [1
{/usr/local/texlive/2007/texmf-var/fonts/map/pdftex/updmap/ pdftex.map}] (./tryt ablor.aux) ) Here is how much of TeX's memory you used: 2482 strings out of 94073 31399 string characters out of 1162984 73292 words of memory out of 1500000 5738 multiletter control sequences out of 10000+50000 11394 words of font info for 24 fonts, out of 1200000 for 2000 645 hyphenation exceptions out of 8191 28i,5n,21p,370b,341s stack positions out of 5000i,500n,6000p,200000b, 5000s {/usr/local/texlive/2007/texmf-dist/fonts/enc/dvips/base/8r.enc}</u sr/local/texlive/2007/texmf-dist/fonts/type1/public/fourier/fourier- ms.pfb></us r/local/texlive/2007/texmf-dist/fonts/type1/adobe/utopia/putb8a.pfb></ usr/local /texlive/2007/texmf-dist/fonts/type1/adobe/utopia/putbi8a.pfb></usr/ local/texli ve/2007/texmf-dist/fonts/type1/adobe/utopia/putr8a.pfb></usr/local/ texlive/2007 /texmf-dist/fonts/type1/adobe/utopia/putri8a.pfb> Output written on trytablor.pdf (1 page, 33644 bytes). PDF statistics: 27 PDF objects out of 1000 (max. 8388607) 0 named destinations out of 1000 (max. 131072) 1 words of extra memory for PDF output out of 10000 (max. 10000000)