I use Texworks on a multi-file project linked to each other through a master file. It is quite tedious to modify a subfile, save, change window to master file and then compile.
Is it possible to configure the software to link the compile button to the master file so that I can compile directly from the sub-file window?
Best Answer
You can use magical comments just as
!TeX root=mainfile.tex
with relative path as first line of your subfile.Let's say you have the following document tree:
Then your
chapone.tex
(which is\input
or\include
d inthesis.tex
) would start with: