BibTeX, biblatex and biberHow to write reference to website in Harvard style in bibtex

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
ssnirgudkar
Posts: 4
Joined: Mon Apr 05, 2021 12:43 am

How to write reference to website in Harvard style in bibtex

Post by ssnirgudkar »

Hi,
I am struggling to find answer to relatively straight forward question.

I want to give a reference to a website (it does not have an author) in Harvard style in bibtex format.

I tried @misc and @online entries but these did not come out correctly.

Is there a better way in bibtex to specify anonymous websites?

@online{foo_bar,
title = {{Some title}},
url = {Some website},
urldate = {Some date},
}
=> produced foo(year) where I had used \cite{foo_bar}. The references section contained an entry starting with a year. I think this is to be expected because there is no author.

@misc{foo_bar,
title = {{Some title}},
howpublished = {\url{Some website}},
year = {Some date},
note = {Accessed: Some date},
}
=> produced foo(year) where I had used \cite{foo_bar}. The references section contained an entry starting with a year. I think this is to be expected because there is no author.

I am expecting something better than foo(year) at the place of citation.

If it helps, I am using a template from SAGE publishing.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply