7  Style sheets

You can have your HTML output use style sheets [11]. The command

\inputcss basic.css

in your TeX source will cause the HTML output to use the presentation advice contained in the style sheet basic.css. The \inputcss command has no relevance for the DVI output.

In the style sheet, you can have rules for the various HTML elements to change the appearance of your document. Eg,

h1      {color: navy}

will cause all top-level headers to be navy-blue. 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.

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. Eg,

\cssblock
h1      {color: navy}
\endcssblock

You can have multiple \cssblocks in the document; they are all evaluated in sequence.

The TeX2page distribution includes the file t2p-example/css.t2p, which contains a sample \cssblock that focuses on style rules for the TeX2page-specific classes. It may be modified, or combined with other more general styles such as the W3C Core Styles [17] (which can be included with \inputcss).