Last edit

Summary: Rückgängig gemacht auf den Stand vom 2013-08-24 11:21 UTC


< * Compare with InverseDviWikiModes which allows jumping from editor to related place in DVI file and vice versa.


> * Compare with InverseDviSearch which allows jumping from editor to related place in DVI file and vice versa.

Package preview-latex runs LaTeX on equations and other environments (figures and tables) of your source and replaces the fragment of the source by an preview image. In the “edit mode” for equations, you see the normal LaTeX code.


PreviewLaTeX and NTEmacs

By far the easiest way to get this combination going is by downloading the latest precompiled Emacs for NT including AUCTeX from and adhering to the installation instructions in the same place.

LatexMk as alternative to preview-latex

As an alternative a useful perl program known as works well under cygwin, and provides a dvi “preview window” which updates on every page save. This gives a more stable “realtime” preview of your Latex document.

latexmk -pvc yourdoc.tex opens a preview window that continuously reflects changes to the tex source

LatexMk comes as standard with the popular tex installation MixTex? but is also available from .You may have to make some changes to the perl file as detailed in the INSTALL file

You can incorporate some of the latexmk commands into the Auctex C-c C-c cycle / Toolbar menu using M-x customize-group auctex.

Known Issues

The error occurs only in PDF mode (go to Command → TeXing? Option and uncheck Generate PDF to be back to DVI mode and every thing should work: CTRL_C CTRL_P CTRL_D). The current (January 2001) error comes from a change in not reported to the file . See patch
The commands:
 pdflatex  "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" toto.tex
 pdf2dsc toto.pdf toto.prv/tmp33492THG/preview.dsc
were working but the dsc file was output with ‘copy_trailer_attrs’ instead of ‘process_trailer_attrs’ which made further ghostscript commands fail.

See also