Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#474 Automaticcally open root file option

open
nobody
None
1
2013-06-16
2013-06-04
Fictional
No

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.

Discussion

  • 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?
    edit
    Additional info
    This could have something to do with me using the import package in order to load the child file.
    edit2
    This all is while using the % !TeX root = \file.tex line BTW

     
    Last edit: Fictional 2013-06-04
  • why do you use a backslash in the file name ?
    "file.tex" should be okay.