BibTeX, biblatex and bibernatbib | Undefined Citations

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Kafka
Posts: 1
Joined: Fri Oct 07, 2011 11:36 pm

natbib | Undefined Citations

Post by Kafka »

Hello,

Let me start off by saying that I'm new to LaTeX and everything in it. I have a problem with undefined citations, which I have not been able to solve. When I have searched for solutions to this problem, they mostly say to run PDFLaTeX and BibTeX in various order and number of times, but this does not seem to help for me. These are my files:

Code: Select all

% references.bib
@BOOK{ekm,
   author = "Paul Embrechts and Claudia Klüppelberg and Thomas Mikosch",
   title = "Modelling Extremal Events for Insurance and Finance",
   publisher = "Springer",
   year = "1997"
}

Code: Select all

% evt.tex
\documentclass[a4paper,10pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel} % English
\usepackage{amssymb} % Extra symbols 					% http://milde.users.sourceforge.net/LUCR/Math/mathpackages/amssymb-symbols.pdf
\usepackage{amsmath} % AMS mathematical facilities for LaTeX.		% http://tug.ctan.org/pkg/amsmath
\usepackage{amsthm} % Typesetting theorems (AMS style).			% http://www.ctan.org/pkg/amsthm
%\usepackage{bibtex} % bibliography					% http://www.bibtex.org/
\usepackage{natbib} % For Harvard referencing 				% http://merkel.zoneo.net/Latex/natbib.php
\usepackage{hypernat} % Allow hyperref and natbib to work together.	% http://www.ctan.org/pkg/hypernat

\title{Extreme Value Theory}


\begin{document}


Blargh\citet{ekm}

\bibliographystyle{plainnat}
\bibliography{references}
\end{document}
PDF-file:
Blargh?

References
Paul Embrechts, Claudia Kl ̈ppelberg, and Thomas Mikosch. Modelling Extremal Events for Insurance and Finance. Springer, 1997.
Output:

Code: Select all

Package natbib Warning: Citation `ekm' on page 1 undefined on input line 18.

(./evt.bbl (/usr/share/texmf-texlive/tex/latex/ucs/data/uni-0.def))

Package natbib Warning: There were undefined citations.

[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./evt.aux

Package natbib Warning: Citation(s) may have changed.
(natbib)                Rerun to get citations correct.
Other info: I am running Kile on Ubuntu 11.04.

All help appreciated! Thanks in advance.

EDIT: Turns out the problem was in the .bib-file; may have to do with having used tabs instead of spaces. When I rewrote the bib file using spaces instead the problem was gone.
Last edited by Kafka on Sun Oct 09, 2011 8:08 am, edited 1 time 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.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

natbib | Undefined Citations

Post by localghost »

You specified the wrong input encoding. Just use UTF-8 encoding and it will work.

Code: Select all

\usepackage[utf8]{inputenc}
For documents in English (or other European languages) you don't need extended Unicode.

And next time please provide a true minimal example. All math related packages are not necessary to reproduce the problem.


Best regards and welcome to the board
Thorsten
Post Reply