Prev Up Next
Go backward to 9.2 Rulers and images
Go up to 9 Designing it yourself
Go forward to 9.4 Turning TeX into bitmaps

9.3 Adding raw Html

Hyperlatex provides a number of ways to access the HTML-tag level.

The \htmlsym{entity} command creates the HTML entity description &entity;. It is useful if you need symbols from the ISO Latin 1 alphabet which are not predefined in Hyperlatex. You could, for instance, define a macro for the fraction ¼ as follows:

   \T \newcommand{\onequarter}{$1/4$}
   \W \newcommand{\onequarter}{\htmlsym{##188}}

The most basic command is \html{tag}, which creates the HTML tag <tag>. This command is used in the definition of most of Hyperlatex's commands and environments, and you can use it yourself to achieve effects that are not available in Hyperlatex directly. Note that \html looks up any attributes for the tag that may have been set with \htmlattributes. If you want to avoid this, use the starred version \html*.

Finally, the rawhtml environment allows you to write plain HTML, if you so desire. Everything between \begin{rawhtml} and \end{rawhtml} will simply be included literally in the HTML output. Alternatively, you can include a file of HTML literally using \htmlinclude.


Otfried Schwarzkopf, September 2, 1997

Prev Up Next