Estoy intentando deshacerme de lo (n.d)
que aparece en las citas.
A continuación se muestra mi 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}
Intenté incluir el siguiente código, por ejemplo, deesteResponde justo antes \begin{document}
. Sin embargo, obtengoSecuencia de control Indefinidoerror para \DeclareLabeldate
y \field
.
\DeclareLabeldate[online]{%
\field{date}
\field{year}
\field{eventdate}
\field{origdate}
\field{urldate}
}
Estediscusión¿Insinúa que puede ser necesario modificar algo más?
Respuesta1
La solución más sencilla es utilizar biblatex. El archivoACM-Reference-Format.bbx
define la siguiente macro:
\newbibmacro*{year}{%
\iffieldundef{year}%
{\printtext{[n.\ d.]}}%
{\printfield{year}}%
}
Afortunadamente, podemos redefinir esta macro usando renewbibmacro
de la siguiente manera:
\renewbibmacro*{year}{%
\iffieldundef{year}%
{}% We omitted the default value "[n. d.]" of ACM here!
{\printfield{year}}%
}
Como resultado se obtuvo el siguiente registro biblatex:
@online{speedtest1,
title = {{SQLite}, speedtest1},
url = {https://sqlite.org/cpu.html}
}
Renders sin fecha: