The latest version of the Latex bundle should do exactly what you want now.

latexmk will now use whatever typesetting engine you have chosen in the preferences window (or by using the %!TEX TS-program directive.)  Any options you specify are also passed through to latexmk.

If you haven't checked out bundles from the subversion repository before the instructions are in section 5.7 of the TextMate documentation.

Brad

--
Brad Miller
Assistant Professor, Computer Science
Luther College

On 9/7/07, Miguel Vaz <hepaminondas@gmail.com> wrote:
hi @all,

i am trying set up TextMate for using latexmk.pl as describe in
http://plesslweb.ch/2007/04/02/setting-up-latex-on-mac-os-x/ and , but
am running into some problems.
The symptom is

        ! LaTeX Error: Unknown graphics extension: .eps.

        See the LaTeX manual or LaTeX Companion for explanation.
        Type  H <return>  for immediate help.
         ...

        l.72 ...\includegraphics[width=80mm]{pics/au4.eps}

        ?
        ! Emergency stop.
         ...

        l.72 ...\includegraphics[width=80mm]{pics/au4.eps}

        Try typing  <return>  to proceed.
        If that doesn't work, type  X <return>  to quit.

and, yes, i have

        \usepackage{graphicx}

on my main file.

At this point I should say that I'm able to successfully compile the
project with TeXShop, but not with latexmk (simple manual latex +
bibtex + latex). In Linux, latexmk is doing the job perfectly.
What I guess might be the source of the problem is that I have two
latex installations, so i am guessing that One is texlive2007, and the
other results from installing too much stuff in Fink.

So, my question would be: how can I correctly setup TextMate/latexmk
so that it is going to use the correct installation?
Are there any path variables that need setting, or simply an explicit TEXINPUTS?


Any help would be greatly appreciated!

______________________________________________________________________
For new threads USE THIS: textmate@lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate