[MacPorts] #14700: latex2html fails to create png images for math symbols on 10.5.2

MacPorts trac at macosforge.org
Tue Mar 18 01:33:14 PDT 2008


#14700: latex2html fails to create png images for math symbols on 10.5.2
-------------------------------------+--------------------------------------
 Reporter:  simon.c.blyth at gmail.com  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:                                       
Component:  ports                    |     Version:  1.6.0                                
 Keywords:                           |  
-------------------------------------+--------------------------------------
 {{{
  latex2html to.tex

 This is LaTeX2HTML Version 2002-2-1 (1.71)
 by Nikos Drakos, Computer Based Learning Unit, University of Leeds.
 ...
  *** processing 1 images ***

 Generating postscript images using dvips ...
 This is dvips(k) 5.95a Copyright 2005 Radical Eye Software
 (www.radicaleye.com)
 ' TeX output 2008.03.18:1444' -> /tmp/l2h4967/image
 (-> /tmp/l2h4967/image001) <tex.pro><alt-rule.pro><texps.pro><special.pro>
 <color.pro><cmsy10.pfb>[1]
 Converting image #1
 pstoimg: Error: "/opt/local/bin/ppmquant -floyd 256 <
 /tmp/l2h4967/p4980.pnm | /opt/local/bin/pnmtopng -interlace -trans
 'gray85'  > img1.png" failed: Invalid argument

 Error while converting image

 Doing section links ......
  *** Adding document-specific styles ***
 Done.
 }}}

 Switching on debug for pstoimg reveals the error message to be misleading
 :
 {{{
 simon:tex blyth$ export DEBUG=1
 simon:tex blyth$ latex2html to.tex
 ...

  *** processing 1 images ***

 ...
 Running "/opt/local/bin/ppmquant 256 < /tmp/l2h5269/p5282.pnm |
 /opt/local/bin/pnmtopng -interlace -trans 'gray85'  > img1.png"
 pnmcolormap: making histogram...
 pnmcolormap: 10 colors found
 pnmcolormap: Image already has few enough colors (<=256).  Keeping same
 colors.
 pnmremap: 10 colors found in colormap
 pnmtopng: can't open color names dictionary file named
 /usr/lib/X11/rgb.txt, /usr/openwin/lib/rgb.txt, or
 /usr/X11R6/lib/X11/rgb.txt and Environment variable RGBDEF not set.  Set
 RGBDEF to the pathname of your rgb.txt file or don't use color names.
 pstoimg: Error: "/opt/local/bin/ppmquant 256 < /tmp/l2h5269/p5282.pnm |
 /opt/local/bin/pnmtopng -interlace -trans 'gray85'  > img1.png" failed:

 Error while converting image

 Doing section links ......
 Done.
 }}}

 Searching for '''rgb.txt'''
 {{{
 mdfind "kMDItemDisplayName == 'rgb.txt'" | xargs ls -l
 -rw-r--r--  2 root   admin  17315 Mar 18 03:15
 /opt/local/share/lib/latex2html/styles/rgb.txt
 -rw-r--r--  2 root   wheel  19974 Mar 18 00:25
 /opt/local/share/netpbm/rgb.txt
 -rw-r--r--  1 root   wheel  17371 Sep 24 13:34 /usr/X11/share/X11/rgb.txt
 }}}

 Trying again, following the hint from the debug ... succeeds to create the
 pngs :
 {{{
 export RGBDEF=/opt/local/share/netpbm/rgb.txt
 latex2html to.tex
 ...
 }}}

 The installation would be improved if it was not necessary to set this in
 the environment.

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14700>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list