Installation of preview-latex has been verified to work (in order of increasing operating speed) with current CVS versions of GNU Emacs, and with both Cygwin and native versions of XEmacs. Since various fixes in the installation procedure have been incorporated for Windows lately, you should install the current release of preview-latex.
Ok, here are the steps to perform:
Makefile
copies from the respective Makefile.in
files by
hand, and that would mean quite a lot of guesswork. There is no sense
going into too much details here: the instructions would change severely
between versions, and the above tool sets are easy enough to acquire to
make manual configuration unnecessary.
prebuilt-docs
tarball over the normal source after configuration is complete, the
dependencies for the documentation will be satisfied without needing to
run Perl. If you are building preview-latex from CVS,
however, you'll need Perl.
bash
) capable of
running configure
, change into the installation directory and
call ./configure
with appropriate options.
Typical options you'll want to specify will be
--with-emacs
--with-emacs=
path-to-emacs
to specify the installed
location of your Emacs binary.
--with-xemacs
--with-xemacs
in the same
manner.
--with-texmf-dir=
dir
--with-lisp-dir=
/dir
configure
should figure this out by itself. Don't use this for
XEmacs, rather use
--with-package-dir=
/dir
Some executables might not be found in your path. That is not a good
idea, but you can get around by specifying environment variables to
configure
:
GS="/path/to/GhostScript" ./configure ...should work for this purpose.
make
in the installation directory (we have had one report
that Emacs did not manage to byte compile the Elisp files, and that had
to be done by hand. No idea about what might have gone wrong there).
make install
in the installation directory.
preview-latex.el
in the
installation directory. Emacs must load this on startup. It may be
that your version of Emacs already has a place where it keeps such
startup files. If not, copy it into a place in your Emacs
load-path
, then put
(load "preview-latex.el" nil t t)
into your .emacs
file or, if you have more than one user using
your system, into the global default.el
file.
circ.tex
into Emacs or XEmacs and see if you can generate
previews.
If this barfs and tells you that image type png
is not
supported, try adding the line
(setq preview-image-type 'pnm)
at the end of your installed version of preview-latex.el
.
Current Emacs CVS versions do not yet support PNG
images. Which is a pity, because PNM files take away
vast amount of disk space, and thus also of load/save time.
Well, that about is all. Have fun!