The paper is required to format citation call-outs with the harvard style (aka authoryear style) like:

format requirements

The content of my *.tex file is like this:


 \citet{ananthanarayanan2011scarlett} create more replicas for hot files
 to simplify the scheduling decision-making. EC (erasure
 coding) to alleviate the low storage efficiency of multi-replicas in
 HDFS~\citep{sathiamoorthy2013xoring, subedi2015finger, xia2015tale}. The
 benefits of data prefetching have been widely

 % \bibliographystyle{abbrvnat}
 % \setcitestyle{authoryear,open={(},close={)}}

The final result is not as I want. The problems are:

  1. for two authors the format is not (A and B, year) but (A & B year)

  2. for three or more authors is not (A et al., year) but ( A et al. year)

  3. groups of call-outs should be listed first alphabetically and then chronologically, but the formatted result is (Zaharia et al. 2008, Magalhães et al. 2015), not first alphabetically, and call-outs are not separated by ';'.

An example shows the formatted result:

agsm formatted result

I then turned to set the bibliography style to abbrvnat:


The formatted result changes to:

abbrvnat bst format

But it still has the first alphabetically problem, and it induces another problem that the call-outs are not surrounded by "()" but by "[]".

Can someone help me out of this problem? Is the problem of the cite command or the configuration of bst, so can anyone can give an short cite and config example to format paper as required. thank you!

  • For the version with the abbrvnat bibliography style, try issuing the instruction \setcitestyle{round,semicolon} after loading natbib. AFAICT, the ordering of the citation call-outs is the same as what you provide in the argument of \citep.
    – Mico
    Jun 12 '16 at 10:30
  • @Mico, thanks so much, the problem has solved under your guide! Jun 12 '16 at 10:55
  • Glad to know my suggestion hit the mark. I'll post it as an answer, so that this posting can be treated as having been answered. Incidentally, it was a bit confusing at first that the text sample you provided ("\citet{ananthanarayanan2011scarlett} create more replicas...") didnt' seem to correspond to the printed output ("Inspired by GFS ...").
    – Mico
    Jun 12 '16 at 11:28

For the approach with the abbrvnat bibliography style, try issuing the instruction


after loading natbib. Thus, omit the open={(},close={)} part. By the way, whenever one makes changes to the argument of \setcitestyle, one should recompile the document fully -- LaTeX, BibTeX, and LaTeX twice more -- to propagate all changes.

As far as I can tell, both the natbib and the harvard citation management packages order the formatted citation call-outs in the ordering provided in the input (\citep and \citet). Thus, I'm afraid it's up to you to list the arguments of \citep in the desired ordering.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.