Hi,
being new to this list, let me introduce me: I’m doing professional (La)TeX typesetting and LaTeX programming, mostly for educational and/or scientific publishers.
I’m also quite new to Textmate (TM). I came across TM looking for a replacement for my long-time editor AlphaX (that I used from the days it was named Alpha 6 and run on Classic -- more than 15 years by now), registering almost instantly as TM seemed to suite all my needs. But …
I'm using also TeXShop (TS) which AlphaX run directly to do the TeX thing; so, one could determine TS’s actions by including a shebang-like line in the first line of the input, e.g., --- %!TEX TS-program = pdflatexmk --- This would cause TS to use latexmk and pdflatex to typeset the document.
So, at last, the question: is there a way to get TM to use this (maybe by running TS instead of the TeX binaries directly) or is there something similar in TM?
… with regards from Ladenburg:
-MWL-
The first way you can call the program you want; is to create a Macro.I don't do Applescript, but this should not be too difficult. You won't need the #!. I don't believe there is a way to record what you want to do. I could be wrong.
Second, you can edit the run commands.
-------
You can find this in the Bundle Editor. I believe the highlighted command is interactive. It can be edited, and make ⌘ + R run the LaTex typesetter you want you want. (check this, as I don't do LaTex, and it could be a bit off). You might also need to create a Run Command similar to the Run BibTex command for your specific Tex engine.
NOTE: If you choose to modify a command, I STRONGLY suggest copying it (hit the double plus) and then editing the copy, so you don't lose the original command, until you are sure you want to get rid of it. I also save the original to a backup directory, just in case.
Hope that this gets you going in the right direction, Mark
On Apr 21, 2011, at 7:31 AM, Martin Wilhelm Leidig wrote:
Hi,
I'm using also TeXShop (TS) which AlphaX run directly to do the TeX thing; so, one could determine TS’s actions by including a shebang-like line in the first line of the input, e.g.,
%!TEX TS-program = pdflatexmk
This would cause TS to use latexmk and pdflatex to typeset the document.
So, at last, the question: is there a way to get TM to use this (maybe by running TS instead of the TeX binaries directly) or is there something similar in TM?
… with regards from Ladenburg:
-MWL-
Martin Wilhelm Leidig, Nadlerstr. 6, D-68526 Ladenburg, Germany Professional TeXing, TeXnical counselling, and TeX hacking Dante e.V. Member #1580
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate