## LaTeX forum ⇒ BibTeX, biblatex and biber ⇒ Missing References and Bibilography

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
bubblegum
Posts: 6
Joined: Sat Feb 01, 2014 8:11 pm

### Missing References and Bibilography

Hi,

I'm having some trouble getting my bibliography to show up in my compiled latex file. The .tex file recognizes the .bib file and even provides the references ID's in the pop-up menu when I use \cite. But when I compile it, I only get [?].

This is how my .tex files look like.
\documentclass{article} \title{}\author{} \begin{document}   \maketitle   \begin{abstract}   \end{abstract}    \cite{a}   \cite{b}    \newpage   \bibliographystyle{plain}   \bibliography{ref1}\end{document}

And this is my .bib file.
@article{a,   author = {jhghgjhg},   title = {title},   journaltitle = {journaltitle},   date = {date},} @article{b,   author = {author},   title = {title},   journal = {journal},   year = {year},}

Thanks for any help! =)
Last edited by localghost on Thu Feb 27, 2014 7:54 pm, edited 2 times in total.
Reason: Source code has to be tagged as such to keep a post clear and legible (see Board Rules).

Tags:

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm
Are you sure you also used bibtex to extract the necessary data from the .bib file such that latex can insert the formatted bibliography?

The standard procedure of compiling a document with a bibliography is:
• latex main.tex
• bibtex main
• latex main.tex
• latex main.tex

On my computer the example you provided works just fine. The fact that autocomplete in your editor works is just because it reads the .bib file and extracts the keys, but you need bibtex to format the bibliography in your document.

Also, if this is really the problem, then you are probably new to latex/bibtex, and you might want to consider using biblatex with the biber backend. This is a much more modern system, with for example better support for large bibliographies, references to digital sources, and much more.
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit