When we make a file, we write a tex file, run it, check the pdf file, fix the tex file, rerun it, and check the pdf file again. Whenever I rerun the file without closing previous version of pdf file, it occurs an error. If I close the pdf file, it works well. But it is bothering to close the pdf file every time. How can I fix it? I am using Adobe X reader in Windows XP
Asked
Active
Viewed 2,742 times
4
1 Answers
11
Adobe Reader X locks the file after opening it, so no other program is allowed to edit the PDF while open.
This is why pdflatex gives you an error trying to overwrite the file.
Depending on how you compile your document (interactive or non interactive way),
you could specify a new file for the resulting PDF, but this is quite annoyng.
The best way to achieve this is to change the PDF viewer while you are working with LaTeX.
SumatraPDF is a possibility on Windows (and allows direct/inverse search).
Alternatively, you could use a LaTeX editor equipped with an embedded reader,
such as TeXworks, Texmaker or TeXstudio,
which allow what you asked for, out of the box.
acroviewR10). – matth Jun 15 '12 at 07:36