Search code examples
compilationfocuslatexpdflatextexmaker

Texmaker. Is it possible to compile not focused file?


Does anybody know if it is possible to compile the file that is not being focused in texmaker?

I have a report separated into many .tex files and everyone of them included in Main.tex. In order to compile the report, I need to focus Main.tex file and then click the PdfLatex command. I would like to just click PdfLatex command and always compile Main.tex independently of what is being hovered. Does anybody know if this is doable?

Thanks for the help.


Solution

  • Use Options -> Define Current Document as Master

    These way when you use latex commands it is applied to master document.

    Current Document As Master