I am writing a paper for an ACM journal. The problem is when I use the following commands:
\bibliographystyle{ACM-Reference-Format}
\bibliography{references}
the references appear without number. And when I replace “ACM-Reference-Format” with “acm” in the “\bibliographystyle” command, the references with URL loose their URLs. I'm wondering if anyone knows how I can solve this problem. My goal is to have a numbered reference list in which URLs do not disappear. I am working in Overleaf environment and use Mendeley to import my references to the Overleaf. Any advice is appreciated.
Best Answer
(too long for a comment, hence posted as an answer)
I'm assuming you use the
acmart
document class. If that's the case, theACM-Reference-Format
bibliography style should have no problems typesetting the numbers of bibliographic entries or their URL strings -- assuming the URL strings are stored in a field calledurl
.The much older
acm
bibliography style does not recognize theurl
field and hence simply ignores its contents.If you do not use the
acmart
document class but still wish to use theACM-Reference-Format
bibliography style, be sure to (a) load thenatbib
package with the optionnumbers
and (b) either thexurl
or theurl
package, the latter preferably with the optionshyphens
andspaces
.