[Tex/LaTex] Having problems in adding Bibliography to a report class in Texmaker

biblatexbibliographiestexmaker

i am writing my master thesis as a report document in Latex using Miketex 2.9 and Texmaker (pdflatex and biblatex) but i was unable to get bibliography added to my report as well unable to get the numbers through \cite{…} in the report. I always get the label name or a question mark. I don't know whats going wrong can anyone please help me were i am doing it wrong. I have \cite{} label name in my Introduction chapter and also i have used the my configure texmaker format as PdfLatex + Bilatex + pdflatex(x2) + pdfView .

\documentclass[12pt,twoside]{report}
\usepackage[utf8]{inputenc}
\usepackage[german,english]{babel}
\usepackage[a4paper,width=150mm,top=35mm,bottom = 35mm]{geometry}
\usepackage{pdfpages}
\usepackage{amsmath}
\usepackage{biblatex}
%\usepackage[backend=bibtex]{biblatex}
\usepackage{natbib}
\usepackage{url}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
\usepackage{rotating, graphicx}
\usepackage{chngcntr}
\usepackage{ragged2e}
\usepackage[toc,page]{appendix}
\usepackage[nottoc]{tocbibind}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\renewcommand*\contentsname{Table of Contents}


\makeatletter
\def\BState{\State\hskip-\ALG@thistlm}
\makeatother

\begin{document}
\pagenumbering{gobble}
\input{Titlepage}
\newpage
\input{Acknowledgement}
\newpage
\input{Abstract}
\newpage
\tableofcontents
\newpage
\pagenumbering{arabic}
\newpage
\input{Introduction}

\input{AugmentedReality}


\addcontentsline{toc}{section}{References}
\bibliographystyle{plain}
\bibliography{References} %this is my .bib file created in the same folder 
                          % were my .tex exists               
\printbibliography


\end{document}

and this is my .bib file

@Article{cluster,
author = {Omar Alkhamisi and Muhammad Mostafa Monowar},
title = {Rise of augmented reality: current and future application areas},
journal = {Computer science and communications},
year = {2013},
OPTvolume = {Vol.1},
OPTnumber = {No.4},
OPTpages = {10},
OPTmonth = {November},
OPTnote = {Online, accessed 05-01-2016},
}

Best Answer

As @Moewe said, either you use natbib or biblatex, but not both. More precisely, if you want to use natbib+bibtexyou need:

\documentclass12pt, twoside]{report}

………

%\usepackage{biblatex}
%\addbibresource{References.bib}
\usepackage{natbib}

\begin{document}

………

\addcontentsline{toc}{section}{References}
\nocite{*}
%\printbibliography
\bibliographystyle{plain}
\bibliography{References}

\end{document}

For biblatex+biber, you'll use:

\documentclass12pt, twoside]{report}

………

\usepackage{biblatex}
\addbibresource{References.bib}
%\usepackage{natbib}

\begin{document}

………

\addcontentsline{toc}{section}{References}
\nocite{*}
\printbibliography
%\bibliographystyle{plain}
%\bibliography{References}

\end{document}

instead. If you want to emulate the \citet and \citep commands from natbib, add the natbib option on loading biblatex. However, there are equivalent commands already defined by biblatex. The default bib compiler for biblatex is biber, but you may choose frontend=bibtex, but you'll loose some functionalities.

Related Question