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.
bibtex
-> LaTeX -> LaTeX?bibtex
on the file and after that two additional runs of LaTeX. So if you're file is calledmyfile.tex
and you're working in a terminal, you should typepdflatex myfile.tex
after that's finishedbibtex myfile
and after that two additional timespdflatex myfile.tex
. After that everything should be there. (Of course you can also uselualatex
orxelatex
instead ofpdflatex
)