[OS X TeX] bbedit and xelatex

Gary L. Gray gray at psu.edu
Tue Sep 17 15:52:20 EDT 2013


On Sep 17, 2013, at 3:21 PM, Jonathan Lubin <jonathanlubin at mac.com> wrote:

> I use BBEdit as an external editor, and since I write only the simplest documents, one at a time, I make do with the simple AppleScript below. To use it, of course you have to configure for external editor, but also the .pdf window of the document in TeXShop has to be foremost, and you’ll be working in  BBEdit on a text document for your paper. The root TeX document will have the first line
> %%!TEX TS-program = pdflatex
> or whatever is appropriate to you.
> 
> the script:
> 
> tell application "BBEdit"
> 	save text document 1
> end tell
> tell application "TeXShop"
> 	typeset document of window 1
> end tell
> 
> This is a script in the directory ~/Library/Application Support/BBEdit/Scripts , and it works like a charm.

People interested in using BBEdit as their editor for (La)TeX may also want to look at:

http://nathangrigg.net/latex-bbpackage/

https://github.com/nathangrigg/Latex.bbpackage

Gary



More information about the MacOSX-TeX mailing list