I am having some trouble getting a modular document to work.
This is what my files look like at the moment
./rootdoc.tex
./tex/childdoc.tex
./bib/bibliography.bib
the files look like...
./rootdoc
\documentclass{book}
%some packages
\usepackage{subfiles}
\usepackage[colorlinks=true]{hyperref}
\usepackage[backend=biber,style=numeric]{biblatex}
\addbibresource{bib/bibliography.bib}
\begin{document}
\subfile{tex/childdoc.tex}
\printbibliography[heading=bibintoc]
\end{document}
./tex/childdoc
\documentclass[../rootdoc.tex]{subfiles}
\begin{document}
\chapter{Sample Chapter}
some text that i have to cite\cite{ross}
\printbibliography
\end{document}
When compiling the root document everything works fine and I get the following
But when I compile .\tex.childdoc I get

Any help will be greatly appreciated.
\printbibliographyhere. Subfiles load the preamble, not the end of the document. Beside this, all seem the expected ... – Fran Mar 30 '15 at 18:41\printbibliographyto childdoc.tex... and still get the same output. – Quantifeye Mar 30 '15 at 18:59
– Quantifeye Mar 30 '15 at 19:29Package auxhook Warning: Cannot patch \document, (auxhook) using \AtBeginDocument instead../bib/(i.e., insidetex/), not in../bib/(i.e, besidestex/), I guess... – Fran Mar 30 '15 at 19:56