If you see this, something is wrong
First published on Thursday, Oct 31, 2024 and last modified on Saturday, Nov 14, 2026 by François Chaplais.
hyperref
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.
LaTeX2Web manages the table of contents on its own.
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.
\url
\url creates a plain link to a URL, the displayed text being the URL itself. Example: https://documents.live/publications/LaTeX-for-web-authoring-and-publication-publication/hyperref .
\href
\href is the same as \url, except that it has a second parameter that gives the displayed text. Example: hyperref
\hyperref
In LaTeX, \hyperref is a variant of \ref that lets you choose the displayed text. For instance Hyprerref commands is a reference to section 1.4. The code is
\hyperref[Hyprerref-commands]{Hyprerref commands}
Note that Documents Live has a variant of \ref that does the same by passing an optional parameter. The following code
\ref{Hyprerref-commands}[Hyprerref commands]also results in Hyprerref commands.
\autoref
\autoref functions like \ref excepts that it prepends the reference number by its type. For instance,
\autoref{Hyprerref-commands}produces Section 1.4.
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.
\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.