BibTeX, biblatex and biberNo Bibliography and Citations shown

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
kenneth86
Posts: 3
Joined: Tue Sep 13, 2011 1:40 pm

No Bibliography and Citations shown

Post by kenneth86 »

    Hi,

    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}
    
    All the names and folder names are correct. And here is the .bib file. I don' believe there are any mistakes in it. Anyway;

    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}
    }
    Thanks for any help :)

    Recommended reading 2024:

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

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

    And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

    Stefan Kottwitz
    Site Admin
    Posts: 10335
    Joined: Mon Mar 10, 2008 9:44 pm

    No Bibliography and Citations shown

    Post by Stefan Kottwitz »

    Hi,

    besides LaTeX, run also BibTeX on the file, for example by typing

    Code: Select all

    bibtex documentname
    on the command line or by using a feature of your editor for that.

    Stefan
    LaTeX.org admin
    kenneth86
    Posts: 3
    Joined: Tue Sep 13, 2011 1:40 pm

    Re: No Bibliography and Citations shown

    Post by kenneth86 »

    Hi Stefan,

    I've seen on several forums they are giving the same advise when users have the same problem as I do. However, I do not find out how to "run bibtex on the file". After I've got the output of my thesis, I can't type anything into the command line. I don't get a error message or anything, just simply a question mark where the citations is supposed to be, and the list of reference is not showing up in the end of my thesis. Is there any specific in my editor I should look for?
    Post Reply