[TxMt] TM & Latex

Mark Smith mark at bbprojects.net
Wed Apr 13 19:28:06 UTC 2005


Thomas Schröder wrote:

>Am 13.04.2005 um 14:53 schrieb Brad Miller:
>
>> If you use the pdfsync package in your document you can just command 
>> click anywhere in the pdf file and you will go immediately to that 
>> spot in your source file in TextMate.
>
>What's also nice is that you can go from one spot in your source in 
>TextMate to the same spot in the PDF output in TeXniscope with this if 
>you use pdfsync.
>
># If TM_LATEX_MASTER not set use TM_FILEPATH
>[ -z "$TM_LATEX_MASTER" ] &&
>    export TM_LATEX_MASTER="$TM_FILEPATH"
>
>/PATHTOTEXNISCOPE/TeXniscope.app/Contents/Resources/forward-search.sh 
>"$TM_LINE_NUMBER" "$TM_FILEPATH" `echo $TM_LATEX_MASTER | perl -e 
>'while(<>){s/\.tex$/.pdf/;print;}' | xargs` ; open -a TeXniscope
>
>Before you can use this you'll have to replace /PATHTOTEXNISCOPE with 
>the path to TeXniscope, though :-)

Yes, this is nice stuff and is more or less what Flashmode achieves with other editors (BBEdit, TexShop, iTexMac and Alpha) in combination with TeXniscope.

Much easier with TextMate though and free.

thanks,

mark.



More information about the textmate mailing list