插入参考文献报错

2019-10-17 10:09发布

不知道什么原因插入参考文献编译不出来 附:相关程序 \documentclass[final,5p,times,twocolumn]{elsarticle} %% For including fig...

不知道什么原因插入参考文献编译不出来 附:相关程序 \documentclass[final,5p,times,twocolumn]{elsarticle} %% For including figures, graphicx.sty has been loaded in %% elsarticle.cls. If you prefer to use the old commands %% please give \usepackage{epsfig} %% The amssymb package provides various useful mathematical symbols \usepackage{algorithm} \usepackage{algorithmic} \usepackage{amssymb} \usepackage{amsmath} %\usepackage{mathbbold} %\usepackage{amsfonts} %\usepackage{times,amsthm} \usepackage{enumerate} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{subfigure} \usepackage[centerlast]{caption} \usepackage{color} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{bm} \usepackage{varwidth} \usepackage{tikz} \usepackage{cite} \usetikzlibrary{positioning} %\uespackage{float} \numberwithin{equation}{section} %\usepackage{autobreak} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}{Lemma} \newtheorem{proof}{Proof}[section] %% The amsthm package provides extended theorem environments %% \usepackage{amsthm} %% The lineno packages adds line numbers. Start line numbering with %% \begin{linenumbers}, end it with \end{linenumbers}. Or switch it on %% for the whole article with \linenumbers. %% \usepackage{lineno} \journal{Nuclear Physics B} \begin{document} in each iteration\cite{bertsekas2015convex}. \bibliographystyle{plain} \bibliography{ref} \end{document} 其中ref。bib文件包含: @book{bertsekas2015convex, title={Convex optimization algorithms}, author={Bertsekas, Dimitri P and Scientific, Athena}, year={2003} } @article{zhang2004statistical, title={Statistical behavior and consistency of classification methods based on convex risk minimization}, author={Zhang, Tong and others}, journal={The Annals of Statistics}, volume={32}, number={1}, pages={56--85}, year={2004}, publisher={Institute of Mathematical Statistics} } 所选用的方法: https://blog.csdn.net/manjhOK/article/details/82820390 然而还是报错: ![](https://wenda.latexstudio.net/data/attach/191017/6ZYrjN5U.png) ![](https://wenda.latexstudio.net/data/attach/191017/mqhUaJsn.png)
2条回答
啸行 - 目前是一名 LaTeX 学徒
2019-10-17 10:19 .采纳回答
```tex \documentclass[final,5p,times,twocolumn]{elsarticle} \journal{Nuclear Physics B} \bibliographystyle{plain} \begin{document} in each iteration\cite{bertsekas2015convex}. \bibliography{ref} \end{document} ``` 这段代码是可运行的。 之所以你无法运行,我认为和你导言区有太多宏包有关系。 把它们清除,需要时再添加宏包。

一周热门 更多>