General ⇒ bibliography doesn't work
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
bibliography doesn't work
Could someone please help me with bibliography?
I have the following document:
\documentclass[10pt]{article}
\begin{document}
\section{Cash Holdings}
\begin{itemize}
\item Let's see if \cite{DittmarMahrt-Smith_JFE07} works well.
\item Why doesn't it work?
\end{itemize}
\bibliographystyle{decsci}
\bibliography{MyOwnBib}
\end{document}
And the related MyOwnBib.bib file only contains the following:
@article{DittmarMahrt-Smith_JFE07,
Author = "Dittmar, Amy, and Jan Mahrt-Smith",
Title = "Corporate {G}overnance and the {V}alue of {C}ash {H}oldings",
Journal = "Journal of Financial Economics",
Volume = "83",
Number = "3",
Pages = "599--634",
Year = "2007",
}
But the PDF thus generated (attached below) doesn't show the reference!
Could someone please explain what am I doing wrong? FYI - I do keep both the document and the bib file in the same folder.
Thanks,
N
- Attachments
-
- LaTeX1.pdf
- (17.35 KiB) Downloaded 509 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
bibliography doesn't work
@article{DittmarMahrt-Smith_JFE07,
Author = "Dittmar, Amy, and Jan Mahrt-Smith",
Title = "Corporate {G}overnance and the {V}alue of {C}ash {H}oldings",
Journal = "Journal of Financial Economics",
Volume = "83",
Number = "3",
Pages = "599--634",
Year = "2007",
}
Use
Code: Select all
@article{DittmarMahrt-Smith_JFE07,
Author = "Dittmar, Amy, and Jan Mahrt-Smith",
Title = "Corporate {G}overnance and the {V}alue of {C}ash {H}oldings",
Journal = "Journal of Financial Economics",
Volume = "83",
Number = "3",
Pages = "599--634",
Year = "2007"
}
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
Re: bibliography doesn't work
Thanks for your response, but that didn't help. (I would have felt odd if it were just that comma!)
Er ... silly question, but do I have to type anything like "\begin{document}" in the .bib file, or just list the articles?
Thanks,
N
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: bibliography doesn't work
did you call bibtex to generate the bbl file from the bib file?
Stefan
bibliography doesn't work
Then maybe you are missing the decsci.bst file. Try replacingnishantdass wrote:...Thanks for your response, but that didn't help. (I would have felt odd if it were just that comma!)...
Code: Select all
\bibliographystyle{decsci}
Code: Select all
\bibliographystyle{plain}
Just the bibliographical items.nishantdass wrote:Er ... silly question, but do I have to type anything like "\begin{document}" in the .bib file, or just list the articles?
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
Re: bibliography doesn't work
gmedina - changing the style didn't help, but thanks for the clarification (on whether to use \begin{document} in the .bib file)
Stefan - I suppose that's where the problem is because I didn't "call bibtex to generate the bbl file". In fact, I don't even know how I would do that!
Sorry for the elementary questions,
N
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
bibliography doesn't work
Call bibtex MyOwnBib at the command line.
Stefan
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
Re: bibliography doesn't work
Thanks for the tip, but given that I am a real beginner with LaTeX, it's all quite puzzling!
I checked the page by Andy Roberts that you mentioned, but in both your reply and Roberts' page, I don't see where exactly do you use those lines -
latex MyLatex
bibtex MyOwnBib
latex MyLatex
Do you write these in the editor within the document before \end{document} or just compile the document as it is? I am sorry but how do you "Call bibtex MyOwnBib"?
N
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
bibliography doesn't work
Some editors provide support for bibtex. Which editor are you using?
Stefan
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
Re: bibliography doesn't work
I was working on TexnicCenter earlier, and couldn't find the command prompt there. I know the command prompt on WinEdt and tried "calling bibtex". It does create the .bbl file now, but it gives the following 3 errors when I run "bibtex MyOwnBib":
"I found no \citation command while reading file MyOwnBib.aux"
"I found no \bibdata command while reading file MyOwnBib.aux"
"I found no \bibstyle command while reading file MyOwnBib.aux"
As a result, I still don't see my bibliography in the PDF!
Sorry for all the hassle but I am trying to get over with MSWord!
Thanks,
N