[TxMt] LaTeX Watch
Martin Bialasinski
klingeling at gmail.com
Tue Apr 3 15:15:31 UTC 2007
On 4/2/07, Zettt <zettt at macbay.de> wrote:
> I was very confused that nobody else is interested in this thing. I thought,
> lets wait a while this will be a thing everybody wants to have. But nothing
> happened :-/
Well, it looks like you reinvented latexmk.
http://www.phys.psu.edu/~collins/software/latexmk-jcc/
Using latexmk, this is the command I use to start a process that will
typeset automaticaly whenever you save the current file:
M=${TM_LATEX_MASTER:-$TM_FILEPATH}
DIR=`dirname "$M"`
FILE=`basename "$M"`
open -a Terminal
osascript <<-APPLESCRIPT
tell application "Terminal"
do script "cd \"$DIR\"; latexmk -pvc -pdf -quiet \"$FILE\" "
end tell
APPLESCRIPT
More information about the textmate
mailing list