I am beginner in LaTeX, and I am trying to use BibTeX to create a reference, I am using MiKTex 2.9 and TeXstudio 2.5.1 . I am trying to include references to my .tex
file using BibTeX.
-
I created a .bib file (
mybib.bib
) in TeXstudio using the BibTeX format%%%%%%%%%%%% 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} }
-
I include
mybib.bib
in my.tex
filetest_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}
-
I use PDFLATEX->BIBTEX->PDFLATEX->PDFLATEX and the output produced references cited in the text, but the title
references
is missing. -
Where is the mistake? Please help.
Best Answer
You're not doing wrong. The
elsarticle
class uses thenatbib
package that hands control of the bibliography section heading to the command\bibsection
. In the standard setup ofnatbib
this does (inside an article)Actually it's a bit more complex than this, but the details are not relevant. The
elsarticle
class doesso I'd say not providing a heading is intentional. Just add a heading yourself:
Use
\section*
if you want it unnumbered.