Greetings, I recently purchased a new computer and am migrating over to it. I use latex extensively within textmate, and I have never had a problem with the latex bundle before. With the new machine, I can type 'pdflatex file.tex' at the command line and it prepares the file in less than 1 sec. If I run "Typeset & View (PDF)", it takes over 30 seconds before the process begins, then it successfully generates the pdf.
For completeness:
1) Edit latex file 2) Select "Typeset & View (PDF)" 3) Status window appears with spinning wheel ... 30 seconds pass ... 4) latex console output appears in the window: no errors 5) PDF appears in preview
What I cannot figure out is why this initial delay is occurring. The same delay occurs with bibtex from textmate as well.
Any suggestions? I confirmed the preferences, etc. and nothing is out of the ordinary. Again, running the command line has no delay in starting either pdflatex or bibtex.
Thanks for your help, Brian
On 26/08/2008, at 5:07 AM, Brian Powell wrote:
- Status window appears with spinning wheel
... 30 seconds pass ... 4) latex console output appears in the window: no errors
While the delay is not as extreme as your case, this recently started happening for me, too.
I believe it was after upgrading TextMate to a recent "cutting edge" version, but I wasn't really paying attention at the time...
Will
On Mon, Aug 25, 2008 at 2:37 PM, Brian Powell brian@atomicham.com wrote:
Greetings, I recently purchased a new computer and am migrating over to it. I use latex extensively within textmate, and I have never had a problem with the latex bundle before. With the new machine, I can type 'pdflatex file.tex' at the command line and it prepares the file in less than 1 sec. If I run "Typeset & View (PDF)", it takes over 30 seconds before the process begins, then it successfully generates the pdf.
Brian,
I'm not seeing the behavior you describe, but this may help me to figure out what is going on.
Run the following command in your terminal window.
defaults write com.macromates.textmate latexDebug 1
Then run typeset & view again from TextMate. This may help identify where the delay is coming from. Please send me the output in an offlist email and if you can, identify where the delays are.
After you have run typeset & view with debug on you can turn it off again with:
defaults write com.macromates.textmate latexDebug 0
Thanks,
Brad
For completeness:
- Edit latex file
- Select "Typeset & View (PDF)"
- Status window appears with spinning wheel
... 30 seconds pass ... 4) latex console output appears in the window: no errors 5) PDF appears in preview
What I cannot figure out is why this initial delay is occurring. The same delay occurs with bibtex from textmate as well.
Any suggestions? I confirmed the preferences, etc. and nothing is out of the ordinary. Again, running the command line has no delay in starting either pdflatex or bibtex.
Thanks for your help, Brian
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 26/08/2008, at 10:44 AM, Brad Miller wrote:
Run the following command in your terminal window.
defaults write com.macromates.textmate latexDebug 1
Then run typeset & view again from TextMate. This may help identify where the delay is coming from.
In my case, I get this:
turning on debug %!TEX Directives: {'root': '/Users/will/PhD/Thesis/thesis.tex'} master file = thesis.tex
After a "13 spin" delay for this particular document (which is six seconds or thereabouts), it then outputs this:
TEX package list = ['thesis-preamble'] texMateVersion = $Rev: 9044 $ ...
... and continues at normal speed. So I'm guessing whatever parsing is going on to work out what's in the preamble (etc.?) isn't particularly efficient for some sorts of documents.
***
After looking at a couple more documents, I'm guessing that it's not the preamble that's slowly down the parsing but rather the number of \include{}-ed files.
***
Also, I notice that if my input document contains "stuff" after \end{document}, then it's also included in the parsing stage. If the document is:
***** small.tex ***** \documentclass{article} \usepackage{amsmath} \begin{document} test \end{document}
\documentclass{article} \usepackage{graphicx} \begin{document} test \end{document} *********************
Then the parsing includes: TEX package list = ['amsmath', 'graphicx']
I would be very confident in terminating the parsing after the first \end{document} line. On the other hand, if this slows down the parsing at all then it's probably not worth the effort, since not many people will keep multiple documents "stacked up" like this.
Will