I am currently working with LaTeX. I have a big document split up in several sub documents. When I am workin in a sub document, I'd love to compile the master file when pressing ctrl+b, not the file I am currently in. How do I do that?
I just found the answer myself! As mentioned here, one just has to put
If you have 3 different files you need, you can use first-line (or second if you need utf8 stuff) comments. I use it to compile the main TeX file from one of the children.
I have a script, which looks at the first line:
and a simple build file aiming at my custom script:
This way, you can have as many "references" in your files as you want. Just switch the value of
To end with, I present to you my XeLaTeX build script ;)