TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working with Texmaker 4.1 and Miktex 2.9. My document consists of 4 files, 3 section tex-files and 1 main tex-file. When working in the sections it always upsets me that I have to change the view to the main file to get the document build. So my question is if there is a way to configure one of the user defined quick build options in Texmaker so that when hitting the button my main tex-file is build and not the one which is shown.


share|improve this question
Welcome to TeX.SX! – Claudio Fiandrino Oct 31 '13 at 11:18
up vote 8 down vote accepted

Yes. Open your main file and use the Options menu to Define Current Document as 'Master Document'. See below.

enter image description here

share|improve this answer
That was fast. Thank you very much. – Pete Oct 31 '13 at 11:11
@Pete. Welcome. Almost everything here is fast. – Sigur Oct 31 '13 at 11:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.