I'm currently writing my thesis, and I've got feedback about my bibliography not beeing numbered by order of citation. We have been provided a template to use, but it isn't 100% functional, because I've already changed a few things so it doesn't throw any errors.
The compiler is LuaLaTex. I'm using Mendeley to create the bibliography and importing it automatically to Overleaf using the paid feature.
The template for the bibliography:
\thispagestyle{bibpagestyle} % defined in configDocument.tex
\begingroup
\let\clearpage\relax
\vspace{48pt}
\section{\fontsize{16}{12} \textbf{\headReferences}}
\label{sec:References}
\markboth{{\headReferences}}{{\headReferences}}
\renewcommand\bibname{}
\vspace*{-48pt}
\def\thispagestyle#1{}
\thispagestyle{bib}
\justify
\bibliographystyle{IEEEtran}
\bibliography{bib/references} % filename .bib with the bibliography
\endgroup
I'm expecting to have an output as:
The first citation [1], then later comes the second [2] and so on [3]...
[1] First citation
[2] Second citation
[3] Third citation
I've already been looking for older posts adressing this issue, but doesn't seem to be anything to help.
Some say to use \bibliographystyle{unsrt}, but this changes the style demanded by the organization, wich is no solution.
Also, writing the full .bib by hand is no solution as well, because of the extensive bibliography I currently have...
Any help is appreciated!
\documentclass{}and ending with\end{document}. It means we do not have to build your code (that we may get wrong) and can answer quicker, thanks – JamesT Apr 04 '23 at 13:57\bibliographystyle{IEEEtran}in a basic document I get citations ordered by appearance (note a citation may appear out of place if it is cited in something like\captionor\sectionand then appears in a list of figures or table of contents) . – Dai Bowen Apr 04 '23 at 14:36\captionargument worked!\caption[<Figure title>]{<Figure title> \cite{<Source>}}– Ghost-Spot Apr 05 '23 at 19:56