BibTeX, biblatex and biberMissing References and Bibilography

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

Missing References and Bibilography

Post by bubblegum »

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.

Code: Select all

\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.

Code: Select all

@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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Missing References and Bibilography

Post by hugovdberg »

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
Post Reply