[Tex/LaTex] Cannot generate bibliography using TeXworks from MiKTeX


I am trying to generate a bibliography with no luck until now. I get an empty one.
Here is my code.

\documentclass[12pt,twoside, openright, a4paper]{report}










my biblio.bib is

    author = "test",
    title = "test",
    year = 2010,

and in TeXworks I use the option "XeLaTeX+MakeIndex+BibTeX". I read somewhere that I had to include the plain.bst file. Did it but didn't work. I tried everything. Any ideas?

Best Answer

Too long for a comment: Let's try us another way. Can you please compile the following MWE on your system? It works for me with pdflatex -- bibtex -- pdflatex -- pdflatex.

%File mb-bibtex.tex, then \jobname = mb-bibtex
\RequirePackage{filecontents}        % loading package filecontents
% writing file \jobname.bib, for example mb-bibtex.bib.
  author    = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year       = {1994}
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980}


\usepackage[numbers]{natbib}         % bibliography style
\usepackage[colorlinks]{hyperref}    % better urls in bibliography

Test of bibliography: 
The \LaTeX{} companion~\cite{companion}, the funny book of Adams~\cite{adams}.

\bibliographystyle{plainnat}  % needs package natbib
\bibliography{\jobname}       % uses \jobname.bib, according to \jobname.tex

To be sure (that there is no error in your config of your editor) please use the terminal/console.