Hi guys, I'm new to LaTeX. I'm currently doing an assignment which needs references. It's required that the referencing is the Harvard style (author-year). I've been through a lot of websites and could conclude that I should use natbib.
But none of the sites could tell me how it's done. I've tried to understand, but failed. So I humbly ask you to help me get started. An example could be really helpful.
Kind regards
Newbie
BibTeX, biblatex and biber ⇒ natbib | Bibliography start-up Problems
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
natbib | Bibliography start-up Problems
Perhaps reading the manuals of harvard and natbib will help you on.slashpwn wrote:[…] I've been through a lot of websites and could conclude that I should use natbib.
But none of the sites could tell me how it's done. […]
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
natbib | Bibliography start-up Problems
Thanks for the welcome and the quick answer. It helped a bit to read the

{thebibliography}
environment. The citations work but the references does not show any text in the PDF. Here is my code:
Code: Select all
\documentclass{article}
\usepackage{natbib}
\begin{document}
\bibliographystyle{agu}
\section*{Recommended texts}
something\citep{1} for love
\begin{thebibliography}{1}
\bibitem[Jonas et al.(1992)]{1}
\end{thebibliography}
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
natbib | Bibliography start-up Problems
It can't work this way. Try BibTeX along with according entries in a database file. It could look similar to this.slashpwn wrote:[…] Right now I'm trying to work it out in the{thebibliography}
environment. […]
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
%\usepackage{harvard}
\usepackage[authoryear,round]{natbib}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{lamport:94,
author = {Lamport, Leslie},
edition = {2nd},
note = {User's Guide and Reference Manual},
publisher = {Addison-Wesley},
title = {{\LaTeX\ -- A Document Preparation System}},
year = {1994}
}
\end{filecontents*}
\bibliographystyle{agsm}
\begin{document}
\cite{lamport:94}
\bibliography{\jobname}
\end{document}
Consider to use the biblatex package for better control of bibliographies.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
natbib | Bibliography start-up Problems
Okay it works now, many thanks for the help. I've been using TeXmaker which apparently was the source of the problem. Now I'm using TeXworks and everything works as supposed to.localghost wrote: Consider to use the biblatex package for better control of bibliographies.