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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using natbib and agsm for harvard style referencing. My related code is

\usepackage{natbib}
\bibliographystyle{agsm}

Then I am using \citep{} for citations. My problem is that in text I am getting (Author 2012) but I want (Author, 2012) for multiple authors it is (Author1 2012, Author2 2010) and I want (Author1, 2012; Author2, 2010).

Any Ideas how to do that?

share|improve this question
up vote 6 down vote accepted

With natbib many aspects can be easily configured: you need to set citesep (separation between two citations in the same place) and aysep (separation between author and year in a citation):

\documentclass{article}

\usepackage{natbib}
\setcitestyle{citesep={;}, aysep={,}}

\begin{document}
\citep{Goossens:1994:LCb}

\citep{Knuth:1986:MB,Lamport:1994:LDP}

\bibliographystyle{agsm}
\bibliography{testbib}
\end{document}

enter image description here

(I used one of N. Beebe's databases.)

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.