I'm relatively new in Latex and now I want to use bibtex function in my paper.
here is how it"s constructed:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{afterpage,lscape}
\usepackage{natbib}
\begin{document}
Imperfections in credit market influence the labor market \cite{einstein}.
\newpage
\setcounter{secnumdepth}{0}
\pagenumbering{roman}
\bibliography{Reference}
\bibliographystyle{plain}
\nocite{*}
\end{document}
where my bib file is "Reference.bib" and has the following content:
@article{einstein,
author = "Albert Einstein",
title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
[{On} the electrodynamics of moving bodies]",
journal = "Annalen der Physik",
volume = "322",
number = "10",
pages = "891--921",
year = "1905",
DOI = "http://dx.doi.org/10.1002/andp.19053221004"
}
I'm running Latex, however there is no output of the bibliography in pdf and the citations are with question marks. Also I have tried to run my bib file separately and it's not creating "bbl" extension file (I'm not sure if it's necessary for creating pdf).
Also when I"m running my bib file separately here is the Console Output I'm getting:
" This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)
entering extended mode
("C:/Users/Anushmush/Desktop/Labor Search/Reference.bib")
*"
Is this what I need to get?
Could you please help me figure out what is the mistake I'm making here?
Thank you very much
report.tex. Then you can dopdflatex reportfollowed bybibtex reportfollowed bypdflatex reportThen you should get a document with bibliography. – Thomas Weise Jul 25 '15 at 13:36\cites, (pdf)latex must be run twice to expand them properly. – barbara beeton Jul 25 '15 at 14:58pdflatex, thenbibtex, thenpdflatexagain, i.e., two timespdflatex. Do you mean I should dopdflatex, thenpdflatex, thenbibtex, thenpdflatex? (A special additional case would be references which cite additional references. If that is the case, one may need arbitrarily manypdflatex-bibtexruns. A solution might be to continue doing that until the size of the.auxfile does not change anymore. Either way, this seems not to be the case here.) – Thomas Weise Jul 25 '15 at 23:20pdflatexthenbibtexthenpdflatexthenpdflatexin the standard case. As you say, additional runs may be needed in special cases, but even in the standard case an additional run ofpdflatexis required if\cite{}is used anywhere. – cfr Jul 25 '15 at 23:28pdflatex->bibtexin a loop until the.auxor.pdffile size does not change anymore.)... Thanks for this lesson ^_^. – Thomas Weise Jul 26 '15 at 01:18