I am new to TeXmaker and all its tools. I have my thesis template in LaTeX which I am trying to work on and am using Adobe Reader to view it. The problem is that Texmaker is generating a pdf file for the first time (which is OK), but does not generate it anytime later. When I delete the old pdf file (for deleting the pdf file, I need to close Texmaker every time), then again it generates the new pdf file. But once a pdf file is already there, it shows the same pdf file.

  • 4
    Is the PDF open when you're trying to compile a second time? And do you happen to use Adobe Reader to view PDFs? (Reader locks the PDF, so you can't compile if the PDF is opened there.) If not, does the messages/log panel show any errors when you try to compile? Commented Nov 9, 2012 at 8:52
  • Adding a minimal working example (MWE) will help us see what is happening.
    – hpesoj626
    Commented Nov 9, 2012 at 9:20
  • Yes the adobe reader in my laptop is always open, but with different files. I also tried using embed flag in texmaker. That also doesnt work. The log messages dont show anything.
    – Shafi
    Commented Nov 9, 2012 at 9:33
  • 1
    @Shafi Why aren't you using the PDF viewer incorporated in Texmaker? It's a well known problem that Adobe Reader locks the PDF it's reading.
    – egreg
    Commented Nov 9, 2012 at 10:37
  • 2
    @LionelMANSUY Only Adobe Reader locks the file, there are many other viewers for Windows, and e.g. Sumatra PDF will work nicely with Texmaker: tex.stackexchange.com/q/37327/8569
    – matth
    Commented Nov 9, 2012 at 12:09

2 Answers 2


A problem with using Adobe Reader to view the PDFs generated from a LaTeX-file, is that Reader locks the PDF-file so it cannot be edited. As a result, if you try to compile a LaTeX-document whose PDF is open in Reader, the compilation won't work.

The easiest way to avoid the issue is to not use Adobe Reader as long as you're working on the document. Texmaker has a built in PDF-viewer that you can use instead, active this by going to Options --> Configure Texmaker, and select "Built-in Viewer". If you really want to use Adobe Reader, you would have to close the PDF every time you compile the document.

If using windows 8.1 Adobe reader APP when closing the reader APP itself the file on the reader is still technically open.

To clarify, when in the APP reader right click and close the window corresponding to the file you are trying to update.

  • 2
    Addendum: For external pdf viewers: Don't use Adobe Reader,Instead use free sumatrapdf on windows and evince/okular on linux Commented Nov 12, 2013 at 15:40

I just had the same problem the thread starter described. In my case the cause of the problem was the windows explorer preview of the output pdf file. Disabling the preview did the trick for me ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .