I am trying to compile a thesis which has a main.tex file which includes different chapters. I need to have references after each chapter. All the references are in a single .bib file. But when I compile I do not get references list and in place of reference number I get [?].
\documentclass[phd,tocprelim]{CU}
\usepackage[sectionbib]{chapterbib}
%\bibliographystyle{plain}
%\bibliographystyle{IEEEbib}
\begin{document}
\include{chapter1/thesis-chapter1}
\include{chapter2/thesis-chapter2}
\include{chapter3/thesis-chapter3}
\end{document}
The individual chapters are stored in separate sub-folders. An example for chapter 1 is (All_citations is bibliography file):
\chapter{abc}{\label{1}}
\section{Introduction}
...
...
\bibliographystyle{ieeetr}
\bibliography{All_citations}
Thanks
https://tex.stackexchange.com/questions/282779/bibliography-by-chapter
https://tex.stackexchange.com/questions/374546/separate-bibliography-in-each-chapter-and-general-bibliography-in-the-end-with
https://tex.stackexchange.com/questions/229846/different-bibliographies-for-each-chapter-with-shared-references
do you think they can help you?
– Annie Fubini Feb 17 '20 at 14:41\bibliography{../All_citations}--- doesbibtexfind the file or is it complaining? – Rmano Feb 18 '20 at 12:06bibtex thesis-chapter1(or perhapsbibtex chapter1/thesis-chapter1, I have forgotten and didn't check). – Ulrike Fischer Feb 18 '20 at 12:28\bibliographystyle{ieeetr} \bibliography{All_citations}in each chapter. bibtex finds the file, creates a .bib file in the directory but it's not creating individual .bib files in each chapter subfolders, although there are .aux files created for each chapter. If there are individual .bib files created for each chapter, then the problem is solved. – Daffodil Feb 19 '20 at 12:22All_citations.bibin your main folder, and use\bibliography{../All_citations}in the chapters. – Ulrike Fischer Feb 19 '20 at 12:48