I read a lot of posts about this topic (Question mark or bold citation key instead of citation number, Latex references and bibliography not working etc), but they don't meet the needs.
I followed the istructions:
https://sites.google.com/site/latexiseasy/bibliography
I created the code:
\documentclass{article}
\begin{document}
To achieve incentive compatibility, the auction winner has to pay the second highest price \cite{Vickrey1961}.
A good introduction to graph algorithms can be found in \cite{Golumbic2004}.
\bibliographystyle{plain}
\bibliography{mylib}
\end{document}
and the file mylib.bib:
@ARTICLE{Vickrey1961,
AUTHOR = {W. Vickrey},
TITLE = {Counterspeculation, auctions and sealed tenders},
JOURNAL = {Journal of Finance},
YEAR = {1961},
volume = {16},
pages = {8--37},
}
@BOOK{Golumbic2004,
AUTHOR = {M. C. Golumbic},
TITLE = {Algorithmic Graph Theory and Perfect Graphs},
PUBLISHER = {Elsevier Science},
YEAR = {2004},
edition = {2nd Edition},
}
The bibliography does not appear. How can I fix it?
EDIT: when I click on play, it does not work.
I compile clicking on play in Texmaker:
Thank you very much.
Best Answer
For your bibliography you need to run BibTeX at least once after you ran LaTeX at least once. The correct building chain would be
In Texmaker the play button only runs LaTeX once by default. You can run BibTeX by clicking on
Tools -> BibTeX
(Strumenti -> BibTeX
in your language). This is also applicable for TeXstudio.