#474 Automaticcally open root file option


It is already possible to specify a rootfile by adding
% !TeX root = \file.tex
on top of a document. As long as the rootfile is open, the rootfile will be compiled in stead of the file being edited. A setting that would enable to automatically open the file specified (file.tex) would, I think, be useful.


  • Fictional

    Fictional - 2013-06-04

    BTW I just tested this. It seems that, after compiling the wrong file (because the rootfile was not opened), opening the rootfile does not cause it to compile correctly. You need to close both files, open the rootfile only and compile it in order to 'wipe' the errors.
    I did not succeed in compiling from the 'childfile' until I did.
    If I open texstudio by double clicking the parentfile, and I open the child file after that. Everything is ok.
    When I open texstudio by double clicking the childfile, and I open the parent after that, compilation from the childfile will fail unless I compile from the parent first.
    However, it seems like I can close the parent file without issues after a successful compilation.

    Can someone clarify this behavior?
    Additional info
    This could have something to do with me using the import package in order to load the child file.
    This all is while using the % !TeX root = \file.tex line BTW

    Last edit: Fictional 2013-06-04
  • Jan  Sundermeyer

    Jan Sundermeyer - 2013-06-16

    why do you use a backslash in the file name ?
    "file.tex" should be okay.

  • Tim Hoffmann

    Tim Hoffmann - 2015-08-23

    No feedback. Please report back, it there is still an issue.

  • Tim Hoffmann

    Tim Hoffmann - 2015-08-23
    • status: open --> closed
    • Group: -->

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks