[Tex/LaTex] Differentiating multiple authors having same surname (last name)

acmbibtexciting

I am citing works of two authors, say, K. Lee 2010 and V. Lee 2010. When I used apacite package, it took care of making sure that in the text if multiple authors have same surname then their first name is also used. However, now I am using ACM journal provided bst file which quotes both of them as Lee 2010 and hence it becomes unclear.

I am using BibTeX (biblatex conflicts with journal provided format). I tried to search on google but could not find much except this. Can you tell how I should address this. Here is an MWE.

\documentclass[acmnow]{acmtrans2m}
\begin{document}
First is \cite{vlee2010}. Second is \cite{jlee2010}. 
\bibliographystyle{acmtrans}
\bibliography{temp}
\end{document}

Bibtex file is:

@inproceedings{vlee2010,
  title={{First paper}},
  author={Lee, VCCC and  others},
  booktitle={xyz}, 

  year={2010},

}
@inproceedings{jlee2010,
  title={{Second Paper}},
  author={Lee, JCCC and others},
  booktitle={pqr},  
  year={2010},  
}

The style and bst files used are: style file and bst file

Output comes:

First is [Lee et al. 2010b]. Second is [Lee et al. 2010a].
REFERENCES
Lee, J. et al. 2010a. Second Paper. In pqr.
Lee, V.  et al. 2010b. First paper. In xyz.

Best Answer

I propose a variant of this answer of mine.

\begin{filecontents*}{\jobname.bib}
@inproceedings{vlee2010,
  title={{First paper}},
  author={\disambiguate{Lee V}{V.}{Lee}, VCCC and  others},
  booktitle={xyz},

  year={2010},

}
@inproceedings{jlee2010,
  title={{Second Paper}},
  author={\disambiguate{Lee J}{J.}{Lee}, JCCC and others},
  booktitle={pqr},
  year={2010},
}
\end{filecontents*}
\documentclass[acmnow]{acmtrans2m}
\DeclareRobustCommand{\disambiguate}[3]{#2~#3}


\begin{document}
First is \cite{vlee2010}. Second is \cite{jlee2010}.
\bibliographystyle{acmtrans}

\DeclareRobustCommand{\disambiguate}[3]{#3}
\bibliography{\jobname}
\end{document}

The filecontents* environment is only to make the document self-contained, you can do as usual with a separate .bib file.

The first argument to \disambiguate is ignored by LaTeX, but is used by BibTeX for sorting. Add whatever it's needed to ensure correct sorting. In the document proper we define \disambiguate to use the second and third arguments (initial and surname), while in the bibliography it will use only the surname.

enter image description here