Textmate for OS X, has a LaTeX bundle (a great bundle indeed). But this bundle packs the latexmk script (version 3.7 or so), I am wondering if anyone was able to update the latexmk version that comes within the bundle, or even to have it use the system's version of it.

PS: I know this is not *TeX related issue, but I though there might be someone with a solution around here. Moderators may delete this if its against the rules.

  • 4
    I think your question is fine, and definitely on-topic. – Juan A. Navarro Feb 2 '11 at 19:41
  • Totally agree with Juan here: well within the range of topics that {TeX} covers. – Joseph Wright Feb 2 '11 at 19:48
  • Thank you Juan and Joseph. And Hendrik for tidying up my question :) – Tiago Veloso Feb 2 '11 at 21:44

Yes, I have changed the bundled version of latexmk to a symbolic link to TexLive's version. This works well, but is slightly difficult to instruct how to do as there are many potential locations for your LaTeX.tmbundle.

Personally, I recommend grabbing the latest version from GitHub and placing it in ~/Library/Application Support/TextMate/Bundles/ manually. Then, you can delete the ~/Library/Application Support/TextMate/Bundles/LaTeX.tmbundle/Support/bin/latexmk.pl file, and replace it with a symbolic link to TeXLive's version:

ln -s /usr/texbin/latexmk ~/Library/Application Support/TextMate/Bundles/LaTeX.tmbundle/Support/bin/latexmk.pl

There are other methods (you could do this directly within TextMate.app), but this is nice as it doesn't modify the original and if you use git then it tracks the changes you make, too.

| improve this answer | |
  • I have to thank you. It worked. I use git too :) – Tiago Veloso Feb 2 '11 at 21:43

TextMate users will most likely be able to figure this out for themselves, but just a small update to the accepted answer:

TextMate places its user-installed bundles in ~/Library/Application Support/TextMate/Bundles/ (as opposed to ~/Application Support/TextMate/Bundles/.) So a complete solution (assuming git is installed) would be more like

$ mkdir -p "~/Library/Application Support/TextMate/Bundles"
$ cd !$
$ git clone https://github.com/textmate/latex.tmbundle.git
$ cd latex.tmbundle/Support/bin
$ mv latexmk.pl latexmk.pl.orig # just in case
$ ln -s /usr/texbin/latexmk latexmk.pl
| improve this answer | |
  • I have changed the accepted answer. Good observation! – topskip Sep 29 '11 at 5:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.