I am running MikTeX 2.9 and TeXworks 0.4.6 under Windows 10. I have a TeX document and the corresponding pdf open side by side.
When I compile the TeX document (with pdftex) I want the pdf to automatically refresh, without having to close it and then open it. With many documents, I get exactly the behavior I want. Call these the "good documents".
But with some documents, I compile, the process runs, but the old pdf is still showing. I then have to close the pdf and re-compile, which opens a new updated pdf. Call these the "bad documents".
Until very recently, this has been driving me crazy because I couldn't figure out what made some documents good and others bad. Today it finally dawned on me to try moving some documents around on my hard drive and I discovered the pattern---a given document becomes good or bad depending on which Windows directory it sits in. For example, all documents in my root directory are bad. If I copy them to other directories, they become good.
Questions: 1) What on earth is causing this? 2) How do I fix it so that I can store documents where I want them and still get the automatic refreshes that I want?
C:
then don't put documents there.