[TxMt] Re: Latex command fail following new security update

Geoff Vallis gkvallis at gmail.com
Tue Mar 24 12:32:17 UTC 2015


Hi Ren,

Your fix did the trick, thanks very much.

The reasons I don't use 'typeset and view' are twofold. The main one is just that it is a bit slow - I have to wait almost five seconds before it actually starts to typeset, which may not seem very long but when I am 'debugging' it is a little frustrating. Using a terminal window the typesetting starts instantly.  The second reason is that I can go back and forth between xelatex and pdflatex easily by setting up two scripts with different keyboard shortcuts, which I find quite convenient.  I know there are some advantages to 'typeset and view' and if it were a bit quicker, like the equivalent command in TexShop which is quite fast, I would use it.

Thanks again
Geoff


> Date: Mon, 23 Mar 2015 21:24:45 +0100
> From: Ren? Schwaiger <sanssecours at f-m.fm>
> To: TextMate users <textmate at lists.macromates.com>
> Subject: [TxMt] Re: Latex command fail following new security update
> Message-ID: <276A6D88-5D56-491B-85C5-EB12FEB8100D at f-m.fm>
> Content-Type: text/plain; charset=utf-8
> Hi Geoff,
> 
>> On 23 Mar 2015, at 21:02 , Geoff Vallis <gkvallis at gmail.com> wrote:
>> 
>> Hello,
>> 
>> I have just installed the latest security update on my Mac (10.10.2) and some commands in my latex bundle were broken by it. For example, I have a script (below) that opens a terminal window and typesets the master file, but after the security update the command no longer tries to typeset the master file, but the subfile, and hence typesetting fails.  I am sure is is the Mac OS security update that led to the failure, because I tried on two Macs with the same behaviour.
>> 
>> Thanks for any help you may offer
>> 
>> Geoff 
>> 
>> --------
>> 
>> #!/usr/bin/env bash
>> [[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
>> 
>> TM_LATEX_MASTER=`${TM_RUBY:-ruby} <<"RUBY"
>> require "#{ENV['TM_SUPPORT_PATH']}/lib/escape.rb"
>> require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/LaTeXUtils.rb"
>> 
>> master = LaTeX.master(ENV['TM_LATEX_MASTER'] || ENV['TM_FILEPATH'])
>> puts master
>> RUBY`
>> 
>> FILE=${TM_LATEX_MASTER:-$TM_FILEPATH}
>> cd ${TM_DIRECTORY}
>> 
>> open -a iterm
>> 
>> /Users/gkv/scripts/iterm "time /usr/texbin/pdflatex -synctex=1 ${FILE%.tex}"
>> 
>> ????
> 
> 
> recently I updated the code for `LaTeXUtils.rb`. One of the ?minor changes? was an update of the name from `LaTeXUtils.rb` to `latex.rb` [1]. Your script should work fine if you replace `LaTeXUtils.rb` with `latex.rb`. Sorry for the inconvenience. May I ask why don't use ?Typeset & View (PDF)? to translate tex files?
> 
> Kind regards,
>  Ren?
> 
> [1]: https://github.com/textmate/latex.tmbundle/commit/de963f34e6a94f73c76665091ff1c1aa2f8b43ce
–––
> 
> 



More information about the textmate mailing list