How can I set the main file in Textmate 2 in order to make it compile my complete dissertation and not the file I am editing?
Textmate 2 and Latex
latextextmate
Related Question
- TextMate find dialog not working
- TextMate 2: How to permanently default to soft tabs (spaces instead of tabs)
- MacOS – TextMate/TextWrangler Document Reverts
- How to use tabs in Textmate 2 for files opened via Transmit
- How does one downgrade TextMate Bundles
- Open arbitary file from Finder in TextMate
- How to set no tabs in TextMate
- How to edit many lines at once in TextMate
Best Answer
You need to tell your Latex editor where the main file of your dissertation is placed, in regard to the document you are editing. To define it, add this command to the header of the .tex file that you are editing:
Just edit the path to your main file (in this example "../Main.tex") from the file you are editing. I usually have a file "main.tex" as master document and I link the chapters or sections of the document which are placed in sub-folder.
To try it out, open the menu Bundles -> Latex -> Project Management -> Open Master File With this line in the head the main.tex file will open. Then you can compile it directly from the included .tex file with Bundles -> Latex -> Typeset and View