[Tex/LaTex] Problems with Biblatex and bibtex

biblatexbibliographiesbibtex

After I compile my .tex file I get this error:

LaTeX Warning: There were undefined references. Package biblatex
Warning: Please (re)run BibTeX on the file(s): (biblatex) anteproyecto
(biblatex) and rerun LaTeX afterwards.

This is the structure of my document:

\documentclass[12pt,a4paper]{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{paper,
  author =       "You and Me",
  title =        "Hello",
  note =         "World",
  year =         "2013",
  keywords =     "mobile"
}
@online{icao,
    title     = "We all",
    url       = "http://www.latex.com",
    keywords  = "latex"
}
\end{filecontents*}
\usepackage[utf8]{inputenc}
\usepackage[spanish, es-tabla]{babel}
\begin{document}
\bibliography{\jobname}
\end{document}

I use Texmaker editor (I configured for UTF8 enconding and biblatex + pdflatex compiling) and Texlive.
I am newbie with tex. Any help will be appreciated.

Best Answer

In your code you do not cite any document. Also you tagged biblatex but you didn't load the package in the given code.

I added \nocite{*} to create a bibliography of all bib entrys in your bib file.

See this MWE:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{paper,
  author =       "You and Me",
  title =        "Hello",
  note =         "World",
  year =         "2013",
  keywords =     "mobile",
}
@online{icao,
    title     = "We all",
    url       = "http://www.latex.com",
    keywords  = "latex",
}
\end{filecontents*}


\documentclass[12pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage[spanish, es-tabla]{babel}
\usepackage{csquotes}
\usepackage[backend=biber]{biblatex}
\addbibresource{\jobname.bib} %  bib file created with filecontents

\begin{document}
\nocite{*}          % shows allbib entrys in bibliography
\printbibliography  % print bibliography here
\end{document}

with the result:

enter image description here

Please see that you have to use biber in this version!

Related Question