I have searched help through much of the internet without getting my problem solved. I guess it's a common problem that new beginners encounters, but I have a deadline for my thesis which getting near.
As the title illuminates, I can not get any bibliography in the end of my thesis, nor any citation from the bibtex file is appearing in the text, only a "(?)" is shown where the citations was supposed to be. And yes, I have run latex multiple times, but nothing happens. However, I guess that an expert in latex will find the error in 2 sec.
Here is my thesis file:
Code: Select all
% preamble
\documentclass[english,12pt,a4paper,twoside]{report}
% some helpful usepackages
\usepackage[english]{babel}
%\usepackage[utf8x]{inputenc}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage[pdftex]{graphicx}\newcommand{\HRule}{\rule{\linewidth}{0.4mm}}
\usepackage{epstopdf}
\usepackage[round]{natbib}
\usepackage[paper = a4paper, %To be shrunk to 80% when printed
twoside, %Two-side mode, switches margins on
bindingoffset = 2mm, %Offset for binding side of page
hmargin = 25mm, %Left and right margin
vmargin = 25mm, %Top and bottom margin
dvipdfm]
{geometry}
\usepackage[framed,numbered]{mcode} %For matlab code
\usepackage{bm} %For accepting bold symbols in math mode
\usepackage{natbib} %Gives additional options to citation and styles
\usepackage{hyperref} % Handles links/URL's
\usepackage{nicefrac} %For small fractions
\usepackage{mathtools} %Extra math tools
\usepackage[normalem]{ulem} %Underline
\usepackage{subfig} %Subfigures
%
\addtolength{\evensidemargin}{-1cm}
\addtolength{\oddsidemargin}{-1cm}
\addtolength{\textwidth}{2cm}
%%---------------------LAYOUT---------------------
\usepackage{fancyhdr}
\setlength{\headheight}{15pt}
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\lhead{\fancyplain{}{\thepage}}
\chead{}
\rhead{\fancyplain{}{\textit{\leftmark}}}
\lfoot{}
\cfoot{}
\rfoot{}
% Define header/footer layout
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5 pt}
% make space for the rule
\fancypagestyle{plain}{
\fancyhead{} %get rid of the headers on plain pages
\renewcommand{\headrulewidth}{0pt} % and the line
}
%-------------------------------------------------
\begin{document}
%%---------------------TITLE PAGE---------------------
\begin{titlepage}
\begin{center}
\Huge \textbf{Project title}\\[4cm]
\Large \textbf{My name}\\[1cm]
\large Thesis for Master degree\\
in Geophysics\\[4cm]
\includegraphics[width=70mm]{./uglo.pdf}\\[1cm]
\textsc{\Large Department of Earth Science}\\[0.3cm]
\textsc{\large University of Oslo}
\vfill
{\large \today}
\end{center}
\end{titlepage}
%%---------------------DOCUMENT---------------------
\thispagestyle{empty}
\cleardoublepage
\tableofcontents
\thispagestyle{empty}
\clearpage
%\listoffigures
%\thispagestyle{empty}
%\clearpage
%\listoftables
%\thispagestyle{empty}
%\clearpage
%\input{Abstract}
\thispagestyle{empty}
\clearpage
\setcounter{page}{1}
\input{Chapter1/Introduction}
\input{Chapter2/BackgroundTheory}
\input{Chapter3/TheIntegratedApproach}
%\input{Discussions}
%\input{References}
\clearpage
\addcontentsline{toc}{chapter}{References}
\bibliographystyle{plain}
\bibliography{References}
\end{document}
Code: Select all
@book{TheoryOfElasticity,
Author = {Lev Davidovich Landau and E.M. Lifshitz},
Date-Added = {2011-09-12 14:18:05 +0200},
Date-Modified = {2011-09-12 14:29:02 +0200},
Publisher = {Moscow: Editions Mir},
Title = {Theory of Elasticity},
Volume = {7},
Year = {1967}
}
@book{PetroleumGeophysics,
Author = {Leiv Jacob Gelius and Tor Arne Johansen},
Date-Added = {2011-09-08 12:50:39 +0200},
Date-Modified = {2011-09-08 12:52:18 +0200},
Editor = {First},
Publisher = {UniGEO as},
Title = {Petroleum Geophysics},
Year = {2010}
}
@book{IntroRockPhysics,
Author = {Yves Gu{\'e}guen and Victor Palciauskas},
Date-Added = {2011-09-08 12:39:42 +0200},
Date-Modified = {2011-09-08 12:44:18 +0200},
Publisher = {Princeton University Press},
Title = {Introduction to the Physics of Rocks},
Year = {1994}
}
@book{Pujol,
Author = {Jose Pujol},
Date-Added = {2011-09-08 10:41:54 +0200},
Date-Modified = {2011-09-08 10:48:24 +0200},
Publisher = {Cambridge University Press},
Read = {0},
Title = {Elastic Wave Propagation and Generation in Seismology},
Year = {2003}
}
