Aller au contenu

How can I use BibTeX to cite a website in LaTeX?

Ce contenu n’est pas encore disponible dans votre langue.

There are several ways to cite a website in LaTeX. In this short answer to the question, we give three, the easiest being BibLaTeX via the CiteDrive browser extension in the last example.

Vous avez besoin d'une solution simple pour gérer vos entrées BibTeX? Découvrez CiteDrive!

  • Gestion de références moderne et basée sur le web
  • Collaborez et partagez avec d'autres chercheurs
  • Intégration avec Overleaf
  • Support complet de BibTeX/BibLaTeX
  • Enregistrez des articles et des sites web directement depuis votre navigateur
  • Recherchez de nouveaux articles dans une base de données de dizaines de millions de références
Essayez CiteDrive ► Regarder la démo

Using BibTeX

In BibTeX we use @misc as a workaround and make use of the note field to specify the URl and usually an access date. In this example, url (or hyperref) is required using usepackage{url}.

@misc{CiteDrive2022,
title = {CiteDrive brings reference management to Overleaf},
author = {CiteDrive, Inc},
year = 2022,
note = {\url{https://www.citedrive.com/overleaf} [Accessed: (Use the date of access)]}
}

Alternatively, the howpublished field can be used:

@misc{CiteDrive2022,
title = {CiteDrive brings reference management to Overleaf},
author = {CiteDrive, Inc},
year = 2022,
note = {Accessed: (Use the date of access)},
howpublished = {\url{https://www.citedrive.com/overleaf}}
}

Using BibLaTeX

If you use BibLaTeX, which we recommend, the @online entry type is inherently supported and works without a further tweak. You can enter the URL and access date in the fields url and urldate, respectively.

@online{CiteDrive2022,
title = {CiteDrive brings reference management to Overleaf},
author = {CiteDrive, Inc},
year = 2022,
url = {https://www.citedrive.com/overleaf},
urldate = {Use the date of access}
}

Using natbib

People frequently inquire about how to cite web pages using natbib. We emphasize that it works in the same way as BibTeX. Natbib is a tool for styling in-text citations, and it depends on BibTeX as a backend.