Re: Problems with preview-latex
- From: Lars.Imsland@xxxxxxxxx
- Date: Fri, 15 Feb 2008 01:04:32 -0800 (PST)
On 14 Feb, 15:58, David Kastrup <d...@xxxxxxx> wrote:
Lars.Imsl...@xxxxxxxxx writes:
I just installed emacs 22.1.1 (fromhttp://ftp.gnu.org/pub/gnu/emacs/windows/)
and auctex-11.85 (fromhttp://www.gnu.org/software/auctex/) under
Windows XP, but I have problems getting preview-latex to work with png-
files.
if I do (setq preview-image-type 'pnm), then it works.
Fromhttp://preview-latex.sourceforge.net/manual/Installation-under-MS-Win...
:
"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. If this
helps, complain to wherever you got your Emacs: all current Emacs/
XEmacs versions capable of running preview-latex by now can be
compiled to support PNG images. Which is important, because PNM files
take away vast amount of disk space, and thus also of load/save time.
"
Any tips?
Install PNG libraries according to instructions for Emacs.
Thanks for the tip. I have now installed the latest versions of libpng
and zlib (according to the info below). However, it doesn't seem emacs
is aware of it, I still get the error
"Preview-LaTeX exited as expected with code 1 at Fri Feb 15 09:56:04
LaTeX: preview-image-type setting 'png unsupported by this Emacs"
I have tried putting the "C:\Program Files\GnuWin32\bin"-directory
into the path. Should I put the .dll-files somewhere else?
From ftp://ftp.gnu.org/gnu/emacs/windows/README:
"* Image support
Emacs 22.1 contains support for images, however for most image
formats
supporting libraries are required. This distribution has been
tested
with the libraries that are distributed with GTK for Windows, and
the
libraries found at http://gnuwin32.sourceforge.net/. The following
image
formats are supported:
PBM/PGM/PPM: Supported natively by Emacs. This format is used
for
the black and white versions of the toolbar icons.
XPM: requires a Windows port of the XPM library 3.4 or later,
which will be named xpm4.dll, libxpm-nox4.dll or
libxpm.dll. This format is used for the color versions of the
toolbar icons, and other images in Emacs.
PNG: requires the PNG reference library 1.2 or later, which will
be named libpng13d.dll, libpng13.dll, libpng12d.dll,
libpng12.dll
or libpng.dll. LibPNG requires zlib, which should come from the
same
source as you got libpng.
JPEG: requires the Independant JPEG Group's libjpeg 6b or later,
which will be called jpeg62.dll, libjpeg.dll, jpeg-62.dll or
jpeg.dll.
TIFF: requires libTIFF 3.0 or later, which will be called
libtiff3.dll
or libtiff.dll.
GIF: requires libungif or giflib 4.1 or later, which will be
called giflib4.dll, libungif4.dll or libungif.dll."
.
- Follow-Ups:
- Re: Problems with preview-latex
- From: David Kastrup
- Re: Problems with preview-latex
- References:
- Problems with preview-latex
- From: Lars . Imsland
- Re: Problems with preview-latex
- From: David Kastrup
- Problems with preview-latex
- Prev by Date: Re: The Problems of TeX
- Next by Date: CTAN has a new package umtypewriter
- Previous by thread: Re: Problems with preview-latex
- Next by thread: Re: Problems with preview-latex
- Index(es):
Relevant Pages
|