4  Style

You can have your HTML output use style sheets [241519]. 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. E.g.,

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 (sections 6.4 and 6.5).

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

\cssblock 
h1      {color: navy} 
\endcssblock 

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

TeX2page generates a default style sheet for the converted document, jobname-Z-S.css. 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 [25].

4.1  Making a slideshow

The MozPoint [16] library (which relies on Javascript and style sheets) allows a sequence of HTML pages to be used as a presentation or slideshow. HTML pages meant for presentation use larger, bolder fonts, and avoid navigation bars. To bring up the next slide, left-click the mouse anywhere on the screen, or press the space bar, n, right or down arrow. To go back to the previous slide, press p, left or up arrow. To go back to the first (i.e., title) slide, press t or 0. To go the nth slide after the title slide, type n. If n has two or more digits, they should be pressed fairly rapidly so that they are interpreted together.

To cause your source to be converted into slideshow-ready HTML pages, use the macro file t2pslides.tex by embedding \input t2pslides anywhere in the document. t2pslides.tex is included in the TeX2page distribution.