我是 LaTeX 的初学者,我正在尝试使用 BibTeX 创建参考,我正在使用 MiKTex 2.9 和 TeXstudio 2.5.1。我正在尝试使用.tex
BibTeX 包含对我的文件的引用。
mybib.bib
我在 TeXstudio 中使用 BibTeX 格式创建了一个 .bib 文件 ( )%%%%%%%%%%%% 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} }
我包括
mybib.bib
在我的.tex
文件中test_els.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 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} \nocite{*} \bibliography{mybib} \end{document}
我使用 PDFLATEX->BIBTEX->PDFLATEX->PDFLATEX,输出产生了文中引用的参考文献,但
references
缺少标题。错误在哪里?请帮忙。
答案1
你没有做错。该类elsarticle
使用natbib
将参考书目部分标题的控制权交给命令的包\bibsection
。在标准设置中natbib
(在文章内)
\section*{\refname}
实际上比这更复杂一些,但细节并不重要。该类elsarticle
确实
\let\bibsection\relax
所以我认为不提供标题是故意的。只需自己添加标题即可:
\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}
\nocite{*}
\section{\refname}
\bibliography{mybib}
\end{document}
\section*
如果您希望不编号,请使用。