tags:

views:

6805

answers:

5

I'm using bibtex for my bibliography in latex. I have some URL's I need to cite in the paper. How do I add URLs into the bibtex?

A typical section in my bibtex file looks like this:

@conference{eigenfacepaper,
  title={{Face recognition using eigenfaces}},
  author={Turk, M. and Pentland, A.},
  booktitle={Proc. IEEE Conf. on Computer Vision and Pattern Recognition},
  volume={591},
  year={1991}
}

I tried some misc sections in bibtex but they don't show up in my document.

+8  A: 

You need to

 \usepackage{url}

and then

 howpublished={\url{http://my.url.com/}},
Peter
This doesn't really fit into my bibtex file
Janusz
shouldn't it be \usepackage{url} and not \includepackage{url}?
Bryce Thomas
@Bryce: erm, yes. I've amended it. sorry.
Peter
+7  A: 

Depends what BibTeX style you're using. In the ordinary ones I usually use

note={\url{http://...}}

in biblatex (and natbib too, I think), you can just write

url={http://...}
Will Robertson
This doesn't really fit into my bibtex file
Janusz
+1  A: 

Correct me if I'm wrong, but I think you are trying to reference websites and not articles in a journal, for instance. And, having placed said references in a misc entry, they don't show up when you reference them. If that is correct, then the problem is your bibliography style (bst file) does not have an entry in it for dealing with a misc type. I would suggest that you use biblatex as it highly customizable and includes an online entry type specifically for your purpose. Alternatively, you could use custom-bib, which will give you a custom bst file that would display a misc entry. However, I think biblatex is still your best bet.

rcollyer
+6  A: 

The last time i cited an URL, i used a bibtex-entry of the following form:

@misc{bworld,
  author = {Ingo Lütkebohle},
  title = {{BWorld Robot Control Software}},
  howpublished = "\url{http://aiweb.techfak.uni-bielefeld.de/content/bworld-robot-control-software/}",
  year = {2008}, 
  note = "[Online; accessed 19-July-2008]"
}

If that does not show up, then it might indeed be a problem with your BiBTeX style.

David
Thank you for the full example
Janusz
Don't forget to add `\usepackage{url}` in your tex file; doesn't work for me otherwise.
humble coffee
+2  A: 

UK TEX FAQ usually have really good answers for TeX related questions: URLs in BibTeX bibliographies

RamyenHead