[TxMt] Re: LaTeX Bundle and Terminal

Charilaos Skiadas cskiadas at gmail.com
Fri Aug 1 16:37:06 UTC 2008


I haven't tested it, but I think what you would want is to find the  
line:

           write text "cd #{e_as(e_sh(dir))}; clear; pwd"

and change it to something along the lines of

           write text "cd #{e_as(e_sh(dir))}; clear; pwd; pdflatex \"# 
{e_as(e_sh(ENV['TM_FILENAME']))}\""

(Untested, might blow your computer up and insult your mother etc)

This would still only work at best if you don't use a master document/ 
included files setup. That would require a bit more work.

But does it happen often that you find the typing of "h" to be  
helpful at all? I've never found TeX's helpful suggestions all that  
helpful personally. Either the error is obvious enough from the  
message, or it is too complex for the message to be helpful. But I  
guess your mileage may vary.

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College

On Aug 1, 2008, at 9:42 AM, gkv1 at mac.com wrote:

> Thanks. Yes - that looks like a way to go. Unfortunately my scripting
> skills are insufficient to add the commands equivalent to 'pdflatex
> Masterfile'. Perhaps someone can help?
>
> Geoff
>
>
> On Aug 1, 2008, at 11:30 AM, Matt Foster wrote:
>
>> On Fri, Aug 1, 2008 at 10:49 AM,  <gkv1 at mac.com> wrote:
>>> Hello,
>>>
>>> I'm using TextMate a lot for Latex - it a great editor and bundle  
>>> for
>>> that. I have one question:
>>>
>>> How can I open a terminal, or go to a pre-existing terminal window,
>>> from TextMate, and then run a given shell script in the terminal, in
>>> particular a shell script that would typeset the master document?
>>
>> The shell script bundle has an 'Open Terminal' command, bound to
>> ⌃⇧O,
>> by default.
>> That will open up a terminal and cd to the correct directory. It  
>> looks
>> like it would be fairly easy to modify it to run another command too.
>>
>> I hope this helps,
>>
>> Matt
>>
>> -- 
>> Matt Foster | http://my-mili.eu/matt
>>






More information about the textmate mailing list