Harriet B Borton wrote:
>What I'm trying to do is come up with a consistent look for all our Computing
>Center documentation. I don't want to change the section heading very much--
>maybe a smaller font and less vertical space after the heading. But these are
>minor, and if I can't do it that's ok. (I don't really want to change all our
>current documents to use \mysection instead of \section.)

OK, this is the *visual* aspect of HTML
rather than the (logical) *content* aspect.

LaTeX2HTML has an emphasis on the content, as indeed does HTML itself.

Visual aspects should be handled using Stylesheets,
for which there are several languages.

CSS1 is suggested for HTML 4.0 and is supported pretty well by the
latest versions of Netscape 4.0x and MSIE;
CSS2 is less well supported.
In both cases the support varies according to the platform
(PC, Mac, X-windows, etc.)

LaTeX2HTML creates a stub stylesheet named  <name>.css
(using the name of your document) which can be easily edited,
if you know a bit about CSS .

If you use  latex2html -html_version 4.0   then the .css file allows
for more places where stylesheet information can be applied,
with any extra editing in either the LaTeX source or the HTML pages.

LaTeX2HTML also provides a mechanism, provided you \usepackage{html},
for creating the stylesheet entries automatically, from information
included within the LaTeX source.

My advice would be to process one or two of your documents with
no changes at all, but using

          latex2html -html_version 4.0  ......

Then open the  .css  file in an editor and experiment with style-changes,
to find those which best suit your documents.
When you know precisely what HTML and CSS code you want,
then we can determine the best way to use these with all the rest of
your documents, with minimal editing.


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

There are many ways to add color.
e.g. using LaTeX's color models:

        \usepackage[dvips]{color}
        \pagecolor{...}  % sets the background color
        \color{...}      % sets the text-color

You may want to load the  html.sty  package first,
and apply the color-changes to just the HTML pages:

        \usepackage{html}
        \usepackage[dvips]{color}
        \begin{htmlonly}
        \pagecolor{...}  % sets the background color
        \color{...}      % sets the text-color
        \end{htmlonly}

but then if you are loading  html.sty  you could use \bodytext
or (better) \htmlbody to set/alter the attributes in the <BODY...> tag.
There are other more complicated things that you can do using {rawhtml}
or \HTMLcode .

However since these require editing in the LaTeX source,
the style-sheet approach is probably best.

Besides, using stylesheets you can develop different sets of styles and
apply them without *any* reprocessing, or changes to the HTML code.


>Thanks again for your help,

You're welcome.
I'd be interested to see the results you get, using CSS stylesheets.


        Ross Moore



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore                             email: [EMAIL PROTECTED]
Mathematics Department                 phone:      +612 9850 8955
Macquarie University                     fax:      +612 9850 8114
Sydney, NSW 2109                      office:             E7A-419
Australia              WWW: http://www-math.mpce.mq.edu.au/~ross/

                ***************************

for the best in (La)TeX-nical typesetting and Web page production
join the  TeX Users Group (TUG) --- browse at  http://www.tug.org

                 <[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply via email to