You can use the TeX2page command \inputcss to have your HTML output use style
sheets [39, 26, 31]. E.g.,
\ifx\shipout\UnDeFiNeD % HTML only \inputcss basic.css \fi
in your TeX source will cause the HTML output to
use the presentation advice contained in the
style sheet basic.css.
In the style sheet, you can have rules for the various HTML elements to change the appearance of your document. E.g., if you do not want your HTML page width to increase beyond a certain point (regardless of how the wide the reader makes their browser window), you could put the following in your style sheet:
body {
max-width: 36em;
}
You can get finer control on the look of your document by defining rules for some classes that are peculiar to TeX2page. These special classes are discussed in this manual alongside the commands that they govern (p. 8).
You can have as many \inputcss’s in your
document as you wish. They will be combined in
the sequence in which they appear. It is perhaps
necessary to add that style sheets are completely
optional.
You can also embed style sheet information
in the TeX source between the control sequences
\cssblock and \endcssblock. E.g.,
\ifx\shipout\UnDeFiNeD % HTML only
\cssblock
body {
max-width: 36em;
}
\endcssblock
\fi
You can
have multiple \cssblocks in the document; they
are all evaluated in sequence.
TeX2page generates a very basic default style
that
does little beyond setting some margins. You
can augment or override the default style by supplying your
own style info via \cssblock or by loading
stylesheets with \inputcss. Some general-purpose
style sheets are the W3C Core
Styles [40].