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 hope this is not out of scope of tex.sx: I use the version 2.46 of TeXShop (with Lion) and I recently started structuring my document in various scripts linking them to the main .tex file with the header %!TEX root = ./main.tex.

This works fine except that whenever opening one such "subfile", TeXShop also opens and then minimizes the main.tex file.

To make things clearer, here's a simple example.

File main.tex



This is the main document.



File chap-tools.tex

%!TEX root = ./main.tex


Some text. 

Now say that everything is closed and that I open the file chap-tools.tex then Texshop will also open and minimize the file main.tex. (it also happens on other, yet similar, situations)

It might seem stupid but it drives me crazy!

I was wondering if other users had encountered the same problem and whether they had found a workaround (I tried my luck in the preference pane of Texshop but in vain...).

Thanks a lot!

share|improve this question
Purely a guess, but I'd expect TeXshop does this so that the build button works correctly: i.e., it builds the main file regardless of which file you hit the build button on. That would also make it easier to bring up the main PDF after the build. I don't think there's any facility for it to bring up the main PDF alone. – Mike Renfro Jun 4 '12 at 10:45
Thanks Mike, I guess I'll just have to get used to it! – tibL Jun 4 '12 at 11:25
Did you try this out with TeXShop 3.10? Does it produce the same phenomenon? – brian-ammon Jun 4 '12 at 12:27
@brian-ammon thanks! It doesn't solve the problem but +1 anyway as I wasn't aware that there was a specific version for Lion! :) – tibL Jun 4 '12 at 15:35
up vote 0 down vote accepted

After a fair bit of web-browsing, I don't think there's much one can do about it yet. The best I found so far is to leave all the documents one is working one (including the main.tex) open. This avoids (or at least reduces) the horripilating minimizing/maximizing behavior.

Thanks anyway to Mike & Brian for useful comments. I'm answering the question so it doesn't stay open.

share|improve this answer

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.