I am trying to include my references using PDFLATEX into my document like this :
\begin{document}
...
\bibliographystyle{plain}
\bibliography{References}
\end{document}
But the cite command returns empty and the references are not displayed.
What package should i include knowing that i only included natbib. Also i put my References.bib in the same folder than my .tex and it starts like this :
@article{ref1,
title={...
AND neither can i use filecontents :
\begin{filecontents}{jobname.bib}
@book{author_book,
title = {Book's title},
author = {Author, Some},
location = {The City},
publisher = {Publisher},
year = {2005},
}
\end{filecontents}
\begin{document}
\nocite{*}
\bibliographystyle{abbrv}
\bibliography{jobname}
\end{document}
PS : i use TexWorks under Windows 10.
Thanks.
pdflatex,bibtex,pdflatex,pdflatex? And you'd probably want to use\jobnamenotjobname, though that also works. – daleif Jun 17 '21 at 15:07.auxfile or extension-less name of your main.texfile) or your.texfile does not contain any cite commands (unlike the example shown in the question). – moewe Jun 17 '21 at 15:12.texfile looks anything like the pieces of code shown in the question this shouldn't be happening. (Assuming you did run LaTeX before you ran BibTeX.) But it is hard to diagnose the problem without knowing what your document actually looks like. Please run the following example https://gist.github.com/moewew/57eb80c249f25dbc07878cc734575d30 without change (the filexampl.bibthat is called should be available on all machines with BibTeX) in a new and empty folder with pdfLaTeX, BibTeX, pdfLaTeX, pdfLaTeX. Report exactly what happens. – moewe Jun 17 '21 at 15:26\cite{article-full}(or\citepor whatever cite command you use) and\bibliography{xampl}in your example document. If the error messages are indeed as described above, the contents of your.bibfile are unlikely to be the problem. – moewe Jun 17 '21 at 15:47