# Texmaker: compiling a parent file

I'm writing up some old math notes that closely follow a textbook, and I have a tex file for each section of the book I worked through. I keep all these section files in a directory `tex`, and then on the level of that same directory I have a `main.tex` file that `\input`s each section file into a book.

I'm using Texmaker to edit the individual section files. Is there some way to configure Texmaker to compile `main.tex` whenever I hit Quick Build while working on a section file, and then have the resulting `main.pdf` file show up in the PDF viewer and jump to the section I was working on?

2) Select from the top menu bar, `Options`, and then `Make Current Document the Master Document`