Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
    
If you would use biblatex, then there is option url controlling whether URL should be shown in non-online entries, which is true by default, so it would work out-of-the-box. –  przemoc Jun 26 '11 at 14:39

2 Answers 2

up vote 8 down vote accepted

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.)

share|improve this answer
    
+1 Thanks! Although I first wondered why it didnt work, I realized I had to run BibTex again, then build the PDF one more time :) –  Philip Daubmeier Jun 15 '12 at 15:06

I had the same problem, and ultimately the following worked for me, seemingly also to be the simplest solution (in a hosted environment where I could not alter bib styles):

\usepackage[square,sort,comma,numbers]{natbib}
\usepackage{url} 
\usepackage{hyperref}

...

\bibliographystyle{plainnat}
\bibliography{my_bib}

citing as:

\cite{Bacon:2000}

with a bib like:

@misc{Bacon:2000,
    author = {Crunchy Bacon},
    title = {Breakfast at Murphy's},
    month = {May},
    year = {2000},
    publisher = {Bacon Daily},
    note ={\url {http://www.dailybacon.com} (visited: 2014-11-09)}
}
share|improve this answer
1  
Welcome to TeX.SX! It is better to provide full examples –  Christian Hupfer Nov 9 at 21:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.