Closed ghost closed 6 years ago
Yes, this is supported with the magic comment feature, specifically % !TEX root = your-main-file.tex
Ref: https://github.com/thomasjo/atom-latex/wiki/Overridding-Build-Settings
Thanks for the awesome package. I wonder if we can specify root
in a known config file (maybe named .latex.yaml
) instead of prepending the magic comment in every tex file (nice to see an updated preview as I save the current fragment)? Or is it a conscious design decision you made?
I have a project in which my root file contains several imports (\input{certainfile.tex}. I am able to compile (using ctrl-alt-b) my project from my root file perfectly. The content of certainfile.tex is processed in a correct way. However, if I am working in this subfile and I compile, the compilation fails. I need to switch to the root file every time and compile the project there. Is there a way to overcome this problem?