I'm trying to write my thesis using Latex, but I keep getting an undefined citations warning.

I've divided the thesis into chapters (each in their own folder) and each of the chapters into the sections that make it up for example, the folder "Chapter 4" contains a chapter4.tex file that is a chapter class document and uses input to collate all the sections, which are introduction, methods, results and discussion. None of the sections have a document class. There is then the main.tex file which collates all the chapters and creates the bibliography (I want one bibliography for all chapters).

The references are stored in a number of .bib files that I imported from Mendeley. All these .bib files are stored in the root directory So when I call the bibliography function in main.tex I use multiple input arguments as such:


When I use \cite in one of my sections (intro, methods etc.) it allows for autocomplete/search to the reference I want, but when I compile it says it is undefined. Figures (which are in their own folder) work fine, just not the references.

Does anyone have any idea why this might be happening? I'm new to latex so apologies if the answer is obvious but I can't find anything about this particular problem elsewhere either.

Sorry that this question is so long. I couldn't think of a way to write an example code so I just have to describe it.



closed as unclear what you're asking by Johannes_B, TeXnician, gernot, Mensch, Zarko Apr 9 '17 at 9:28

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Sorry for my stupid question, but are you compiling main.tex or chapterX.tex directly? – CarLaTeX Jun 16 '16 at 6:55
  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Dai Bowen Dec 1 '16 at 23:10
  • I have the exact same issue... It looks like it's some kind of cache that needs to be cleared? Did you find a solution for this? Oh Nevermind! the solution is to clear the cache: sharelatex.com/learn/Kb/Clearing_the_cache – Felipe Almeida Jan 15 '17 at 2:19
  • @FelipeAlmeida I am not sure, the question is very unclear. But if i understand the OP right, there are several standalone documents involved, not having a bibliography is quite expected. – Johannes_B Apr 9 '17 at 8:12

Browse other questions tagged or ask your own question.