How to cite a URL in BibTeX
Mark Senn
February 3, 2014

How to cite a URL in BibTeX

To cite a URL in BibTeX, put

    \usepackage{url}

    % By default the URLs are put in typewriter type in the body and the
    % bibliography of the document when using the \url command.  If you are
    % using many long URLs you may want to uncommennt the next line so they
    % are typeset a little smaller.
    % \renewcommand{\UrlFont}{\small\tt}
between your \documentclass and \begin{document} command. You may want to uncomment the \renewcommand command, see the the instructions above.

Use, for example,

    \cite{Senn:2009}
to cite the URL in the text.

Your .bib file should contain, for example,

    @manual{Senn:2009,
      title  = "Using {\LaTeX} for Your Thesis",
      author = "Mark Senn",
      url    = "http://engineering.purdue.edu/~mark/puthesis",
      year   = "2009 (accessed February 3, 2014)"
    }

Or, if your bibliographystyle does not support the url field (you'll get errors when BiBTeX runs or the output will be wrong), use

    @manual{Senn:2009,
      title  = "Using {\LaTeX} for Your Thesis",
      author = "Mark Senn",
      note   = "\url{http://engineering.purdue.edu/~mark/puthesis}",
      year   = "2009 (accessed February 3, 2014)"
    }

Email me (see link on second line of this document) if you have questions or problems.

References:

Thanks to Nick Klosterman for sending correct url.sty link.

Revised: February 3, 2014
Created: July 6, 2006