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.
\printbibliography
here. Subfiles load the preamble, not the end of the document. Beside this, all seem the expected ...\printbibliography
to childdoc.tex... and still get the same output.Package auxhook Warning: Cannot patch \document, (auxhook) using \AtBeginDocument instead.
./bib/
(i.e., insidetex/
), not in../bib/
(i.e, besidestex/
), I guess...