<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>[l2h] Re: black frame around math figures</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK
href="index.html" rel=Index><LINK href="mailto:ross%40ics.mq.edu.au" rel=made>
<META content=index,nofollow name=robots><LINK href="001114.html" rel=Next>
<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
[l2h] Re: black frame around math figures Ross Moore mailto:ross@ics.mq.edu.au Tue, 1 May
2001 21:29:52 +1000 (EST)
<!--beginarticle-->> > > Hi. > > I'm using linux RedHat 7.1. > Latex2html 2k.1 is already included in /usr/share (no installation > required). > I've a curious problem. > The images I get from math formulae are rounded by a sort of "black frame". > Unwanted, of course. > Searching the net, I've discovered you replied toa similar message on > latex2html list: > //// > From: Ross Moore > Subject: Re: [l2h] Black borders around math images > Date: Wed, 14 Mar 2001 11:34:24 -080 > /// > > > Could you explain what I should do to solve the problem?
What version of netpbm are you using ? The last person to report on this bug was using v 9.5 under RedHat.
With this version of netpbm, and all versions up to 9.11, check whether pstoimg is configured correctly. It should contain lines:
# Netpbm my $PNMCROP = '/usr/local/bin/pnmcrop -verbose '; ^^^^^^^^^^ ----- important !
and the arguments to pnmcrop commands are built as follows:
if($edge =~ /b/i) { $croparg = '-bot -black '; } elsif($edge =~ /[tlr]/i) { $croparg = "-$edge -black "; } elsif($edge =~ /s/i) {
and
if(&do_cmd_norename("$PNMCROP -bot -black< $in",$tmp)) {
Note the use of '-black ' in these 3 instances. This allows correct cropping to get images of the desired size, with the necessary padding below and on either side.
However, the use of '-black' is a temporary thing only, for it will not work when typesetting in colored text; it only works for black text/math on a non-black background.
Do *not* append ' -black' to the value of $PNMCROP . That certainly does not work.
I suggest that you get one of the latest versions, v 9.12 or 9.13 from http://sourceforge.net/projects/netpbm/
With these, replace the '-black' above with '-sides' . Now the cropping should work correctly, even with colored text in the images.
If, having fixed pstoimg to use the above coding, it still fails to work, then there must be a problem that is known (so far) only under RedHat. Please report back on this.
> Also, I think this will be a very popular question, as RedHat is the > world most-used linux distribution, and it's buggy !
The latest version of pstoimg and the installation procedures for LaTeX2HTML are supposed to check the version of netpbm and construct the correct coding for pstoimg . However, it may be that with the RedHat distribution you are not getting the latest versions, either of LaTeX2HTML, or of Netpbm, or both.
I hope this posting helps you to fix the problem.
All the best,
Ross Moore
> > thanks, > enrico >
<!--endarticle-->
<| Post or View Comments |>
|