hthtml - an extended interface to LaTeX2HTML

Jens Krinke

TU Braunschweig


1 Introduction

The use of html.sty makes the use of some special LATEX-commands possible, which supports the use of HTML-features in LaTeX and give different results in the generated DVI-file and the translated HTML-file. However, more support can be added, which makes it easier to write documents that are looking similar in DVI and HTML format.

2 Features of hthtml

2.1 A frequently requested feature

Every now and the somebody asks how to use `_' and `~' in the htmladdnormallink-commands. This is not supported, one has to use \_ and \~{}.

The following commands are able to process `_' and `~' directly:

  1. \htlink{text}{url}: Sets text with a link to url in HTML and text with a footnote of url in typewriter-style in DVI. This is an example.

    This is made from:


  2. \hturl{url}: Sets url as text with a link to url in HTML and url in typewriter-style in DVI. Example:

    This is made from:


  3. \htmailto{mail-address}: Sets a mail address with a mailto-url pointing to it in HTML and just the address in DVI. Example: foo@bar.

    This is made from:


htlink and hturl aren't useable inside commands like \author or \title, where one has to use the old \htmladdnormallinkfoot command. This command is redefined in hthtml to set the footnote in typewriter-style.

2.2 A patched description environment

The use of \htmladdnormallinkfoot and htlink is impossible in the item-elements of a description environment because it is impossible to use footnotes there. The htdescription environment is a different implementation of the description environment which allows footnote and the other mentioned commands.

is not described here.
Another example here.
Look at the footnote!
is described somewhere else.

This is made from:

\item[foo] is not described here.
\item[Another \htlink{example}{} here.]
  Look at the footnote!
\item[bar] is described somewhere else.

2.3 Some nice features

3 Availability

The complete hthtml-package is available at the author's homepage where the original hthtml-page is located. It is available as gzip'ed tar-file.

Original site