[l2h] latex2html

Berend van Wachem berend at chalmers.se
Wed Sep 20 16:07:19 CEST 2006


Dear Christopher,

You can add/change options for pnmcrop in the script pstoimg. In my 
case, I edited the script (/usr/local/bin/pstoimg) and added a pnmcrop 
option on line 268 of the script.

Good luck,

Berend.

> Berend,
> 
> Sounds as if I could use your fix.  Where do I find the 'pnmcrop 
> options'  and/or how can I incorporate it into latex2html?
> 
> On Sun, 17 Sep 2006 13:40:52 +0100, Berend van Wachem 
> <berend at chalmers.se>  wrote:
> 
>> Dear Shigeharu TAKENO,
>>
>> Thank you very much for your help! It actually figured to be your option
>> 2. Although I have the latest version of latex2html (I think, v 98.1) I
>> still needed to add an option the the pnmcrop options, namely "-black".
>> That did the trick.
>>
>> Thanks everyone!
>>
>> Berend.
>>
>>
>>> shige 09/17 2006
>>> ----------------
>>>
>>> | Date: Fri, 15 Sep 2006 18:56:09 +0200
>>> | From: Berend van Wachem <berend at chalmers.se>
>>> | Subject: Re: [l2h] latex2html
>>> | To: Ross Moore <ross at ics.mq.edu.au>
>>> | Cc: latex2html at tug.org
>>>
>>> Berend van Wachem <berend at chalmers.se> wrote:
>>> | >> I did get latex2html working, but it shows a dark line on the left
>>> | >> and bottom of all my equations and symbols. Is this a problem with
>>> | >> latex2html or netpbm?
>>>
>>> When latex2html makes images, it adds some margins and black
>>> lines to them firstly, and cuts off the lines by "pnmcrop".
>>> Remaining lines means the failure of the cutting off them.
>>>
>>> Several reasons may cause the problem.
>>>
>>> 1) In the case your l2hconf.pm has the line
>>>
>>>  $DVIPSOPT .= " -Ppdf";
>>>
>>> please remove (or comment out) the line.
>>>
>>> 2) In the case you use old version of latex2html and new version
>>> of netpbm, please use the latest latex2html (latex2html-2002-2-1),
>>> or modify the pnmcrop option in pstoimg appropriately.
>>>
>>> 3) In the case you use some special font, see
>>>
>>> http://www.xray.mpe.mpg.de/mailing-lists/latex2html/2003-02/msg00001.html 
>>>
>>>
>>> 4) In the case you use some special command such as \smash, you
>>> may use \latexhtml command defined in html package to workaround
>>> it.
>>>
>>> If your equation touch (or cross) the black line, the problem may
>>> be by the reason 3) or 4). If not, it may be by 1) or 2).
>>>
>>> +========================================================+
>>>  Shigeharu TAKENO     NIigata Institute of Technology
>>>                        kashiwazaki,Niigata 945-1195 JAPAN
>>>  shige at iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
>>> +========================================================+
>>
>> _______________________________________________
>> latex2html mailing list
>> latex2html at tug.org
>> http://tug.org/mailman/listinfo/latex2html
> 
> 
> 


More information about the latex2html mailing list