[Tex/LaTex] URL for “article” (and other) entries of the .bib file

bibtexurls

My .bib file contains the following entry:

@Article{ LM11,
title = "Name of paper",
author = "Author A and Author B",
journal = "Arxiv",
year = "2011",
url = "http://arxiv.org/PS_cache/arxiv/pdf/..."

The problem: when compiling, the title/author/journal shows ok, the URL does not appear at all. Same goes with similar entry types (e.g. book)

The bibliography is included in the following two lines:

\bibliography{bib_filename}
\bibliographystyle{plain}

Best Answer

The plain bibliography style does not support the url field. Use e.g. the plainurl style instead (and load the url package).

\documentclass{article}

\usepackage{url}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@Article{ LM11,
title = "Name of paper",
author = "Author A and Author B",
journal = "Arxiv",
year = "2011",
url = "http://arxiv.org/PS_cache/arxiv/pdf/..."
}
\end{filecontents}

\begin{document}

Some text \cite{LM11}.

\bibliographystyle{plainurl}
\bibliography{\jobname}

\end{document}

(The filecontents environment is only used to include some external files directly into the example, so that it compiles. It is not necessary for the solution.)

Related Question