# Bibliography do not show citation numbers

I am writing a thesis report and I am using bibtex to make the bibliography. The problem is that even if I get the references printed in the order as they are cited, I am not able to print the corresponding numbers on my bibliography chapter. I am running latex,bibtex,latex,latex: I do not get any error, latex is printing my bibliography as a chapter at the end of my document and in the text the citations are numbered correctly, but the numbers do not appear next to the corresponding references in the bibliography chapter:

Any suggestions?

A MWE is the following:

.tex

%main file:

\documentclass[11pt,a4paper,oneside]{book}

\usepackage[section] {placeins}
\usepackage[pdftex]{graphicx}
\usepackage[margin=2.45cm]{geometry}
\usepackage{extramarks}
\usepackage{fancyhdr}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markboth{\MakeUppercase{#1}}{}}

\fancyhf{}

%%%%% PACKAGES
\usepackage[sort,square,numbers]{natbib}
\usepackage{apalike}
\usepackage[english]{babel}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{dcolumn}
\usepackage{appendix}
\usepackage[neverdecrease]{paralist}
\usepackage{graphicx}
\usepackage{supertabular}
\usepackage{longtable}
\usepackage[nottoc]{tocbibind}
\usepackage{hyperref}
\usepackage{cleveref}
\providecommand{\e}[1]{\ensuremath{\cdot 10^{#1}}}
\usepackage{tabulary}
\usepackage{chngpage}
\usepackage{pdfpages}
\usepackage[Gray,squaren,thinqspace,thinspace]{SIunits}
\usepackage{eurosym}
\usepackage[figuresright]{rotating}
\usepackage{subfigure}
\usepackage{epstopdf}
\usepackage{float}
\usepackage{fancyvrb}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{textcomp}
\usepackage{mcode}
\usepackage{color}
\usepackage{url}
\newcommand{\hilight}[1]{\colorbox{yellow}{#1}}
\usepackage{appendix}
\usepackage{pdflscape}
\usepackage{bookmark}
\usepackage{rotating}
\usepackage{pdfpages}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{textcomp}
\usepackage{mcode}
\usepackage{xfrac}
\setlength{\parindent}{0pt}
\usepackage{booktabs}
\usepackage{tabularx}
\renewcommand{\aboverulesep}{0pt}
\renewcommand{\belowrulesep}{0pt}
\epstopdfsetup{outdir=./}
\usepackage{xfrac}
\usepackage{longtable}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setcounter{tocdepth}{3}
\begin{document}
%\include{Title}

\frontmatter
%\include{Abstract}
\tableofcontents

\mainmatter
%\include{Introduction}
%\include{Objectives}
%\include{literature}
%\include{Results}
As a minimum, Gundlach \cite{designing-unmanned-aircraft} states that a typical UAV...

\backmatter

\bibliographystyle{ieeetr}
\bibliography{Main}

%\renewcommand{\thesection}{A.\arabic{section}}
\renewcommand{\thepage}{\arabic{chapter}.\arabic{page}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


An here the entry example from my .bib file:

@book{designing-unmanned-aircraft,
title="Designing Unmanned Aircraft Systems: A Comprehensive Approach",
author="Gundlach, Jay",
year="2012",
publisher="American Institute of Aeronautics and Astronautics",
}


Hope you can help me!

• I am not really sure this is what you meant, but I think now it should work. – Michal Jan 20 '15 at 16:25
• @Mico Yeah, i noticed that later on. You posted your answer about two minutes before i would have posted mine ;-) – Johannes_B Jan 20 '15 at 20:41

The preamble of your document loads not one but two LaTeX citation management packages: natbib and apalike. You should load only one of them, but not both. Since you wish to create numeric-style citation call-outs, you should not be loading the apalike package: it is (a) meant to be used together with the apalike bibliography style and (b) designed to create authoryear-style citation callouts. Clearly, that's not the case here.

By the way, the apalike citation management package and the apalike bibliography style date back to the late 1980s. As such, they no longer represent up-to-date APA formatting requirements for bibliographies and citation call-outs. If your bibliography and the citation call-outs are supposed to conform to current (i.e., 6th ed.) APA guidelines, you should use the apacite package and the apacite bibliography style.

Finally, you should really make an effort to clean up and simplify your preamble. Ten [10!] packages are loaded twice (two of them with conflicting options...), while other packages shouldn't be loaded to begin with (e.g., color if xcolor is loaded). Still other packages, e.g, subfigure, are just plain obsolete and deprecated -- and hence shouldn't be loaded either. If your preamble were lean and clean, I'm confident you would have noticed on your own that loading apalike (in addition to natbib) was the cause of the difficulty.

• thank you very much, indeed I used a old template I had and I never made the effort to clean. Now it works perfectly :) – Michal Jan 20 '15 at 21:35