我使用的示例代码来自上一个问题。
上一个问题中的 elsarticle 文档类的代码是:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% test_els.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[preprint,12pt]{elsarticle}
\begin{document}
\section{Introduction}
Several researchers studied ruin probability, but for a survey see\cite{AsmussenandAlbrecher2010}.
For bulk arrival queues see \cite{ChaudhryandTempleton1983}
\bibliographystyle{model1-num-names}
\section{\refname}
\nocite{*}
\bibliography{mybib}
\end{document}
我将其逐字逐句复制到我的 MiKTeX 中。随附的是我的 .bib 文件 (mybib):
%%%%%%%%%%%% mybib.bib %%%%%%%%%
@BOOK{AsmussenandAlbrecher2010,
author = {Asmussen, S. and Albrecher, H.},
title = {Ruin probabilities},
edition = {2nd ed.},
address = {Singapore},
publisher = {World Scientific},
year = {2010}
}
@ARTICLE{Botta1987,
author = {Botta, R. F. and Harris, C. M. and Marchal, W. G.},
title = {Characterisation of generalised hyperexponential distribution functions},
journal = {Stochastic Models},
volume = {3},
year = {1987},
pages = {115-148}
}
@BOOK{ChaudhryandTempleton1983,
author = {Chaudhry, M. L. and Templeton, J. G. C.},
title = {A First Course in Bulk Queues},
address = {New York},
publisher = {Wiley},
year = {1983}
}
保存该 .bib 后,我在 MiKTeX 中运行了 .tex 文件(PDFLatex > BibTex > PDFLatex > PDFLatex)。我似乎无法避免这输出。代码很简单,但我找不到我做错的地方。有什么建议吗?