0

I am completely new at using BibTeX for referring and citations, I used to include the reference list in the tex file everytime. Now I would like to modernise myself i little bit.

As I am totally new at this I read this page:

http://www.bibtex.org/Using/

I followed EXACTLY the steps in there: I created a .bib-file with the following:

@misc{ Nobody06,
   author = "Nobody Jr",
   title = "My Article",
   year = "2006" }

and then I created the following tex-file:

\documentclass[11pt]{article}
\usepackage{cite}

\begin{document}

\title{My Article}
\author{Nobody Jr.}
\date{Today}
\maketitle

Blablabla said Nobody ~\cite{Nobody06}.

\bibliography{mybib}{}
\bibliographystyle{plain}
\end{document}

I generate the pdf and nothing shows up: Just [?] and no reference at the end.

I am wondering, what can go wrong in such simple procedure? Thank you very much for any hints you may have!

mark
  • 3

1 Answers1

1

If this is your output,

enter image description here

then, most likely, your file mybib.bib is not accessible by LaTeX. This means that it is not in the same folder as your LaTex file, or it does not have the .bib extension.

Otherwise, there's nothing wrong with your code. It would compile correctly like this:

enter image description here

qzx
  • 550
  • 3
  • 13
  • Aha!? Ok, but it is in the same folder and it has the bib extension :( – mark Mar 12 '15 at 09:28
  • Try executing "bibtex mybib" on the command line, and then recompile your latex file with "pdflatex mybib". Try each a few times if needed. – Benjamin McKay Mar 12 '15 at 10:14
  • @mark, better use a TeX editor, e.g., TeXworks, that automatically recompiles and does BibTeX runs when necessary. – qzx Mar 12 '15 at 11:30