I am using a amsrefs bibstyle and I need to count the number of authors.
\documentclass{article}
\usepackage{amsrefs}
\begin{document}
\begin{thebibliography}{9}
\bib{CR1}{article}
{
author={Author},
year={2012},
volume={5},
number={5},
pages={428\ndash{}45}
}
\bib{CR2}{article}
{
author={Author1},
author={Author2},
year={2012},
volume={5},
number={5},
}
\bib{CR3}{article}
{
author={Author1},
author={Author2},
author={Author3},
number={5},
pages={428\ndash{}45}
}
\end{thebibliography}
\end{document}
If 2 authors - separator is "and"
else 3 or more - separator is "&"
Output should be:
[1] Author 5 ( 2012 ),no. 5 , 428{ 45.
[2] Author1 and Author2 5 ( 2012 ),no. 5.
[3] Author1 , Author2 ,& Author3 5 , 428{ 45 .