Many people find my blog searching about how to make their multi-file LaTeX projects build in TextMate.
It’s worth nothing that the
TM_MASTER_FILE works for almost any programming project, not just LaTeX. So, if you’re working on a Python or a Ruby project and have a main file that you want to run, set the TM_PROJECT_MASTER to point to that and save yourself some effort. Here’s a reminder on how to do that.
- Open your project file (or create one if you don’t have one).
- De-select any selected files in the TextMate drawer by clicking on empty space.
- Click on the “i” in the bottom-right corner of the drawer.
- Add a variable named
- Set the value to the name of your main file (in my Ludum Dare game, it was
Now your “run” ⌘r shortcut will always run your main file with minimal hassle!