[TxMt] Re: Latex command fail following new security update
René Schwaiger
sanssecours at f-m.fm
Mon Mar 23 20:24:45 UTC 2015
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