# Display urls in the reference section

I want to know how I can display a url to a site as reference in LaTeX. I need to have them at the end so that I can cite them from the other pages.

-
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. –  Werner May 1 '12 at 16:49
add comment

## migrated from stackoverflow.comMay 1 '12 at 13:03

This question came from our site for professional and enthusiast programmers.

## 2 Answers

By reference do you mean citations as in bibliography?

If that is so, you can do it this way.

In the .tex file

\usepackage{url}

\cite{CADIZ}


In the .bib file

@MISC{CADIZ,
howpublished ="\url{http://www.cs.york.ac.uk/hise/cadiz/home.html}"
}


HTH

-
add comment

To have a URL link just use the hyperref package and \href{<url>}{<text>}. For example, the MWE below yields:

and upon mouse click a browser window will be opened to the specified site.

\documentclass{article}

\usepackage{hyperref}
\begin{document}
\href{http://www.google.com}{Google}
\end{document}

-
add comment