\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
按照自己喜欢的任何方式来定义。