When working with multi-file projects that have multiple alternate root files that include the same sub-files, the current root file detection can be hard to switch. For example:
A1 and A2 are root files that both input B, and only define some toggles: these build two different versions of a document (e.g. for short/full versions of some document).
B contains \begin{document} and possibly includes multiple subfiles C1...CN
Using the current root file setup, it is cumbersome to switch between A1 and A2, especially when editing Cx, as the root file to compile needs to be either hardcoded in all these files B,C1..CN, or one needs to switch back to A1/A2 to trigger the build.
Requested feature:
A generic solution that would probably work for many other use cases, is to introduce a workspace setting that, if present, overrides the root file detection (https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#the-root-file). This could be called something like, e.g., latex-workshop.latex.rootfile or latex-workshop.latex.forceRootfile.
(Note that I tried to simulate this behavior with include/exclude lists for the root file search, but this didn't yield the override I wanted in all cases.)
When working with multi-file projects that have multiple alternate root files that include the same sub-files, the current root file detection can be hard to switch. For example:
Using the current root file setup, it is cumbersome to switch between A1 and A2, especially when editing Cx, as the root file to compile needs to be either hardcoded in all these files B,C1..CN, or one needs to switch back to A1/A2 to trigger the build.
Requested feature:
A generic solution that would probably work for many other use cases, is to introduce a workspace setting that, if present, overrides the root file detection (https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#the-root-file). This could be called something like, e.g.,
latex-workshop.latex.rootfile
orlatex-workshop.latex.forceRootfile
.(Note that I tried to simulate this behavior with include/exclude lists for the root file search, but this didn't yield the override I wanted in all cases.)