Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
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? –  Torbjørn T. Nov 9 '12 at 8:52
    
Adding a minimal working example (MWE) will help us see what is happening. –  hpesoj626 Nov 9 '12 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 Nov 9 '12 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 Nov 9 '12 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 Nov 9 '12 at 12:09
show 6 more comments

1 Answer

up vote 5 down vote accepted

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.

share|improve this answer
1  
Addendum: For external pdf viewers: Don't use Adobe Reader,Instead use free sumatrapdf on windows and evince/okular on linux –  texenthusiast Nov 12 '13 at 15:40
add comment

Your Answer

 
discard

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.