Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docview in emacs: refreshing dvi content automatically

Is there a way Emacs can automatically refresh the buffer showing the dvi right after my LaTeX compilation? Thank you.

like image 586
Dervin Thunk Avatar asked Apr 15 '10 15:04

Dervin Thunk


2 Answers

Use interactive function:

auto-revert-mode

to enable reloading when the file changes.

like image 163
Jürgen Hötzel Avatar answered Oct 19 '22 18:10

Jürgen Hötzel


The global auto revert is not always desirable, in fact I only use it for for the DocView to see the new output of pdflatex.

The following will allow auto revert for the DocView major mode

(add-hook 'doc-view-mode-hook 'auto-revert-mode)
like image 41
Jesper.Reenberg Avatar answered Oct 19 '22 18:10

Jesper.Reenberg