Estou tentando me livrar do (n.d)
que aparece nas citações.
Abaixo está meu MWP.
\documentclass[sigconf]{acmart}
\usepackage{filecontents}
\begin{filecontents}{ref.bib}
@misc{google,
title={Google},
howpublished={\url{https://google.com}},
author={Google}
}
\end{filecontents}
\begin{document}
Something to cite~\cite{google}.
\bibliographystyle{ACM-Reference-Format}
\bibliography{ref.bib}
\end{document}
Tentei incluir o seguinte código, por exemplo, deesseresponda um pouco antes \begin{document}
. No entanto, eu consigoSequência de controle indefinidaerro para \DeclareLabeldate
e \field
.
\DeclareLabeldate[online]{%
\field{date}
\field{year}
\field{eventdate}
\field{origdate}
\field{urldate}
}
Essediscussãosugere que pode ser necessário ajustar algo mais?
Responder1
A solução mais fácil é usar o biblatex. O arquivoACM-Reference-Format.bbx
define a seguinte macro:
\newbibmacro*{year}{%
\iffieldundef{year}%
{\printtext{[n.\ d.]}}%
{\printfield{year}}%
}
Felizmente, podemos redefinir esta macro renewbibmacro
da seguinte maneira:
\renewbibmacro*{year}{%
\iffieldundef{year}%
{}% We omitted the default value "[n. d.]" of ACM here!
{\printfield{year}}%
}
Como resultado, o seguinte registro biblatex:
@online{speedtest1,
title = {{SQLite}, speedtest1},
url = {https://sqlite.org/cpu.html}
}
Renderiza sem a data: