[Tuglist] Preview-latex

Radhakrishnan CV tuglist@tug.org.in
Mon, 6 May 2002 10:17:48 +0530 (IST)


Those who are using GNU Emacs as their editor can now enjoy near
WYSIWYG typesetting in LaTeX if they can spare a few minutes to
integrate a Lisp program called, preview-latex.el written by David
Kastrup <David.Kastrup@t-online.de> et al to the Emacs setup.
Preview-latex can also be a good reason to switch to GNU Emacs
editor for those who use TeX as their text formatter but have 
hitherto kept Emacs at a distance.

The program can be downloaded from:

 http://sourceforge.net/projects/preview-latex

Requirements:

* A recent version of Emacs 21, version 21.2 and above is ideal

* A working AUC TeX installation

* A working LaTeX installation

* Gostscript v 6.51 or above

Please have a look at a screen shot (86KB) of an Emacs frame with
preview-latex at:

 http://www.tug.org.in/download/preview.jpg

where you can find a complex LaTeX document with all the inline and
display math, section heading, etc neatly formatted. Preview-latex
keeps all the math, floats and section headings as images in the
Emacs buffer. With a middle button click at the image, the image
disappears and original TeX sources appear for you to edit, with
another middle button click, it brings back the updated image!

There is a menu item in the AUCTeX menu namely "preview", you can
use this for selectively previewing a particular item, region,
buffer, document, etc. Keyboard shortcuts for all the items are
available.

In my experience, it works like a charm.

-- 
Radhakrishnan