I feel desperate and about to give up LaTeX. I am new to it but I have done well until I reach the bibliography. Now I am stuck for days and I have a deadline. I am sure I have a problem with my codes, but I keep getting different error messages. Once it worked until the \cite{author} but worked on some and not the others. Now nothing works.
\documentclass[10pt, a4paper]{article}
\bibliographystyle{IEEEtr}
\usepackage[margin=1in,left=1.5in, includefoot]{geometry}
\usepackage{amsmath}
\usepackage{authblk}
\usepackage[english]{babel}
\usepackage{indentfirst}
\usepackage{parskip}
\setlength\parindent{24pt}
\setlength{\parskip}{\baselineskip}
\renewcommand{\baselinestretch}{1.08}
\usepackage{wrapfig}
\usepackage{caption}
\usepackage{placeins}
\usepackage{natbib}
\setcitestyle{numbers}
\usepackage{filecontents}
%Graphics preamble
\usepackage{graphicx}
\usepackage{float}
\setlength{\textfloatsep}{5pt}
%header and footer stuff
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[R]{ \thepage\ }
%
\begin{document}
\begin{titlepage}
\centering
\huge{\bfseries mettle}\\
\vspace{1 cm}
\large\ Author 1, Author 2, Author 3\\
\vspace{1 cm}
\textsc{mysubtitle}\\
\end{titlepage}
% Abstract page
\pagenumbering{roman}
\section*{Abstract}\label{sec:abs}
\addcontentsline{toc}{section}{\numberline{}Abstract}
\cleardoublepage
% table of content page
\tableofcontents
\thispagestyle{empty}
\cleardoublepage
%list of figures
\listoffigures
\addcontentsline{toc}{section}{List of Figures}
\cleardoublepage
% Main document
\pagenumbering{arabic}
\setcounter{page}{1}
\section{Introduction}\label{sec:intro}
TEXT
\section{heading}
\section{conclusion}
\newpage
\section{References}
\bibliography{references}{}
\cleardoublepage
\end{document}
\citeor\nocitecommands. If the issue is more than this, please add in some\cites and update your code in the question along with the associatedbibentry. If you are getting errors, please either provide code (as a minimal working example with bibliography (MWEB)) which we can compile locally to replicate the errors or provide the text of the error. – Dai Bowen Feb 20 '17 at 10:48pdflatex,bibtex, and then againpdflatextwice? Please give us an example of your.bibfile, I tried with an example.bibfile and you code works. – CarLaTeX Feb 20 '17 at 11:08references.bibfile? Could you add how they are defined in it? – CarLaTeX Feb 20 '17 at 12:09[?]then the key is likely mistyped either in the main document or in thebibfile (or the entry is missing altogether from thebibfile) possibly from your second bibtex warning you gave earlier, you have(Bodenheimerin thetexfile where you mean to haveBodenheimer. Otherwise it sounds like this is the same as Question mark or bold citation key instead of citation number - it's always necessary to do thepdflatex bibtex pdflatex pdflatexchain to get references to show up properly. – Dai Bowen Feb 20 '17 at 13:27IEEEtrbibliography style? I ask because theIEEEtrstyle is more than 25 years old and is not programmed fields named, say,urlanddate-added. At the very least, you should try using one of the newer IEEE bibliography styles. – Mico Feb 20 '17 at 13:42