According to Harriet B Borton:
> ... 
> However, I would like to make all our documents have a certain background
> color. I can do this for the main page because all the latex documents call a
> macro called logo at the beginning and I put the bgcolor command in that
> using the rawhtml environment. But each \section starts a new page (file) and
> the background color doesn't carry over.  I wanted to change the \section
> command to include the color change so all the files would have the new
> color. Is there a way to do that outside of the \section command?
> 

Hi Harriet,

   The easiest way to do this is to create a .latex2html-init
   file and have in it, for example:

$BODYTEXT = "text=\"\#000000\" bgcolor=\"\#FFFFFF\"";

   This puts into the <BODY> tag of the HTML output
    
   text="#000000" bgcolor="#FFFFFF"

   (this example makes the text black and the background white)
   You can deal with alink, vlink etc. in the same way.
   The variable $BODYTEXT expects a string (in a pair of double
   quotes: "....") ... so to get " (and also #) into the string
   they need to be escaped with a \. The line needs to be
   terminated with a ;

   Also the last line of .latex2html-init should be:

1;

   You shouldn't mess with \section to do it.

  Regards,
  Greg Gamble
___________________________________________________________________
Greg Gamble   __________________      mailto:[EMAIL PROTECTED]
Department of Mathematics ___                 Tel: +61-8 9380 3383
The University of Western Australia           Fax: +61-8 9380 1028
NEDLANDS WA 6907  AUSTRALIA         http://maths.uwa.edu.au/~gregg/
___________________________________________________________________

Reply via email to