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.

I want to reference a website in my bib file. I use:

\usepackage{natbib}

I found:

@misc{Xmisc,
 %author    = "",
 %title     = "",
 %howpublished = "",
 %year     = "XXXX",
 %month    = "",
 %note     = "",
}

but this does not include Last Visited field.

Any suggestions?

share|improve this question
2  
You should consider changing to biblatex, and using its urldate field. –  Gonzalo Medina Sep 5 '11 at 21:58
    
But I need Harvard Style references. Can I do that using biblatex ? –  salamis Sep 5 '11 at 22:01

2 Answers 2

up vote 6 down vote accepted

The relevant information isn't the package natbib. It is import which bibliographystyle do you use.

The bibliographystyle plainnat allows the following entries:

address    author    booktitle    chapter    doi    eid    edition
editor    howpublished    institution    isbn    issn
journal    key    month    note    number    organization
pages    publisher    school    series    title    type
url    volume    year

So you can do the following:

\documentclass[12pt,english,a4paper]{report}
\usepackage{natbib}
\usepackage{filecontents}
\begin{filecontents}{references.bib}
@misc{test,
author={Christian Faulhammer},
title={What is a minimal working example?},
howpublished ={Website},
year={2009},
month=8,
url ={http://www.minimalbeispiel.de/mini-en.html},
note ={last checked: 05.09.2011},
}
\end{filecontents}
\begin{document}
\cite{test}
\bibliographystyle{plainnat}
\bibliography{references}
\end{document}

With biblatex:

\documentclass[12pt,english,a4paper]{report}
\usepackage{babel}
\usepackage[style=authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{references.bib}
@online{test,
author="Christian Faulhammer",
title="What is a minimal working example?",
howpublished ="Website",
date = "2009-08-18",
url ="http://www.minimalbeispiel.de/mini-en.html",
urldate="2011-09-06",
}
\end{filecontents}
%\bibliography{references}
\addbibresource{references.bib}
\begin{document}
\cite{test}
\printbibliography

\end{document}
share|improve this answer
    
Thanks a lot for your help:) –  salamis Sep 5 '11 at 22:05
    
@salamis: No problem. But think about the changing to biblatex. If you want to change please open a new question. –  Marco Daniel Sep 5 '11 at 22:09
    
But I need Harvard style referencing. Is that possible with biblatex? –  salamis Sep 5 '11 at 22:44
    
@salamis: The biblatex style authoryear based on the Harvard style. –  Marco Daniel Sep 5 '11 at 22:58
    
@salamis: I edited my post. –  Marco Daniel Sep 5 '11 at 23:02

Staying with BibTeX and natbib (and har2nat, if you're employing 'harvard'-style citation commands but wish to use the natbib package), you can always use the "note" field of the @misc entry type to record something like

note = "Last visited on dd/mm/yyyy",

Most bibliography styles I'm familiar with are programmed to print out the contents of the note field whenever the entry type is @misc.

share|improve this answer

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.