## 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.
1. \documentclass{article}
2.
3. \title{}
4. \author{}
5.
6. \begin{document}
7. \maketitle
8. \begin{abstract}
9. \end{abstract}
10.
11. \cite{a}
12. \cite{b}
13.
14. \newpage
15. \bibliographystyle{plain}
16. \bibliography{ref1}
17. \end{document}

And this is my .bib file.
1. @article{a,
2. author = {jhghgjhg},
3. title = {title},
4. journaltitle = {journaltitle},
5. date = {date},
6. }
7.
8. @article{b,
9. author = {author},
10. title = {title},
11. journal = {journal},
12. year = {year},
13. }

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