APA se mais de três autores colocarem et al

APA se mais de três autores colocarem et al

Eu tenho um problema com o seguinte. Eu preciso do seguinte estilo de citação:

  • se um autor apenas mostrar esse autor,
  • se houver três autores, pela primeira vez mostre todos os três, mas nas citações subsequentes mostre apenas o primeiro ee outros.
  • se mais de três autores mostrarem apenas o primeiro, entãoe outros.

O documento a seguir funciona corretamente para mostrar os autores se houver mais de três pela primeira vez e, posteriormente, mostra o primeiro autor maise outros.

MAS o problema quando há mais de quatro autores como mostrar é só mostrar o primeiro autor entãoe outros.

\documentclass{article}
\usepackage{etoolbox}
\usepackage{natbib}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{test1,
  author = {Author, A.  and Buthor, B  and Cuthor, C and Duthor, D},
  title = {Title},
  journal = {Journal},
  year = 2013
}
@article{test2,
  author = {Author, A. and Buthor, B and Cuthor, C and Duthor, D},
  title = {Title},
  journal = {Journal},
  year = 2012
}
@article{test3,
  author = {Author, A.  and Buthor, B  and Cuthor, C and Duthor, D and wael , mohamed and yafooz },
  title = {Title},
  journal = {Journal},
  year = 2013
}
\end{filecontents}


\newcommand{\citelist}{}

\newcounter{currentcite}
\newcounter{currentcitetotal}
\newcommand{\mycite}[1]{
  \setcounter{currentcitetotal}{0}
  \renewcommand{\do}[1]{\addtocounter{currentcitetotal}{1}}
  \docsvlist{#1}
  \renewcommand{\do}[1]{%
  \addtocounter{currentcite}{1}%
  \ifinlist{##1}{\citelist}
    {\citet{##1}}
    {\citet*{##1}\listadd{\citelist}{##1}}%
  \ifnumcomp{\value{currentcitetotal}}{>}{\value{currentcite}}
    {, }
    {}%
  }
  \docsvlist{#1}
}


\begin{document}
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
\mycite{test1,test2}
ffffffffffffffffff
\mycite{test1}
yyyyyyyyyyyyyyyyyyyyyyyyyyyy
\mycite{test2}
ffffffffffffffffff\mycite{test3}

\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}

informação relacionada