[TxMt] Latex in Beta 5

Sune Foldager cryo at cyanite.org
Fri Feb 11 14:31:34 UTC 2005


On 11. feb 2005, at 11:59, tim wrote:

> If a Latex document is split into multiple files, the "to PDF" command 
> (as advertised on the blog), generates an error. It  worked 
> beautifully previously (B4) - please could this be fixed in the next 
> beta.

I got that to. Change the command in this way (replace the section with 
this):

--->---
# if TM_LATEX_MASTER not set use TM_FILEPATH
[ -z "$TM_LATEX_MASTER" ] &&
    export TM_LATEX_MASTER=$TM_FILEPATH

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

..and that will make it work again.

> Also, there are now two latex bundles (LaTeX and Latex), which is the 
> most up-to-date?

The other one might be from your local disk? Mine is called LaTeX, I 
think that's the new one.

-- 
Sune.
:: the Cottage of Lost Play.
:: http://cyanite.org




More information about the textmate mailing list