Sigconf、ACM-Reference-Format の日付のないその他のエントリから (nd) を削除するにはどうすればよいでしょうか?

Sigconf、ACM-Reference-Format の日付のないその他のエントリから (nd) を削除するにはどうすればよいでしょうか?

(n.d)引用文に出てくるを削除しようとしています。

以下は私の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}

たとえば、次のコードを組み込んでみました。これ直前の答え\begin{document}。しかし、私は未定義の制御シーケンス\DeclareLabeldateおよびのエラー\field

\DeclareLabeldate[online]{%
  \field{date}
  \field{year}
  \field{eventdate}
  \field{origdate}
  \field{urldate}
}

これ議論さらに調整する必要があるかもしれないことを示唆していますか?

答え1

最も簡単な解決策はbiblatexを使うことです。ファイルACM-Reference-Format.bbx次のマクロを定義します。

\newbibmacro*{year}{%
  \iffieldundef{year}%
    {\printtext{[n.\ d.]}}%
    {\printfield{year}}%
}

幸いなことに、このマクロをrenewbibmacro次のように再定義できます。

\renewbibmacro*{year}{%
  \iffieldundef{year}%
    {}% We omitted the default value "[n. d.]" of ACM here!
    {\printfield{year}}%
}

その結果、次の biblatex レコードが作成されます。

@online{speedtest1,
  title = {{SQLite}, speedtest1},
  url   = {https://sqlite.org/cpu.html}
}

日付なしでレンダリング:

日付が省略された場合のデフォルト値のない biblatex 参照

関連情報