0

I read through several questions raised before, but couldn't find a direct solution. I'm using overleaf online latex editor to compile my .tex file. I handle a separate .bib file for references. I need my document to be referenced in Harvard (aka "authoryear") style, with et. al. in italics.

Here's the partial code of my main document:

\documentclass{article}
\usepackage{natbib}

\begin{document}

I want to cite this \citep{auth} here.

\bibliographystyle{agsm} % 'agsm' is part of 'harvard' package
\bibliography{ref}

\end{document}

In the ref.bib` file I has the following:

@article{auth,
  title = {xxx},
  year = {2000},
  author = {aaa, bbb, ccc and ddd}
}

What I want here is (aaa et al. 2000) instead of (aaa et al. 2000). Please help. Thanks in advance.

7
  • 1
    Not related: you should use curly {} when loading natbib: \usepackage{natbib}
    – luki
    Feb 22, 2021 at 12:09
  • That's a typo. Let me edit. Thanks for pointing out. I still have the same issue. Feb 22, 2021 at 12:17
  • I've taken the liberty of editing the title of your posting, as it's irrelevant whether you use Overleaf or some other (non-online) TeX distribution.
    – Mico
    Feb 22, 2021 at 13:09
  • 2
    Off-topic: author = {aaa, bbb, ccc and ddd} cannot possibly lead to a good outcome. It should be author = {aaa and bbb and ccc and ddd}.
    – Mico
    Feb 22, 2021 at 13:09
  • 1
    If you can't find the file agsm.bst in the Overleaf distribution, you may download it from ctan.org/tex-archive/macros/latex/contrib/harvard/agsm.bst.
    – Mico
    Feb 22, 2021 at 13:14

0

Browse other questions tagged .