# url not showing in references

this LaTeX code:

@ONLINE{Doe,
author = {Doe, Ringo},
title = {This is a test entry of type {@ONLINE}},
month = jun,
year = {2009},
url = {http://www.test.org/doe/}
}


generates this output (reference 3):

How can I fix the code to show the URL?

• Would you mind sharing a complete - but of course minimal - MWE with us? We would certainly need to know what packages you use to create the bibliography (natbib, biblatex, cite) and what style you use. – moewe Apr 14 '14 at 15:53
• Try url = "http://www.test.org/doe/" – Jānis Lazovskis Apr 14 '14 at 15:57
• url = "test.org/doe" still not shows the URL – user3025898 Apr 14 '14 at 16:06
• @moewe I am using bibtex – user3025898 Apr 14 '14 at 16:07
• I'm afraid that piece of information is not sufficient to help you. Please provide a proper MWE. – moewe Apr 14 '14 at 16:41

As others have written, it is not clear how you are using this. Suppose for example you have that bib entry in a file url.bib and then just

\documentclass{article}

\begin{document}
\bibliographystyle{plain}
\nocite{*}
\bibliography{url}
\end{document}


That will give a result similar to the one you got. Maybe this is how you have done it. In that case you should have noticed that there was a warning when you ran Bibtex:

Warning--entry type for "Doe" isn't style-file defined


That is, this default style doesn't know about the @online entry type. (So it shows the normal fields in some normal way, but really doesn't know about that url field.)

The traditional way of entering entries like this in Bibtex is like

@Misc{doemisc,
author =   {Doe, Ringo},
title =    {This is a test entry of type {@ONLINE}},
howpublished = {\url{http://www.test.org/doe/}},
month =    jun,
year =     2009}


Use \usepackage{url} in your document to get the \url command.

There may be other Bibtex styles that define an entry type @online but chances are you've seen this because Biblatex has such an entry field. So this LaTeX file using Biblatex can use a bib file with the entry you cited.

\documentclass{article}
\usepackage{biblatex}

Use \bibliographystyle{plainurl} instead of just "plain". This solved everything for me. Enter that command after \bibliography{...}.
Remember to put \usepackage{url}.