3

I would like to reference an online reference. I am using this code:

@ONLINE{a4,
      title  = "Correlation, Confidence Interval, and Sample Size",
      author ={millercommamatt},
      url    = {http://millercommamatt.com/journal/index.php/2008/02/19},
      year   = "2008 (accessed November 25, 2013)"
    }

but I see only something like this:

enter image description here

but not the URL, what should I do?

3
  • 1
    What do you have as \bibliographystyle?
    – egreg
    Commented May 6, 2014 at 20:30
  • \bibliographystyle{ieeetr}
    – Kaja
    Commented May 6, 2014 at 20:34
  • 1
    That bibstyle doesn't know the URL field. Maybe you can use note="\url{http:...}" (needs the hyperref or url package).
    – egreg
    Commented May 6, 2014 at 21:04

1 Answer 1

5

The ieeetr bibstyle doesn't know the field url; it doesn't know the type online either, but this is a minor problem.

With

@misc{a4,
  title  = {Correlation, Confidence Interval, and Sample Size},
  author = {millercommamatt},
  note   = {\url{http://millercommamatt.com/journal/index.php/2008/02/19}},
  year   = {2008 (accessed November 25, 2013)},
}

you solve both issues. Remember to have \usepackage{url} if you don't have \usepackage{hyperref}.

Minimal example.

\begin{filecontents*}{\jobname.bib}
@misc{a4,
  title  = {Correlation, Confidence Interval, and Sample Size},
  author = {millercommamatt},
  note   = {\url{http://millercommamatt.com/journal/index.php/2008/02/19}},
  year   = {2008 (accessed November 25, 2013)},
}
\end{filecontents*}
\documentclass{article}
\usepackage{url}
\begin{document}
\cite{a4}
\bibliographystyle{ieeetr}
\bibliography{\jobname}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .