Dear all,
I have been using BBEdit on and off for many years, but I've never been satisfied with its use with LaTeX projects. Many other editing environments (emacs, TextMate, VS Code) have well-supported packages for editing tex files as well as running various latex engines and dealing with the output.
I understand that BBEdit does not want to be an IDE, but this use case seems pretty straightforward. Indeed, there have been various attempts through the years at making an environment like this through BBEdit's scripting capabilities.
I note that many such attempts, including
this fairly recent one, use a separate terminal process to actually run the latex compiler. Is this considered best practice? It seems to ignore things that BBEdit can do which give ideas for other options:
- capture stdout as the result of the do shell script AppleScript and display in a new untitled window. This is actually straightforward, although I wish I could figure out how to deal with naming windows and possibly not requiring them to be saved.
- populate a shell worksheet and run it automatically. I can't quite figure this out -- I've seem some pointers to actually getting the text into a worksheet, but I can't work out running a shell command in a shell worksheet from AppleScript.
So: are either of these considered the standard method for this sort of thing -- and is there a standard method, or do most people just keep a terminal window open and do everything by hand?
Any other ideas? Obviously even more advanced stuff like parsing error output, etc. (which is possible in most of the aforementioned IDE-like editors) would be a bonus. I'd really like to move more of my work over to BBEdit....