On 3/17/07, <b class="gmail_sendername">Paul Nakroshis</b> <<a href="mailto:paulnakroshis@mac.com">paulnakroshis@mac.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The LaTeX bundle is very nice, though the ConTeXt bundle<br>doesn't seem to have a way to typeset the resulting file (at least as<br>far as I can see.) I have configured TeXShop to use Textmate as an<br>external editor---this works, but it is not as nice as working solely
<br>in Textmate.</blockquote><div><br>This is not quite an answer to your question, but when I'm using TextMate as an external editor for TeXShop I find the following script very useful. I've added it as a command to the LaTeX bundle, called "Typeset and view in TeXShop", and I've assigned it to apple-T
<br>(instead of the default typeset and view command).<br><br>It compiles the file in the background (i.e. without bringing TeXShop to the front), and then activates TeXShop when the compilation is complete. (If there's an error, you have to activate TeXShop yourself to see it: there doesn't seem to be any easy way to automatically detect that's happened. I suppose I could check whether the .log file has stayed the same for a couple of seconds...)
<br><br>I like this way of working: TextMate is a wonderful editor, but I prefer TeXShop's console and PDF viewer.<br><br>Robin<br><br>FILENAME="$(basename "$TM_FILEPATH")"<br>osascript <<END &>/dev/null &
<br> tell application "TeXShop"<br> open_for_externaleditor at "$TM_FILEPATH"<br> tell document "$FILENAME"<br> latexinteractive<br> repeat<br> delay 1
<br> if taskdone then<br> exit repeat<br> end if<br> end repeat<br> end tell<br> activate<br> end tell<br>END<br><br></div></div>