Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Inserting URLs in a LaTeX-document?

4 views
Skip to first unread message

Karl Voit

unread,
Mar 30, 2001, 11:04:19 AM3/30/01
to
I'd like to know, if there's a way to insert a URL to a LaTeX-file, so that
in the resulting file (*.ps), a klick on that spot starts this page in the
www-browser.

E.g. \URL{http://this.server.here/this/path/document.html}

--
Karl VOIT, v...@sbox.TUGraz.at
Graz University of Technology (Austria/Europe)
http://www.sbox.TUGraz.at/home/v/vk/
Linux - because it works. (mostly ;)

Scott Pakin

unread,
Mar 30, 2001, 12:27:53 PM3/30/01
to
Karl Voit wrote:
> I'd like to know, if there's a way to insert a URL to a LaTeX-file, so that
> in the resulting file (*.ps), a klick on that spot starts this page in the
> www-browser.
>
> E.g. \URL{http://this.server.here/this/path/document.html}

Yes. The hyperref package, which, in turn, includes url.sty,
defines a "live" \url command. This works just like you example
above. In addition, hyperref defines an \href command, which
can be used as follows:

\href{Click on this spot.}{http://this.server.here/this/path/document.html}

-- Scott

P.S. See also http://www.tex.ac.uk/cgi-bin/texfaq2html?label=setURL

0 new messages