Take the 2-minute tour ×
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.

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
add comment

1 Answer

up vote 3 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
    
Thanks. It worked. –  Taz Dec 13 '12 at 14:50
add comment

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.