[OS X TeX] BBedit and LaTeX

Richard Seguin riseguin at earthlink.net
Thu Apr 12 22:30:56 EDT 2007


On Apr 12, 2007, at 6:50 PM, David Goldenberg wrote:

> Hi,
>    I was wondering if anyone could point me to information about  
> using the new version of BBedit (8.6) with LaTeX.  The company web  
> page indicates that the new version has lots of new tex-related  
> features, but there isn't much documentation for them.
>     I would be particularly interested in suggestions for setting  
> up scripts to make it easy to process and view LaTeX files from  
> BBedit.
>
> Thanks,
> David Goldenberg

David,

The current 8.6.1 version has a little bug with LaTeX syntax  
coloring, but the latest beta version for 8.6.2 has fixed that  
problem. I can't say for sure when 8.6.2 will be out because I don't  
work for the company, but I imagine it won't be long.

You can download a demo copy.

BBEdit has extensive applescript hooks, and TeXShop isn't bad either  
in that respect.

Here's an applescript that tells BBEdit to save its front document  
and then tells TeXShop to compile it to PDF:

tell application "BBEdit"
	set fileName to (file of text window 1) as text
end tell
set unixname to POSIX path of fileName
set oldDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to "/"
-- pull the path out as a string and strip off the filename
set pathText to unixname
set pathList to (text items of pathText)
set docName to last item of pathList
set AppleScript's text item delimiters to oldDelimiters
tell application "BBEdit"
	save text document docName
end tell
tell document docName of application "TeXShop"
	activate
	latexinteractive
end tell

Richard Séguin
  
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list