Incremental Viewing of LaTeX documents.
WhizzyTeX provides a minor mode for Emacs, a (bash) shell-script daemon and some LaTeX macros (which get automatically included in whizzytex-mode) for real-time updates of a [separate] preview window while you type, using on-the-fly compilation. It is designed for Unix platforms.
Whizzytex is amazing. Try it. To install: “apt-get install advi whizzytex”, and to run: “M-x whizzytex-mode”.
I find WhizzyTeX it is very useful when you are debugging a LaTeX file, but not so much when you are doing the bulk of the writing, so I created a function to toggle the preview window on and off and associated it to the F9 key:
(setq my-toggle-whizzy-count 0) (defun my-toggle-whizzy-mode () (interactive) (if (= (mod my-toggle-whizzy-count 2) 0) (progn (whizzytex-mode) (message "WhizzyTeX on")) (progn (whizzy-mode-off) (kill-buffer (concat "*" (buffer-name) "*")) (message "WhizzyTeX off"))) (setq my-toggle-whizzy-count (+ my-toggle-whizzy-count 1))) (add-hook 'LaTeX-mode-hook (lambda () (define-key LaTeX-mode-map (kbd "<f9>") 'my-toggle-whizzy-mode)))
It is still not perfect: if you kill the advi window manually you still have to remove the temporary file *buffer-name* manually. IMHO, this should be a built-in functionality of Whizzytex. The other functionality I would love is an easy way to preview Beamer files. --FelipeCsaszar