How to compile latex even when pdf is open in windows using MiKTeX?

In Linux, you can edit the source `.tex` file and on compilation the changes reflect in the pdf file even if pdf file is open in some pdf viewer. I tried this on kile.

But the same doesn't happen in Windows. Either i have to close the open pdf or completely delete it in order to re-compile the `.tex` file using MiKTeX.

Can we do something about this, so that i can have same experience of linux while using latex on Windows?

Is this the problem of MiKTeX only? Will changing the MiKTeX to say kile libraries work?

• It depends on the PDF viewer you're using. Adobe Reader locks the pdf, while SumatraPDF, for example, doesn't. So changing your PDF viewer or using an editor that closes automatically the pdf before compiling will solve the problem. Feb 17 '15 at 6:55
• se SumatraPDF as a viewer: it doesn't lock the .pdf file and supports `forward` and `inverse search`. Feb 17 '15 at 7:44
• Kile doesn't have its own set of packages, binaries etc., it is just an editor, a front end. It will use MikTeX or TeX Live, depending on what is installed. But as the other commenters say, this is likely irrelevant, as your problem depends on the PDF viewer. Feb 17 '15 at 8:11
• MikTeX comes with the editor Texworks bundled and ready for use. Texworks has .pdf-viewer build in, and with the possibility to jump back and forth between editing and viewing. Why not use Texworks? Feb 17 '15 at 8:28
• Sumatra doesn't lock the file. But e.g. the pdf-preview of the windows explorer can do it. And the adobe reader. This is not a miktex problem and miktex can't do anything about it. You will either have to avoid the application which locks the pdf or close before recompiling. Feb 17 '15 at 10:53