没有 bibdata 命令

没有 bibdata 命令

我安装了 Linux Mint 并latex重新进行了设置,但现在当我编译 latex 文件时出现以下错误:

Process started

This is BibTeX, Version 0.99d (TeX Live 2013/Debian) The top-level auxiliary file: proposal.aux I found no \bibdata command---while reading file proposal.aux I found no \bibstyle command---while reading file proposal.aux (There were 2 error messages)

Process exited with error(s)

我发现的唯一解决方案是包含以下行:

\usepackage[backend=bibtex,style=trad-plain]{biblatex}

但后来我不得不排除这一行\bibliographystyle{plain},这使得引用看起来像[Page98],我想要数字[1]

我可以安装一个新的包裹,但我可能想解决第一个问题,即bibtex使用plain书目样式时和没有错误。我该如何解决原始问题,以便我使用bibtex而不是biblatex

以下是 tex 文件的片段

\documentclass[12pt]{article}

%\usepackage[backend=bibtex,style=trad-plain]{biblatex}
\usepackage{fullpage}
\usepackage{url}


\author{Author Name \\
}
\title{Proposal 
}
\date{\today}
\pagenumbering{gobble}
\begin{document}
\maketitle

\begin{abstract}

\textit{Influence Maximization}, defined by Kempe et al. (2003) \cite{Kempe03}, is the problem of selecting a set of seed nodes in a social graph that maximizes spread of influence under certain cascade model. Being NP-hard for most common cascade models, Kempe et al. propose a natural greedy solution with approximation guarantees that are within 63\% of the optimal. This work led to extensive research on algorithmic and data mining techniques for solving different aspects of the problem. These aspects include, for example, estimation of influence of nodes (propagation probabilities), study of different cascade models, or speed improvement of original greedy solution. In fact, the latter resulted in heuristics Chen et al. (2009, 2010)  \cite{Chen09,Chen10} that are able to reduce running time by more than six order of magnitude of greedy approach with almost no loss of influence spread.  It makes possible to find feasible solutions for large-scale social networks where traditional algorithms fail. 
\end{abstract}

\nocite{spielman08}
\nocite{lafon06}
\nocite{kernelmethods04}
\nocite{concentration_book}
\nocite{spectral_algorithms}

%\bibliographystyle{plain}
\begin{thebibliography}{9}

\bibitem{Kempe03}
D.~Kempe, J.~Kleinberg, and E.~Tardos.
\newblock Maximizing the spread of influence through a social network.
\newblock In {\em Proc.
of the Ninth ACM Int. Conf. on Knowledge Discovery and
Data Mining (KDD’03)}.

\bibitem{Chen09}
W.~Chen, Y.~Wang, and S.~Yang.
\newblock Efficient influence
maximization in social networks.
\newblock In {\em Proc. of the 15th ACM
Int. Conf. on Knowledge Discovery and Data Mining
(KDD’09)}.

\bibitem{Chen10}
W.~Chen, Y.~Yuan, and L.~Zhang.
\newblock Scalable influence maximization in social networks under the linear threshold model.
\newblock In {\em ICDM,} pages 88-97, 2010.

\bibitem{Goyal12}
A.~Goyal, F.~Bonchi, L.~V.~Lakshmanan, and S.~Venkatasubramanian.
\newblock On minimizing budget and time in influence propagation over social networks.
\newblock In {\em Social Network Analysis and Mining,} pages 1-14, 2012.

\bibitem{Zhang14}
P.~Zhang, W.~Chen, X.~Sun,Y.~Wang, and J.~Zhang.
\newblock Minimizing Seed Set Selection with Probabilistic Coverage Guarantee in a Social Network.
\newblock {\em Preprint arXiv.org}, 2014.

\bibitem{Domingos01}
P.~Domingos, M.~Richardson.
\newblock Mining the network value of
customers.
\newblock {\em Proceedings of the seventh ACM SIGKDD international conference on knowledge discovery and data mining, ACM, New York, NY, USA, KDD ’01,} pp 57-66, 2001.

\end{thebibliography}

\end{document}

答案1

当您使用 thebibliography环境时,您不需要使用bibtex。bib 项目的样式完全由您负责。只需使用pdflatex(或您正在使用的任何内容)编译两次即可。

对于bibtex(或biberbiblatex),您必须使用参考书目数据库(一个单独的文件,其.bib扩展名包含条目,例如mybibfile.bib),然后使用

\documentclass{article}
\bibliographystyle{plain}
\begin{document}
\nocite{*}
\bibliography{mybibfile}   %% the .bib file without extension
\end{document}

现在使用pdflatexbibtex和编译此文件pdflatexpdflatex

答案2

看来\bibliography{}MAC 中的命令可以读取.bib带扩展名和不带扩展名的文件,而 Windows 无法找到.bib带扩展名的文件。

答案3

尝试在快速构建命令中检查配置设置。如果您不使用 BibTeX 文件,则不要包含bibtex。尝试仅将其设置为PDFlatex+ View PDF

相关内容