Hi Jason,
The problem with black frames or borders around LaTeX2HTML images (i.e.
typeset mode) is a well known LaTeX2HTML problem. Supposedly it's due
to using an old version of netpbm.
Look at the instructions http://webhost.math.rochester.edu/webworkdocs/discuss/msgReader$390 which say to add one "-verbose" and three "-black" to pstoimg.
However, depending on your version, the way pstoimg is written may be
different so where you add these fixes has changed. Thus if the above
is not applicable in your case, try the following which are based on
Revision 1.11 1999/10/25 of pstoimg.
Edit pstoimg (which you might find at /usr/bin/pstoimg) as follows:
In lines 1086 and 1088 add "-black" to the $croparg argument in the two places indicated below:
# RRM: Remove justification bars $EXTRA_CROP =~ s/h/bt/gi; # crop horizontally $EXTRA_CROP =~ s/v/rl/gi; # crop vertically while ($EXTRA_CROP =~ /([atblrs])/gi) { my $edge = $1; my $croparg = ''; if($edge =~ /b/i) { $croparg = '-bot -black '; } elsif($edge =~ /[tlr]/i) { $croparg = "-$edge -black "; } elsif($edge =~ /s/i) {
Next in line 1098 also add "-black" as indicated: my ($type,$width,$height) = get_image_geometry($in); next unless($type); # skip if no geometry if(&do_cmd_norename("$PNMCROP -bot -black< $in",$tmp)) { my ($type,$width,$height2) = get_image_geometry($tmp); if($type && ($height - $height2) < 3 ) { # command succeeded and shaved less than 3 rows
Concerning your trouble with dvipng (i.e. typeset2 mode), can you give
us a reference to a specific problem in the library which illustrates
the trouble?
Thanks.
Arnie
<| Post or View Comments |>
|