编译代码后,PDF 文件中显示以下参考资料:
[Oestreich-Janzen,无日期]
我的 bibtex 数据库如下所示:
@INBOOK{Oestreich-Janzen,
author = {S. Oestreich-Janzen},
editor = {Lewis Mander and Hung-Wen Liu},
title = {{Comprehensive Natural Products II}},
chapter = {Ch. 3.25 Chemistry of Coffee},
pages = {1085-1096}
publisher = {Elseveir Ltd.},
year = {2010},
month = {March},
edition ={1st Edition},
note = {ISBN: 978-0-0804-5381-1}
}
我的书目部分如下所示:
\bibliography{referencer}{}
\bibliographystyle{authordate1}
我已经包括了作者日期1-4.sty我的项目中的文件。
我使用\cite{Oestreich-Janzen}
命令
有人可以帮忙吗?
编辑:代码示例
\documentclass[11pt,a4paper,english]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{amsthm}
\usepackage{authordate1-4}
\usepackage{cite}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@INBOOK{Oestreich-Janzen,
author = {S. Oestreich-Janzen},
editor = {Lewis Mander and Hung-Wen Liu},
title = {{Comprehensive Natural Products II}},
chapter = {Ch. 3.25 Chemistry of Coffee},
pages = {1085-1096}
publisher = {Elseveir Ltd.},
year = {2010},
month = {March},
edition ={1st Edition},
note = {ISBN: 978-0-0804-5381-1}
}
\end{filecontents*}
\begin{document}
Text example \cite{Oestreich-Janzen}
\bibliography{\jobname}
\bibliographystyle{authordate1}
\end{document}
答案1
问题发生的原因是 .bib 文件中缺少逗号,因此请务必记住在 bibtex 数据库中的语句之间添加逗号。
请参阅以下代码以进行修复:
@INBOOK{Oestreich-Janzen,
author = {S. Oestreich-Janzen},
editor = {Lewis Mander and Hung-Wen Liu},
title = {{Comprehensive Natural Products II}},
chapter = {Ch. 3.25 Chemistry of Coffee},
pages = {1085-1096}**,**
publisher = {Elseveir Ltd.},
year = {2010},
month = {March},
edition ={1st Edition},
note = {ISBN: 978-0-0804-5381-1}
}
缺失的逗号两侧均标有两个星号。