正如我在另一个问题中所说,我正在出版一本书,经过数周的努力解决问题后,只剩下这两个错误。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\title{testest}
\author{dennis93muller }
\date{August 2016}
\begin{document}
\maketitle
programs as defined by \citet{DeMaio2009Bike-sharing:Future}.
\bibliographystyle{plain}
\bibliography{Mendeley.bib}
\section{Introduction}
\end{document}
bib.file 包含以下内容:
@article{DeMaio2009Bike-sharing:Future,
title = {{Bike-sharing: History, impacts, models of provision, and future}},
year = {2009},
journal = {Journal of Public Transportation},
author = {DeMaio, Paul},
number = {4},
pages = {3},
volume = {12},
isbn = {1077-291X}
}
输出应该是:DeMaio 定义的程序。但事实并非如此。有人知道为什么会发生这种情况吗?我也尝试过 \cite 或 \citep,都没有正确的输出!
答案1
您的最小示例中缺少\bibliographystyle
and命令。\bibliography
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\title{testest}
\author{dennis93muller}
\date{August 2016}
\begin{document}
\maketitle
programs as defined by \citet{DeMaio2009Bike-sharing:Future}.
\section{Introduction}
\bibliographystyle{plainnat}
\bibliography{test}
\end{document}
当您使用不兼容的书目样式(例如纯文本)时,您会从图形中获得输出natbib
。将其更改为plainnat
。