GeneralProblem with bibliography generation

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
leviseric
Posts: 2
Joined: Thu Jan 22, 2009 7:38 pm

Problem with bibliography generation

Post by leviseric »

when trying to generate the bibliography (using the \bibliography{} command) i get the full list of references however no numbering ahead of them. i have been trying to sort this out for some time now. for citeing i am using natbib and the \citet and citep commands. the document is compiled on texnic centre. I am attaching the first lines of my document

thank you in advance

E

Code: Select all

% Document class
\documentclass[11pt,oneside,openleft,a4paper]{report}

% Packages
\usepackage{epsfig}
\usepackage{subfigure}
\usepackage[hang]{caption}
\usepackage{chicnarm}
\usepackage{calc}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{color}
\usepackage[numbers,sort&compress,nonamebreak]{natbib}

\usepackage{indentfirst}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{ar}
\usepackage{hyperref}
\usepackage{hypernat}

%Setup Hyperref
\hypersetup{backref,colorlinks=true,linkcolor={black},citecolor={black}}
% Bibliography Style
\bibliographystyle{unsrtnat}

% Graphics path
\graphicspath{{title/}{Introduction/}{BibliographyRev/}{Feasibility/}{Parametric_Study/}{Appendix/}}



% The document
\begin{document}

% Title page etc ...

\include{title/title}
\addcontentsline{toc}{chapter}{Abstract}
\include{abstract/abstract}
%\include{acknowledgements/acknowledgements}
%\include{dedication/dedictaion}
%\include{nomenclature/nomenclature}

% Table of contents etc ...

\addcontentsline{toc}{chapter}{Table of Contents}
\tableofcontents
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables

% The chapters

\include{Introduction/Introduction}
\include{BibliographyRev/BibliographyRev}
\include{Feasibility/Feasibility}
\include{Parametric_Study/Parametric_Study}

\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{mybib}

\appendix
\include{Appendix/Appendix}


\end{document}

Recommended reading 2024:

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

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

marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

Problem with bibliography generation

Post by marco_d »

Hello,

next time it is helpfully when you are making a minimal example. You are using natbib with the option numbers. That is the numerical referencing of this package. The difference are listed here.

In your case I would use the following code with the package tocbibind:

Code: Select all

% Document class
\documentclass[english,11pt,oneside,a4paper]{report}
\usepackage{babel}
\usepackage[sort&compress,nonamebreak]{natbib}
\usepackage{tocbibind}
\usepackage{hyperref}
\usepackage{hypernat}
%Setup Hyperref
\hypersetup{colorlinks=true,linkcolor={black},citecolor={black}}
% Bibliography Style

\begin{filecontents}{mybib.bib}
@book{test1,
author={Harry Potter},
title={enough},
year={2008}
}
@book{test2,
author={Leona Lewis},
title={enough},
year={2008}
}
@book{test3,
author={Jerry Lewis},
title={enough},
year={2008}
}
\end{filecontents}

\begin{document}
\tableofcontents
\chapter{foo}
TExt

\citet{test1}

\citep{test2}

\cite{test3}
\bibliographystyle{unsrtnat}
\bibliography{mybib}
\end{document}
Run with TexnicCenter four times.

regards
Marco
i am German. I can not use difficult words. :-)
leviseric
Posts: 2
Joined: Thu Jan 22, 2009 7:38 pm

Re: Problem with bibliography generation

Post by leviseric »

thank you for the help

i managed to figure it out. i was using two competing biblio packages without knowing.

regards

Errikos
Post Reply