Re: Problems with preview-latex



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."
.



Relevant Pages

  • Re: [emacs] Offizieller Emacs 22 =?iso-8859-1?Q?f=FCr?= Windows ohne Image-Libraries?
    ... | Emacs 22.1 contains support for images, however for most image formats ... | supporting libraries are required. ... | PBM/PGM/PPM: Supported natively by Emacs. ...
    (de.comp.editoren)
  • Re: JPEG Lossless decompression
    ... I have the viewer to the point were I support all common ... formats except compressed images, which is my next area of work.. ... compression/decompression routines for JPEG Baseline, ...
    (comp.protocols.dicom)
  • Re: "The Good Enough Revolution" - As it applies to js
    ... VB programs must be re-written because the current libraries don't ... I don't think MS needs to be singled out for poor support of web ... unknown browsers and until its adoption of feature testing, jQuery was ... All that needs to be anticipated is that a browser may not support any ...
    (comp.lang.javascript)
  • Re: JPEG Lossless decompression
    ... I have the viewer to the point were I support all common ... formats except compressed images, which is my next area of work. ... compression/decompression routines for JPEG Baseline, ...
    (comp.protocols.dicom)
  • Re: User customisable grid
    ... You may follow news on our home page, or go to our support forum: ... We are extending components every month. ... Marko has suggested several libraries to use ...
    (borland.public.delphi.thirdpartytools.general)