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}
Output:Blargh?
References
Paul Embrechts, Claudia Kl ̈ppelberg, and Thomas Mikosch. Modelling Extremal Events for Insurance and Finance. Springer, 1997.
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.
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.