How to automatically update the PDF viewer?

I am editing latex on my Windows Vista systems. I use pdflatex to constantly create a PDF file.

My PDF viewer is Adobe Acrobat Professional 7, I have to close and open the same file every time to get a new look.

Is there a way to keep the PDF viewer updating the PDF pages after changing it?

+8
refresh pdf viewer
source share
3 answers

The viewer does not regularly check changes on the disk, so the short answer is: no (unfortunately)

However, you can use your browser to view the pdf file inside your own html web page, which regularly updates the page using javascript.

so (including buttons for switching between manual and automatic lighting):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=windows-1252"> <title>my pdf</title> <script type="text/javascript"> var timer = null; function refresh(){ var d = document.getElementById("pdf"); // gets pdf-div d.innerHTML = '<embed src="myPdfFile.pdf" width="700" height="575">'; } function autoRefresh(){ timer = setTimeout("autoRefresh()", 2000); refresh(); } function manualRefresh(){ clearTimeout(timer); refresh(); } </script> </head> <body> <button onclick="manualRefresh()">manual refresh</button> <button onclick="autoRefresh()">auto refresh</button> <div id="pdf"></div> </body> <script type="text/javascript">refresh();</script> </html> 

Just save this code for example. 'pdfrefresher.html' in the same folder as your pdf. For the src of the embed object, you use only the file name, for example. 'myPdfFile.pdf' (not a disk or directory). In the code you can adjust the width and height of the embedded object and the timeout (in milliseconds).

+11
source share

From the superuser question

SumatraPDF is free for Windows and works great with LaTeX. It will be automatically updated when pdf is updated.

It is also tolerated, which is nice.

+7
source share

Evince PDF Viewer automatically updates.

This is a very lightweight and free (GNU) PDF viewer, which is used by default for most Linux systems. There is also a version of Windows. Although, I used evince only on Linux, I'm sure it has the same features on Windows.

+2
source share

All Articles