I am using acmsmall.zip from http://www.acm.org/publications/article-templates/acm-latex-style-guide and my bibliography looks weird :(. I am attaching a minimal example to highlight my problems. In this example I am using natbib but I have tried cite package as well and the results weren't any different.
\documentclass[prodmode,acmtecs]{acmsmall}
\usepackage{flushend,amsmath,graphicx,booktabs}
%\usepackage[obeyspaces,hyphens]{url}
\usepackage{natbib}
%\usepackage[hyphenbreaks]{breakurl}
\usepackage[]{caption}
\usepackage[]{subcaption}
\captionsetup{compatibility=false}
\usepackage[]{algorithm2e,algorithmic}
\usepackage{xspace,balance}
\usepackage[T1]{fontenc}
\urlstyle{sf}
\usepackage[utf8]{inputenc}
\begin{document}
\title{A Multifrequency MAC Specially Designed for Wireless Sensor Network Applications}
\maketitle
\section{Introduction}
Using \cite{monte-carlo} and \cite{backblaze2014}.
\bibliographystyle{ACM-Reference-Format-Journals}
{\footnotesize
\bibliography{paper}}
\end{document}
Running this code produces
A Multifrequency MAC Specially Designed for Wireless Sensor
Network Applications
- INTRODUCTION
Using [?? mon] and [bac 2014].
REFERENCES
Monte Carlo method. (????).
- Hard Drive Reliability Update. (2014). https://www.backblaze.com/blog/
hard-drive-reliability-update-september-2014/.
I have couple of problems here.
1. I need numbers in front of references to show their position in the bibliography.
2. I do not want year to appear twice in the reference.
3. Do I need to have year and author name for each bib entry? Is this why those question marks appear in the reference entry?
The corresponding entries in the bibliography are
@article{monte-carlo,
title={{Monte Carlo method}},
note={\url{http://en.wikipedia.org/wiki/Monte_Carlo_method}}
}
@article{backblaze2014,
title={{Hard Drive Reliability Update}},
year={2014},
note={\url{https://www.backblaze.com/blog/hard-drive-reliability-update-september-2014/}}
}
Best Answer
This style seems to use author names and years in the reference abbreviations, i.e., something like
[Smith94]
instead of[1]
. If that was the case, the weirdness would result because you do not supply authors (author = {...}
) in your BibTeX entries.On their website, it says:
Thus, you probably just need to supply author and year in the BibTeX and get good-looking citations.