I placed my bibliography just before the end of the file.
\bibliography{mybib}{}
\bibliographystyle{plain}
@article{damodaran2010comatose,
title = {Comatose Markets: What if Liquidity is Not the Norm?},
author = {Damodaran, Aswath},
journal = {Available at SSRN 1729408},
year = {2010},
}
At the top, I am using the package cite
\usepackage{cite}
However, when I place a citation in the text, it just displays [?]
.
Also, the article data is displayed in plain text at the end.
How can I make the citations work?
Best Answer
In your code snippet there are some errors.
For example the second
{}
in\bibliography{mybib}{}
can be removed.Your bib entries for your bibliography should be in a separate file with extension
.bib
.In the following MWE I used the package
filecontents
in order to include an example bib file into my MWE. You do not need it, just use your existing bib file (you will soon have it ;-)). In the MWE the resulting bib file has the name of your tex file, but extension.bib
.MWE:
and the result is:
Calling the package
cite
is left for homework.BTW: the command
\nocite{*}
shows all bib entries in your bibliography (nice to check the bib file for errors).You have to run first
pdflatex mwe.tex
, thenbibtex mwe
, then twicepdflatex mwe.tex
(assume my mwe is calledmwe.tex
).