LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Thursday, Oct 31, 2024 and last modified on Saturday, Jun 14, 2025 by François Chaplais.

hyperref

François Chaplais

1 hyperref

1.1 Links to references

LaTeX2Web manages cross references in a way that is different from what hyperref implements in PDF files. The same holds for citations.

As a general rule, LaTeX2Web replaces the linking behaviour of hyperref in PDF documents by a system of its own that is adapted to interactive web content.

1.2 Table of contents

LaTeX2Web manages the table of contents on its own.

1.3 Remote images

LaTeX2Web uses its own command as follows:

\begin{image}
\url{https://www.dropbox.com/scl/fi/9fya4wgacqow8enzfks7q/Logo-LaTeX2Web.jpeg?rlkey=0g316mrra2mo2ciicvuc1yv30&raw=1}
\alt{The LaTeX2Web logo}
\end{image}

This produces the LaTeX2Web logo.

1.4 Implemented commands

The following commands are implemented:

  • \url

  • \href

  • \ref*

  • \hyperimage only in text (the image is not displayed, it is only a link; if you want the image, use the image environment above)

  • \hyperref with the following two variants:

    • \hyperref{URL}{category}{name}{text}

    • \hyperref[label]{text}

  • \autoref

When the URL refers to a web page, this one is opened in a new tab.

When a email adress is in the document, it is obfuscated in the HTML output to avoid detection by spam bots.

1.5 Custom LaTeX2Web commands

\email will produce an email link with text set to 'Email'. The email link is obfuscated to make it more difficult for spam bots to read tha address.