I have a problem with compiling a subfile with bibliography entries in it. My setup is a follows:
My directory structure is:
main.tex/chap/chapter1/subfile.tex
Now, my main.tex has the following preamble:
\documentclass[12pt,a4paper,twoside,final]{memoir}
\usepackage{subfiles}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[
backend=biber,
style=authoryear-icomp,
sorting=nyt
]{biblatex}
\addbibresource{bibliography.bib}
\begin{document}
\subfile{.chap/chapter1/subfile}
\printbibliography
\end{document}
Now, in my subfile.tex i have the following structure:
\documentclass[../../main.tex]{subfiles}
\begin{document}
a cited book \cite{Aigner2014}.
\printbibliography
\end{document}
When I compile my main file it works all fine and displays the references correctly, but when I try to compile the subfile, i get the following error message from Biber:
"INFO - This is Biber 1.9 INFO - Logfile is 'test.blg' INFO - Reading 'test.bcf' INFO - Found 1 citekey in bib section 0 INFO - Processing section 0 INFO - Looking for bibtex format file 'bibliography.bib' for section 0 ERROR - Cannot find 'bibliography.bib'! INFO - ERRORS: 1"
I can't seem to figure out why this is not working, since everything is apparently as it should be. I tried the solution provided here, but it still doesn't work. I don't know if it is just a problem with outdated versions of biblatex and biber or whether it is something else. I am really confused, since none of the solutions I have looked up here seem to work for me. I am working on windows 7, with my editor being Texmaker 4.5 and running Texlive 2014.