APAでは、著者が3人以上の場合はet al

APAでは、著者が3人以上の場合はet al

次のような問題があります。次の引用スタイルが必要です。

  • ある著者がその著者だけを示すと、
  • 著者が3人いる場合は、最初は3人全員を表示し、その後の引用では最初の1人だけを表示し、
  • 3人以上の著者が最初の著者のみを表示する場合は

次の文書は、著者が3人以上の場合に最初に著者を表示し、その後、最初の著者と

しかし、著者が4人以上いる場合、最初の著者だけを表示する方法が問題です。

\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}

関連情報