next up previous
Next: 6. Introducing Images in Up: A Short Beginner-User's Guide Previous: 4. Conditionality

Subsections

   
5. Hypertext



Here we discuss only the way to include hyperlinks which have an effect only in the HTML version. The way to include hyperlinks which have two different effect when processed by LaTeX and by LaTeX2HTML is described below

Two kind of Hypertext links can be distinguished:

* "URL links":
These links simply send the reader to another node of the current HTML document (internal link), or to another URL address, maybe outside of the document (external link).
* "cross-reference links":
These links send the reader to another place in the text of the current document.




5.1 "URL" links

The "URL" hypertext links can be specified in the source document by :

\htmladdnormallink{text}{URL}

For an internal link, you just specify the node where to go (e.g. node2.html), and for an external link, you specify its complete URL address.

* LATEX:
When processed by LATEX the text argument is simply printed normally and the URL argument is ignored.
* HTML:
When processed by HTML the text argument is simply underlined and the URL argument provides the active link to the corresponding file




5.2 "cross-reference" links

This kind of link is better for referring to inside the current document since the name of a node can change for a future revised version of the document. The advantage of a cross-reference link is to be valid dynamically (even when then numebring of node changes). For these links, you must first put a "label" in the text at the place you want the link to point to:

... some text \label{my_label} and the following ...


Then a portion of the text must be highlighted and point towards the label my_label:

... some other text \htmlref{highlighted_text}{my_label} more text ...


next up previous
Next: 6. Introducing Images in Up: A Short Beginner-User's Guide Previous: 4. Conditionality
Pierre BENARD
2002-06-19