\htmlattributes
. Its
first argument is the name of an HTML tag (in capitals!), the second
argument can be used to specify attributes for that tag. The
declaration can be used in the preamble as well as in the document. A
new declaration for the same tag cancels any previous declaration,
unless you use the starred version of the command: It has effect only on
the next occurrence of the named tag, after which Hyperlatex reverts
to the previous state.
Note that not all tags generated by Hyperlatex can be influenced using this declaration. You can only try and see (and complain to me if you need access to a tag that Hyperlatex doesn't grant you).
Some common applications:
netscape
allows you to specify the background color of an HTML node using an attribute that you can set as follows. (If you do this
in the preamble, all nodes of your document will be colored this way.)
\htmlattributes{BODY}{BGCOLOR="#ffffe6"}The following declaration makes the tables in your document have borders.
\htmlattributes{TABLE}{BORDER}A more compact representation of the list environments can be enforced using (this is for the
itemize
environment):
\htmlattributes{UL}{COMPACT}