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 참조

관련 정보