这是一个工作示例,它提供了多个错误消息,包括无法找到作者。它不接受任何样式格式,包括 apastyle。
错误信息:
This is BibTeX, Version 0.99d (TeX Live 2015)
The top-level auxiliary file: stackover.aux
I couldn't open style file apastyle.bst
---line 5 of file stackover.aux
: \bibstyle{apastyle
: }
I'm skipping whatever remains of this command
I couldn't open database file bib.bib
---line 6 of file stackover.aux
: \bibdata{bib
: }
I'm skipping whatever remains of this command
I found no database files---while reading file stackover.aux
I found no style file---while reading file stackover.aux
(There were 4 error messages)
tex 文件:
\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{graphicx}
\usepackage{verbatim}
\usepackage{setspace}
%\usepackage[square,sort,comma,numbers]{natbib}
\usepackage{natbib}
\usepackage{url}
\usepackage{comment}
\def\bibfont{\small}%
\def\bibsep{\smallskipamount}%
\def\bibhang{24pt}%
\def\newblock{\ }%
\def\BIBand{and}%
\graphicspath{ {images/} }
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\begin{document}
\section{Introduction}
\citep{Hart1995}
\citet{Li2015}
\citep{Chandrasekaran2008}
\bibliographystyle{apastyle}
\bibliography{bib}
\end{document}
围兜文件:
@ARTICLE{Li2015,
AUTHOR = {Li, Y. and Tellis, G.J.},
TITLE = { Does Province Matter? Intra-Country Differences in the Takeoff of New Products},
JOURNAL = {Technovation},
YEAR = {2015},
volume = { N/A},
number = { N/A},
pages = {N/A},
}
@ARTICLE{Hart1995,
AUTHOR = {Hart, S. L.},
TITLE = {A natural resource-based view of the firm},
JOURNAL = {Academy of Management Review},
YEAR = {1995},
volume = {20},
number = {4},
pages = {986-1014},
}
@ARTICLE{Chandrasekaran2008,
AUTHOR = {Chandrasekaran, D. and Tellis, G. J. },
TITLE = {Global takeoff of new products: Culture, wealth or vanishing differences? },
JOURNAL = {Marketing Science},
YEAR = {2008 },
volume = { 27},
number = { 5},
pages = { 844-860},
}
答案1
没有apastyle
参考书目样式。这就是信息
我无法打开样式文件 apastyle.bst
告诉你。但是,有apalike
,适用于您的示例。因此,替换
\bibliographystyle{apastyle}
和
\bibliographystyle{apalike}
您还应确保使用 引用了正确的文件\bibliography
。您说\bibliography{bib}
,但 bibtex 说没有这样的文件:
我无法打开数据库文件 bib.bib