General ⇒ bibliography doesn't work
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
bibliography doesn't work
Hi,
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
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 482 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

bibliography doesn't work
Supress the last comma (it instructs BiBTeX to expect another field):
@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
@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"
}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
Re: bibliography doesn't work
Hi gmedina,
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
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: 10344
- Joined: Mon Mar 10, 2008 9:44 pm
Re: bibliography doesn't work
Hi,
did you call bibtex to generate the bbl file from the bib file?
Stefan
did you call bibtex to generate the bbl file from the bib file?
Stefan
LaTeX.org admin
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?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
Re: bibliography doesn't work
Thanks Stefan/gmedina,
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
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: 10344
- Joined: Mon Mar 10, 2008 9:44 pm
bibliography doesn't work
Have a look at this tutorial: Getting to Grips with Latex - Bibliography Management, especially the section Why won't Latex generate any output?.
Call bibtex MyOwnBib at the command line.
Stefan
Call bibtex MyOwnBib at the command line.
Stefan
LaTeX.org admin
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
Re: bibliography doesn't work
Hi Stefan,
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
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: 10344
- Joined: Mon Mar 10, 2008 9:44 pm
bibliography doesn't work
Write these lines at the command line, not inside the document.
Some editors provide support for bibtex. Which editor are you using?
Stefan
Some editors provide support for bibtex. Which editor are you using?
Stefan
LaTeX.org admin
-
- Posts: 7
- Joined: Thu Jul 24, 2008 4:17 pm
Re: bibliography doesn't work
Hi Stefan,
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
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