Forum archive 2000-2006

Arnold K. Pizer - Black frame around math figures

Arnold K. Pizer - Black frame around math figures

by Arnold Pizer -
Number of replies: 0
inactiveTopicBlack frame around math figures topic started 5/4/2001; 11:01:13 AM
last post 5/25/2001; 8:44:32 AM
userArnold K. Pizer - Black frame around math figures  blueArrow
5/4/2001; 11:01:13 AM (reads: 9257, responses: 4)
Several users have reported trouble with a black frame around math figures in typeset mode:

"Do you get equations surrounded by thick black lines? If so, any ideas on how to remove them?"

"A problem is that all the images which are displayed by latex2html have a narrow black border on the bottom and left sides."

This is a latex2html problem. The solution to this problem is given in the responses below.

<| Post or View Comments |>


userArnold K. Pizer - Re: Black frame around math figures  blueArrow
5/4/2001; 11:05:03 AM (reads: 10055, responses: 0)
<!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 |>


userArnold K. Pizer - Re: Black frame around math figures  blueArrow
5/4/2001; 11:07:54 AM (reads: 10326, responses: 0)
Delivered-To: apizer@math.rochester.edu 
X-Authentication-Warning: studenti.ing.unipi.it: s172776 owned process doing -bs
From: enrico <s172776.NOSPAM@studenti.ing.unipi.it>
X-Sender: s172776@studenti.ing.unipi.it
To: Ross Moore <ross@ics.mq.edu.au>
Cc: latex2html@tug.org
Subject: [l2h] Re: black frame around math figures
Sender: latex2html-admin@tug.org
X-BeenThere: latex2html@tug.org
X-Mailman-Version: 2.0.3
List-Help: <mailto:latex2html-request@tug.org?subject=help>
List-Post: <mailto:latex2html@tug.org>
List-Subscribe: <http://tug.org/mailman/listinfo/latex2html>,
<mailto:latex2html-request@tug.org?subject=subscribe>
List-Id: LaTeX-to-HTML conversion via latex2html <latex2html.tug.org>
List-Unsubscribe: <http://tug.org/mailman/listinfo/latex2html>,
<mailto:latex2html-request@tug.org?subject=unsubscribe>
List-Archive: <http://tug.org/pipermail/latex2html/>
Date: Tue, 1 May 2001 18:37:52 +0000 (GMT)






On Tue, 1 May 2001, Ross Moore wrote:




>
> 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.
>





Thanks, I've solved my problem :-)




The latex2html included in RedHat Linux 7.1 was not the last, and was
faulty.




Version included in RH 7.1 : 2K.1beta (1.47)
Last upload (for now) : 2K.1beta (1.50)




I've installed the really last, and works great.
Also, RH 7.1 provides netpbm-9.9, which appears to work.




thanks again,




ciao
enrico



ps, would you like driving people to get crazy ?! :-)))))) why on earth don't you use a standard version numbering, like "version 1.2.3", or "2001-12-31.ver123" or similar? If you upload a file named: "latex2html-2K1beta.tar.gz" how can one knows if it's the last, or not, or whatever else ...?!

_______________________________________________ latex2html mailing list latex2html@tug.org http://tug.org/mailman/listinfo/latex2html

<| Post or View Comments |>


userArnold K. Pizer - Re: Black frame around math figures  blueArrow
5/4/2001; 11:08:37 AM (reads: 9953, responses: 0)
Delivered-To: apizer@math.rochester.edu Sender: trs@hecke.dartmouth.edu Date: Fri, 04 May 2001 08:46:41 -0400 From: "Thomas R. Shemanske" <trs@hecke.dartmouth.edu> Reply-To: thomas.r.shemanske@dartmouth.edu Organization: Dartmouth College X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i686) X-Accept-Language: en To: Arnold Pizer <apizer@math.rochester.edu> Subject: Re: Fwd: [l2h] Re: black frame around math figures

1. That fix worked great

I had been editing the pstoimg file on my own.

The man page specifies the options to psnmcrop as -bottom and -left etc instead of -bot and -l used in pstoimg. I thought this was the problem, but making those changes did not affect the result.

Thanks for digging.

2. We need to setup a database (perhaps by OS distribution: Redhat 7.1. Debian woody, NT etc, perhaps crossreference with software) with installation tips. There is so much variation out there in the versions of software used. Jensen's "more info" is certainly a good start.

Here's what I wrote when I set up 1.6 http://www.math.dartmouth.edu/webwork_local/local_notes/webwork_installation_setup_1.6.pdf

via http://www.math.dartmouth.edu/webwork_local

What do you think about this? Maybe just a link to various other people's local-doc sites? Disseminating this kind of information seems hard.

3. I did have a question about what started all this. If your default mode is latex2html, then when you select a problem set, hit the Do problem set button, you get a page which lists each individual problem to do. This is where things failed for me, that is the list of problems would not display. Why is latex2html invoked in getting here? No problems have yet been rendered?

Tom -- Thomas R. Shemanske (Mailing Address) (Office/Internet Information) Department of Mathematics 203 Choate House 6188 Bradley Hall thomas.r.shemanske@dartmouth.edu Dartmouth College http://www.math.dartmouth.edu/~trs/ Hanover, NH 03755-3551 (603) 646 - 3179 Directions: http://www.math.dartmouth.edu/~trs/choatehouse.html Office hours: http://www.math.dartmouth.edu/~trs/frontmatter/office.html

Spring Term Office Hours: By appointment

<| Post or View Comments |>


userAndy Wildenberg - Re: Black frame around math figures  blueArrow
5/25/2001; 8:44:32 AM (reads: 9867, responses: 0)
I just had to apply the pnmcrop fix above, and it struck me strange that he wants you to do 'pnmcrop -verbose'. I tried the modifications without the '-verbose' and they still work fine, and considering that -verbose just means more work, I don't think I would follow that particular piece of advice.

<| Post or View Comments |>