# [l2h] transparent math

Ross Moore ross@ics.mq.edu.au
Thu, 1 Nov 2001 10:46:33 +1100 (EST)

>
> How does one do "transparent" math formulas under latex2html ?
> I tried to look for the answer in the manual and the expected stuff:
>
> 	latex2html -transparent test
>
> on the file:
>
> ------------------------------------------------------------
> \documentclass{report}
>
> \begin{document}
>
> This is a formula $\frac{dx}{dt} = 2 \alpha + \beta$.
>
> \end{document}
> ------------------------------------------------------------
>
> to no avail, I still get the grey-box around the formula,
> as it can be seen at:
>
> 	http://www.math.berkeley.edu/~desouza/test/test.html

This has a correctly made transparent PNG image.
It does not appear transparent in the browser, due to limitations
of the browser; there is nothing at all wrong with the image.

You have a several options:

1. use .gif  images, for which browsers generally do show
the transparency correctly;
(However, there are philosophical reasons why this may
not be desirable, and why it isn't LaTeX2HTML's default.)

2. set the background color of your HTML pages,
and set the background colour of the images to match.

This is easily done with LaTeX2HTML:
e.g. put this into the document preamble:

\usepackage{color}
\pagecolor{white}

3. use image-editing software to change the background color
of your existing images to something else (white, say),
and redeclare this color to be transparent.
(Then I'll see a white rectangle on a yellow background,
since I like a pale yellow to be the browser default.)

Hope this helps,

Ross Moore

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