[l2h] Math formula background color?

Philipp K. Janert, Ph.D. janert at ieee.org
Fri May 5 06:21:18 CEST 2006


Thanks for the advice. 
Using \htmlimage{noantialias} did the trick.

I tried all kinds of other stuff, too, such as
puttting spaces (\quads) in front and back,
and including a \vphantom{\Bigl|}, but neither
helped - as long as I kept the \bigl| , \bigr| in 
the formula. Taking them out made the 
problem go away. It's still a bit mysterious
to me.

Anyway, thanks for the advice, and I have
a path forward now.

Best,

		Ph.


On Monday 01 May 2006 00:55, you wrote:
> On 01/05/2006, at 3:01 PM, Philipp K. Janert, Ph.D. wrote:
> > No, there are no black bars on the left/bottom
> > in this example. I have seen them before though,
> > in a similar situation.
> >
> > Is there anything I can/should do to make sure
> > the image backgrounds are successfully turned
> > transparent? Adding \htmlimage{transparent}
> > does not help.
>
> Adding some extra space often helps;
> e.g.  \,  at the start or end of the maths.
>
> This adds horizontal space.
> To tell whether this might work, is the column
> of pixels down the leftmost or rightmost edge
> of the image pure gray ?
> If not, then that's the side which needs a bit
> more space.
>
> If both edges are OK, then what about the top
> and bottom rows of pixels ?
> If these are not entirely gray -- must be the
> same shade; anti-aliasing can upset this ---
> then that may be why you don't get transparency.
>
>
> I know that this kind of thing can be annoying;
> it boils down to a pixel-by-pixel thing.
>
> You might try increasing the  $MATH_SCALE_FACTOR
> getting slightly larger images. This often helps
> in this kind of situation.
>
> Or just adding  \htmlimage{scale=1.1}  to the
> particular math environment might help.
>
>
> Have you read the section on LaTeX2HTML in
>   The LaTeX Web Companion ?
>
> There may some ideas in there that are appropriate
> to the kind of document that you wish to produce;
> e.g.
> the distinction between 'novice', 'pro' and 'expert'
> for mathematics processing.
>
> > Best,
> >
> > 		Ph.
>
> Hope this helps,
>
> 	Ross Moore
>
> ------------------------------------------------------------------------
> Ross Moore                                         ross at maths.mq.edu.au
> Mathematics Department                             office: E7A-419
> Macquarie University                               tel: +61 +2 9850 8955
> Sydney, Australia  2109                            fax: +61 +2 9850 8114
> ------------------------------------------------------------------------


More information about the latex2html mailing list