next up previous
Next: Predicates for Producing HTML Executables Up: Predicates for Generating HTML Documents Previous: Specific Structures for Forms

Extending the Package

 

Along with the obvious solution of changing the source code directly, the package has a built-in mechanism for extending it by adding clauses to the following predicate:

html_expansion(Macro,Translation)
The new HTML structure Macro is equivalent to the standard one Translation. Care must be taken not to transform a structure into itself (this would lead to an infinite loop).

The package has these two equivalences predefined (just to make environments more LaTeXish):

html_expansion(bf(X),b(X)).
html_expansion(it(X),i(X)).

As an example, to define structures for the new HTML3 tabbing elements, one would define the following clauses:

html_expansion(settab(I),tabstop$[id(I)]).
html_expansion(tabto(I),tab$[to(I)]).



Mon Mar 18 21:38:39 MET 1996 <clip@dia.fi.upm.es>