hthtml - an extended interface to LaTeX2HTML

Jens Krinke

j.krinke@tu-bs.de

TU Braunschweig


Contents

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:

    \htlink{example}{http://foo.bar/~gnus_and_gnats}
    

  2. \hturl{url}: Sets url as text with a link to url in HTML and url in typewriter-style in DVI. Example: http://foo.bar/~gnus_and_gnats.

    This is made from:

    \hturl{http://foo.bar/~gnus_and_gnats}
    

  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:

    \htmailto{foo@bar}
    

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.

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

This is made from:

\begin{htdescription}
\item[foo] is not described here.
\item[Another \htlink{example}{http://foo.bar/~gnus_and_gnats} here.]
  Look at the footnote!
\item[bar] is described somewhere else.
\end{htdescription}

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