我正在写一份报告,参考书目中的括号是空的,而且文中的引用都是问号。我该如何在其中添加数字?
这是我的代码:
\documentclass[pdftex,10pt,a4paper]{report}
\usepackage{minitoc}
\usepackage{amsthm, amsmath}
\usepackage{listings}
\usepackage{color}
\usepackage{fancyhdr}
\usepackage{float}
\usepackage{geometry}
\usepackage[square,sort,compress,numbers]{natbib}
\usepackage[pdftex,colorlinks=true]{hyperref}
\usepackage[pdftex]{graphicx}
\usepackage{wrapfig}
\usepackage{notes}
\usepackage{watermark}
\usepackage{epstopdf}
\usepackage{sectsty,textcase}
\usepackage{blindtext}
\begin{document}
Some text \cite{carmeliet2000}.
Extra text \cite{alberts2002}.
\newpage
\bibliographystyle{plainnat}
\bibliography{allsources}
它显示了参考书目中的参考文献,但没有在参考书目和正文中的括号中放置数字。
allsources.bib 看起来像:
@ARTICLE {carmeliet2000,
author = "Peter Carmeliet and Rakesh K. Jain",
title = "Angiogenesis in cancer and other diseases",
journal = "Nature",
year = "2000",
volume = "407",
pages = "249-257",
month = "sep",
DOI = "doi:10.1038/35025220"
}
@BOOK {alberts2002,
author = "Alberts B. and Johnson A. and Lewis J. et al",
title = "\textit{Blood Vessels and Endothelial Cells} in Molecular
Biology of the Cell",
publisher = "New York: Garland Science",
year = "2002",
edition = "fourth"
}