I an new to Latex, and I am trying to use 'bibtex' to create a reference, I was working in pdfLaTeX+MakeIndex+BibTex.
Here is my sample code:
\documentclass[12pt]{article}
\usepackage{cite}
\begin {document}
$$ x_i$$
\section{Introduction}
According to \cite{2006}
\bibliographystyle{IEEEtran}
\bibliography{my_bibtex}
\end{document}
Edit:
Here is the .bib file that I am using.
@article{2006,
jstor_articletype = {research-article},
title = {The Cross-Section of Volatility and Expected Returns},
author = {Ang, Andrew and Hodrick, Robert J. and Xing, Yuhang and Zhang, Xiaoyan},
journal = {The Journal of Finance},
jstor_issuetitle = {},
volume = {61},
number = {1},
jstor_formatteddate = {Feb., 2006},
pages = {pp. 259-299},
url = {http://www.jstor.org/stable/3699341},
ISSN = {00221082},
abstract = {We examine the pricing of aggregate volatility risk in the cross-section of stock returns. Consistent with theory, we find that stocks with high sensitivities to innovations in aggregate volatility have low average returns. Stocks with high idiosyncratic volatility relative to the Fama and French (1993, Journal of Financial Economics 25, 2349) model have abysmally low average returns. This phenomenon cannot be explained by exposure to aggregate volatility risk. Size, book-to-market, momentum, and liquidity effects cannot account for either the low average returns earned by stocks with high exposure to systematic volatility risk or for the low average returns of stocks with high idiosyncratic volatility.},
language = {English},
year = {2006},
publisher = {Blackwell Publishing for the American Finance Association},
copyright = {Copyright © 2006 American Finance Association},
}
However, instead of expected [1] for reference, I am getting [?], an nothing is listed under references, though the word "References" does show up.
In the youtube tutorial that I was following this case is described. The tutorial did say that sometimes there might this be an issue with creating a reference. To which the author suggest to work in BibTeX only, then move to pdfLaTeX and then click run a couple of times, and things should work. I did the above, but nothing works for me.
Any ideas how to get my code to work?
Edit:
Here are the contents of my .bbl file:
% Generated by IEEEtran.bst, version: 1.13 (2008/09/30)
\begin{thebibliography}{}
\providecommand{\url}[1]{#1}
\csname url@samestyle\endcsname
\providecommand{\newblock}{\relax}
\providecommand{\bibinfo}[2]{#2}
\providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax}
\providecommand{\BIBentryALTinterwordstretchfactor}{4}
\providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus
\BIBentryALTinterwordstretchfactor\fontdimen3\font minus
\fontdimen4\font\relax}
\providecommand{\BIBforeignlanguage}[2]{{%
\expandafter\ifx\csname l@#1\endcsname\relax
\typeout{** WARNING: IEEEtran.bst: No hyphenation pattern has been}%
\typeout{** loaded for the language `#1'. Using the pattern for}%
\typeout{** the default language instead.}%
\else
\language=\csname l@#1\endcsname
\fi
#2}}
\providecommand{\BIBdecl}{\relax}
\BIBdecl
Edit:
Here are contents of my .blg file.
This is BibTeX, Version 0.99dThe top-level auxiliary file: newfile.aux
The style file: IEEEtran.bst
I couldn't open database file my_bibtex.bib
---line 4 of file newfile.aux
: \bibdata{my_bibtex
: }
I'm skipping whatever remains of this command
I found no database files---while reading file newfile.aux
Warning--I didn't find a database entry for "2006"
-- IEEEtran.bst version 1.13 (2008/09/30) by Michael Shell.
-- http://www.michaelshell.org/tex/ieeetran/bibtex/
-- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information.
Done. (There were 2 error messages)
Thank You in Advance

my_bibtexlook like? – Werner Jun 26 '12 at 20:12$$..$$to delimit math in display, but use\[..\]instead – Spike Jun 26 '12 at 20:15pdflatexon your file, thenbibtexand thenpdflatextwice I get the expected result. – egreg Jun 27 '12 at 11:29.blgfile in the working directory. Please show its contents. – egreg Jun 27 '12 at 13:35myfile.tex. When you runbibtex myfilethe program should produce a file calledmyfile.bbl(containing the bib data suitable for LaTeX) and a transcript of the session calledmyfile.blg. Are you perhaps doingbibtex my_bibtex? This would be wrong. – egreg Jun 27 '12 at 15:33