Re: latex2html problems (fwd)

2004-10-11 Thread Eduardo Viruena Silva


 Thanks for answering Parv.

 I have a Phedora Core 2 system where latex2html works fine.
 It uses netpbm-9.24 not netpbm-10.24 as FreeBSD does.

 So... forced FreeBSD to uninstall netpbm-10.24, and
 then downloaded and compiled netpbm-9.24.

 It is a little tricky because netpbm does not supports
 FreeBSD, so I took openbsd option and changed the
 Makefile.config to fulfill FreeBSD requirements.

 Once it was installed, latex2html worked fine.

 Now, I do not know what to think.
 Either,  latex2html is trying to use options that
 do not work with netpbm-10.24, or netpbm-10.24 does
 not work properly.


g

it seems that latex2html requieres an option.
if I include the option:  -notransparent
html2ltex works fine with netpbm-10.24.

nevertheless, it displays the formulae with
gray background. They look horrible.



 I think this deserves a report.

 Thanks for your help.

   Eduardo.


Eduardo.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: latex2html problems (fwd)

2004-10-08 Thread Parv
in message [EMAIL PROTECTED],
wrote Eduardo Viruena Silva thusly...

 I have installed FreeBS 5.2.1-RELEASEp9  in my computer.

4.10-p3 here ...


 latex2html-2002.2.1_3 Convert LaTeX documents to HTML
 teTeX-2.0.2_2 Thomas Esser's distribution of TeX  friends

... with latex2html-2002.2.1_3  teTeX-2.0.2_3.


 latex2html seems to work fine but it does not process formulas.
 
 ---test.tex--
 \documentclass{article}
 \begin{document}
  $\sin(x)$
 \end{document}
 ---end of test.tex
 
 Michelle:/home/mrspock/tex latex2html test
 
 --- it was properly processed but,  at the end:  ---
 
  *** processing 1 images ***
 
 Generating postscript images using dvips ...
 This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
 ' TeX output 2004.10.07:1523' - /tmp/l2h879/image
 (- /tmp/l2h879/image001) tex.proalt-rule.protexc.prof7b6d320.enc
 aae443f0.enctexps.prospecial.procolor.procmmi10.pfbcmr10.pfb[1]
 Converting image #1
 pstoimg: Error: /usr/local/bin/ppmquant -floyd 256  /tmp/l2h879/p892.pnm | 
 /usr/local/bin/pnmtopng -interlace -trans '#ff'   img1.png failed:
 
 Error while converting image

As i expected, there is a race condition.

By the time ppmquant gets the file input, the file, actually the
/tmp/l2h* directory, has been already removed, resulting in the
above it seems.

Do ktrace -di -f log latex2html file.tex ; kdump -n -f log | less.
Then search for string /tmp/l2h.  You will see that directory is
removed well before ppmquant get to do its thing.  (Mind that i have
not checked if any of the file handle(s) is retained, or retained
file handle is not closed, before directory removal.)

 (In that case, IMO, it would not be a race condition but an
 indication of bad design of latex2html.)


 pnmtopng  was installed by netpbm-10.24... and it seems that
 it is being called with a pair of parameters that does not seem to
 work.

Yes, see above.


  - Parv

-- 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: latex2html problems (fwd)

2004-10-08 Thread Parv
in message [EMAIL PROTECTED],
wrote Parv thusly...

  latex2html-2002.2.1_3 Convert LaTeX documents to HTML
  teTeX-2.0.2_2 Thomas Esser's distribution of TeX  friends
 
 ... with latex2html-2002.2.1_3  teTeX-2.0.2_3.
 
  Michelle:/home/mrspock/tex latex2html test
  
  --- it was properly processed but,  at the end:  ---
  
   *** processing 1 images ***
  
  Generating postscript images using dvips ...
  This is dvips(k) 5.92b Copyright 2002 Radical Eye Software (www.radicaleye.com)
  ' TeX output 2004.10.07:1523' - /tmp/l2h879/image
  (- /tmp/l2h879/image001) tex.proalt-rule.protexc.prof7b6d320.enc
  aae443f0.enctexps.prospecial.procolor.procmmi10.pfbcmr10.pfb[1]
  Converting image #1
  pstoimg: Error: /usr/local/bin/ppmquant -floyd 256  /tmp/l2h879/p892.pnm | 
  /usr/local/bin/pnmtopng -interlace -trans '#ff'   img1.png failed:
  
  Error while converting image
 
 Do ktrace -di -f log latex2html file.tex ; kdump -n -f log | less.
 Then search for string /tmp/l2h.  You will see that directory is
 removed well before ppmquant get to do its thing.
...
  pnmtopng  was installed by netpbm-10.24... and it seems that
  it is being called with a pair of parameters that does not seem to
  work.

I was wrong in my assesment. As noted above, problem seems to be with/for
pnmtopng not ppmquant ...

  # latex2html -debug p.tex
  ...
  Debug (syswait): Running /misc/local/bin/perl5.8.5 /misc/local/bin/pstoimg -type 
png -debug -tmp /tmp/l2h3101 -discard -interlace -antialias -depth 1 -scale 1.6 
-geometry 26x16 -margins 134,72 -crop abls -transparent -out img1.png 
/tmp/l2h3101/image001.ps
  at /usr/local/bin/latex2html line 4230
  pstoimg V2002-2-1 (Revision 1.16, Perl 5.008005)
  pstoimg: Temporary directory is /tmp/l2h3101
  pstoimg: Processing /tmp/l2h3101/image001.ps
  pstoimg: EPSF dimensions are 31x23
  pstoimg: Running /usr/local/bin/gs  -sDEVICE=ppmraw -g50x37  -r115 -dTextAlphaBits=4 
 -sOutputFile=/tmp/l2h3101/p3114.pnm
  ...
  Image /tmp/l2h3101/p3114.t02 is PPM, 44x20
  Image /tmp/l2h3101/p3114.pnm is PPM, 44x32
  Running /usr/local/bin/ppmquant -floyd 256  /tmp/l2h3101/p3114.pnm | 
/usr/local/bin/pnmtopng -interlace -trans '#ff'   img1.png
  pnmcolormap: making histogram...
  pnmcolormap: 16 colors found
  pnmcolormap: Image already has few enough colors (=256).  Keeping same colors.
  pnmcolormap failed, rc=139
  pnmtopng: Error reading magic number from Netpbm image stream.  Most often, this 
means your input file is empty.
  pstoimg: Error: /usr/local/bin/ppmquant -floyd 256  /tmp/l2h3101/p3114.pnm | 
/usr/local/bin/pnmtopng -interlace -trans '#ff'   img1.png failed:
  Debug (syswait): Finished child process: #3114
  at /usr/local/bin/latex2html line 4230


I can provide the detailed log if anybody is interested.


  - Parv

-- 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]