[Tex/LaTex] numbers option in acmart natbib

acmbibtexlatexmknatbib

I'm having a bad time compiling a paper with acm style.

The command I use to compile is:

latexmk -bibtex -xelatex -pvc -pdf -view=none index.tex

I use the acmart \documentclass like this:

\documentclass[sigconf,natbib=true,anonymous=true]{acmart}

Bibliography style set to:

\bibliographystyle{acm-plain}

And I'm adding the citation with the commands:

\cite \citep \citeauthors \citeyear (depending on what I need obviously)

The compiler is telling that the bibliography is not compatible with author-year citations. With

\bibliographystyle{plainnat}

it does work. However, citations are no longer numeric but in the form [author et al. YEAR].

Lastly: setting natbib=false in the documentstyle and importing

 \usepackage[numbers]{natbib}

does work (running latexmk twice), but with the error "Command \citename already defined"

How am I supposed to get a paper like the one from the following link? https://www.overleaf.com/latex/templates/acm-conference-proceedings-new-master-template/pnrfvrrdbfwt

Thanks, Nicolò

Best Answer

First, if you use ACM, you probably want to say

\bibliographystyle{ACM-Reference-Format}

acm-plain is an old style, not compatible with the new ACM

Second, if you want to have auhor-year scheme, just put in the preamble

\citestyle{acmauthoryear}

note acm here: this sets author-year format according to ACM rules

Related Question