[OS X TeX] LaTeX command in TextMate

Mika Luoma-aho mika.luoma-aho at pp.inet.fi
Thu Mar 31 01:34:30 EST 2005


Dear All,

I recently installed TextMate 1.1b5 on my Panther and am now very keen 
on the app. TextMate has a set of commands for LaTeX: pdf LaTeX, LaTeX 
and Preview, LaTeX and TeXniscope and some others. I prefer TeXniscope 
to TeXShop, and would like to do LaTeX with TextMate using TeXniscope 
as previewer. I have teTeX installed on my machine, and it works fine 
with TeXShop.

The problem with TextMate is, however, that for some reason it can't 
run the pdf Latex-command, i.e. it cannot create the pdf-file. When I 
try to pdf LaTeX a file, the console says:

/bin/bash: line 19: pdflatex: command not found

The other LaTeX commands produce nil -- though they do view a pdf-file 
when I typeset in TexShop first, which of course does the job. When I 
look at the pdf LaTeX command in Edit Commands, I find:


# this requires pdflatex Web2C 7.5.3

cat <<EOF
<html><head><style>
*       { color: #998; }
a       { color: #000; text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }
</style></head><body><pre>
EOF

tmp=`mktemp /tmp/pdflatex_XXX`

# if TM_LATEX_MASTER not set use TM_FILEPATH
if test "${TM_LATEX_MASTER-set}" = set; then
    TM_LATEX_MASTER=${TM_FILEPATH};
    export TM_LATEX_MASTER;
fi

pdflatex -interaction=nonstopmode -file-line-error \
   -halt-on-error -output-directory /tmp \
   -jobname `basename ${tmp}` "$TM_LATEX_MASTER" \
| perl -pe '$| = 1; s/^(\/.*?):(\d+):\s*(.*)$/<a 
href="txmt:\/\/open?url=file:\/\/$1&line=$2">$3<\/a>/'

[ -f ${tmp}.pdf ] && echo '</pre><meta http-equiv="Refresh" 
content="0;URL=file:///'${tmp}'.pdf">'

{ sleep 30; rm ${tmp} ${tmp}.*; } </dev/null >/dev/null 2>&1 &


What's going on? Do I have to tweak TextMate-commands somehow for my 
teTeX installation? Isn't my pdf LaTeX `Web2C 7.5.3'? Que?

Any ideas?

Cheers,

Mika.
--
Mika Luoma-aho, PhD
University of Lapland
Faculty of Social Sciences
PO BOX 122
FI-96101 Rovaniemi
Tel. +358 (0)16 341 2648
--

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list