hello
I try to understand how work this file but I don't know python
if texCommand == 'latexmk': writeLatexmkRc(engine,constructEngineOptions(tsDirs,tmPrefs)) if engine == 'latex': texCommand = 'latexmk.pl -pdfps -f -r /tmp/latexmkrc ' else: texCommand = 'latexmk.pl -pdf -f -r /tmp/latexmkrc '
If I understand, in ayy case, you use latexmk ? is it possible to use pdflatex directly without latexmk ?
Regards Alain
Alain,
latexmk is only used if it the preference for it is checked in the latex bundle preferences. If latexmk is used any options you have specified are passed along to latexmk through the temporary rc file.
Brad
On Jan 26, 2008, at 2:47 AM, Alain Matthes wrote:
hello
I try to understand how work this file but I don't know python
if texCommand == 'latexmk': writeLatexmkRc(engine,constructEngineOptions(tsDirs,tmPrefs)) if engine == 'latex': texCommand = 'latexmk.pl -pdfps -f -r /tmp/latexmkrc ' else: texCommand = 'latexmk.pl -pdf -f -r /tmp/latexmkrc '
If I understand, in ayy case, you use latexmk ? is it possible to use pdflatex directly without latexmk ?
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 à 13:28, Brad Miller a écrit :
Alain,
latexmk is only used if it the preference for it is checked in the latex bundle preferences. If latexmk is used any options you have specified are passed along to latexmk through the temporary rc file.
ok
in texMate.py and def run_latex, i put
texin,tex = os.popen4("pdflatex --shell-escape - interaction=nonstopmode -file-line-error-style"+" " +"/Users/ego/ Desktop/try/trytablor.tex")
I've the same problem but I see in the folder /try a .pdf file and some others files but these files are removed.
I would like to keep these files, how to do this ?
os.popen4 ?? Is it possible to use another command ?
Regards Alain
On Jan 26, 2008, at 6:59 AM, Alain Matthes wrote:
Le 26 janv. 08 à 13:28, Brad Miller a écrit :
Alain,
latexmk is only used if it the preference for it is checked in the latex bundle preferences. If latexmk is used any options you have specified are passed along to latexmk through the temporary rc file.
ok
in texMate.py and def run_latex, i put
texin,tex = os.popen4("pdflatex --shell-escape - interaction=nonstopmode -file-line-error-style"+" " +"/Users/ego/ Desktop/try/trytablor.tex")
I've the same problem but I see in the folder /try a .pdf file and some others files but these files are removed.
I would like to keep these files, how to do this ?
os.popen4 ?? Is it possible to use another command ?
os.popen4 executes the command as a subprocess and returns a pipes to standard in / standard out/error These pipes are used to parse the output from latex.
As an experiment you could try os.system("pdflatex --shell-escape - interaction=nonstopmode -file-line-error-style"+" " +"/Users/ego/ Desktop/try/trytablor.tex")
This will run the command in a subshell, but will not return pipes for parsing. I don't think it should make any difference but who knows. I really cannot explain why this is not working for you but I know nothing about the intricacies of metapost and even less about giac.
Brad
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 à 14:41, Brad Miller a écrit :
os.system("pdflatex --shell-escape -interaction=nonstopmode -file- line-error-style"+" " +"/Users/ego/Desktop/try/trytablor.tex")
Yes with this command I've the pdf !
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} Output written on trytablor.pdf (1 page, 33644 bytes). Transcript written on trytablor.log.
Well, now how to contourn the problem ?
Regards Alain
openp4 perhaps have some options ?
On Jan 26, 2008, at 7:57 AM, Alain Matthes wrote:
Le 26 janv. 08 à 14:41, Brad Miller a écrit :
os.system("pdflatex --shell-escape -interaction=nonstopmode -file- line-error-style"+" " +"/Users/ego/Desktop/try/trytablor.tex")
Yes with this command I've the pdf !
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} Output written on trytablor.pdf (1 page, 33644 bytes). Transcript written on trytablor.log.
Well, now how to contourn the problem ?
Regards Alain
openp4 perhaps have some options ?
I'm investigating... It looks like the subprocess module may allow me to replace os.popen4 in a way that will work well.
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 à 14:41, Brad Miller a écrit :
os.popen4 executes the command as a subprocess and returns a pipes to standard in / standard out/error These pipes are used to parse the output from latex.
As an experiment you could try os.system("pdflatex --shell-escape - interaction=nonstopmode -file-line-error-style"+" " +"/Users/ego/ Desktop/try/trytablor.tex")
This will run the command in a subshell, but will not return pipes for parsing. I don't think it should make any difference but who knows. I really cannot explain why this is not working for you but I know nothing about the intricacies of metapost and even less about giac.
I try
os.system(ltxcmd+" "+shell_quote(texfile)) texin,tex = os.popen4(ltxcmd+" "+shell_quote(texfile))
The first command creates the .pdf files but after popen4 the file is removed !
Regards Alain
On Jan 26, 2008, at 8:31 AM, Alain Matthes wrote:
Le 26 janv. 08 à 14:41, Brad Miller a écrit :
os.popen4 executes the command as a subprocess and returns a pipes to standard in / standard out/error These pipes are used to parse the output from latex.
As an experiment you could try os.system("pdflatex --shell-escape - interaction=nonstopmode -file-line-error-style"+" " +"/Users/ego/ Desktop/try/trytablor.tex")
This will run the command in a subshell, but will not return pipes for parsing. I don't think it should make any difference but who knows. I really cannot explain why this is not working for you but I know nothing about the intricacies of metapost and even less about giac.
I try
os.system(ltxcmd+" "+shell_quote(texfile)) texin,tex = os.popen4(ltxcmd+" "+shell_quote(texfile))
The first command creates the .pdf files but after popen4 the file is removed !
That is because you are running the command twice. system runs the command but does not give me access to parse the output. popen4 runs the command too but also gives me access to its output.
system creates a subshell to run the program in, and that appears to work. popen creates a subprocess, and that appears to be the difference that is causing your particular program to fail.
As I said, I'm investigating the subprocess module which appears to be a more flexible replacement for system and popen*
Brad
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