有没有办法在 LaTeX 中将文内引用中的“nd”或无日期大写?例如:
Lorem ipsum (Doe, n.d.) to Lorem Ipsum (Doe, N.D.)
或者为了它有没有办法将“nd”定制为其他东西?
我正在使用 BibTeX 的 APA 引用样式:
\bibliographystyle{apacite}
未注明日期的参考示例:
@misc{Git,
author = {Git},
title = {Git: the fast version control system},
howpublished = {Retrieved November 11, 2011, from CVS: \url{"http://git-scm.com/"}}
}
答案1
假设您正在使用该apacite
包,则需要更改命令\bibnodate
。这似乎是在文档的开头设置的,因此请使用钩子\AtBeginDocument
:
\begin{filecontents}{\jobname.bib}
@misc{Git,
author = {Git},
title = {Git: the fast version control system},
howpublished = {Retrieved November 11, 2011, from CVS: \url{"http://git-scm.com/"}}
}
\end{filecontents}
\documentclass{article}
\usepackage{apacite}
\bibliographystyle{apacite}
\AtBeginDocument{%
\renewcommand*{\bibnodate}{N.D.\hbox{}}%
}
\begin{document}
\cite{Git}
\bibliography{\jobname}
\end{document}