![如何正确引用未发表的论文并显示正确的注释而不是年份?](https://linux22.com/image/343805/%E5%A6%82%E4%BD%95%E6%AD%A3%E7%A1%AE%E5%BC%95%E7%94%A8%E6%9C%AA%E5%8F%91%E8%A1%A8%E7%9A%84%E8%AE%BA%E6%96%87%E5%B9%B6%E6%98%BE%E7%A4%BA%E6%AD%A3%E7%A1%AE%E7%9A%84%E6%B3%A8%E9%87%8A%E8%80%8C%E4%B8%8D%E6%98%AF%E5%B9%B4%E4%BB%BD%EF%BC%9F.png)
\documentclass[12pt]{report}
\usepackage{natbib}
我使用 natbib 包在报告中引用。然而,我在引用未发表的论文时遇到了问题。
@unpublished{unpublishedkey,
author = "Dummy, D1 D2",
title = "Title",
note = "unpublished"
}
当我使用 \citep{unpublishedkey} 时,我获得
(假的, ????)
在参考书目中显示,
假人,DD(????)。标题。未发表。
我尝试在年份字段添加“未发布”,但由于截断,它无法正常工作:
@unpublished{unpublishedkey,
author = "Dummy, D1 D2",
title = "Title",
year = "unpublished"
note = "unpublished"
}
(假人,棚子)
Dummy,DD(未发表)。标题
在未发布的 bibtex 条目中,年份字段不是可选的吗?我怎样才能获得如下的引用?
(虚拟,未发表)
虚拟,DD 标题。未发布。
答案1
您可以根据收到未发表论文的时间来指定年份,或者使用以下方法之一:
\begin{filecontents*}{\jobname.bib}
@unpublished{unpublishedkeyA,
author = {Dummy, D1 D2},
title = {Title},
year = {N.D.},
note = {unpublished},
}
@unpublished{unpublishedkeyB,
author = {Dummy, D1 D2},
title = {Title},
year = {\ndd},
note = {unpublished},
}
\end{filecontents*}
\documentclass[12pt]{report}
\usepackage{natbib}
\newcommand{\ndd}{Unpublished}
\begin{document}
Example of citation: \citep{unpublishedkeyA}
Another: \citet{unpublishedkeyA}
Example of citation: \citep{unpublishedkeyB}
Another: \citet{unpublishedkeyB}
\bibliographystyle{plainnat}
\bibliography{\jobname}
\end{document}
您可以\ndd
按照自己喜欢的任何方式来定义。