I am curently using emacs with ESS, Auxtex, R and knitr. I would like to be able to cite from my bibliography in my child documents.
My master.Rnw looks rougly as follows:
\documentclass{article}
\input{preamble.tex} % with \addbibliography in it
\begin{document}
<<child_1>>=
knit_child("./functions.Rnw")
@
<<child_2>>=
knit_child("./models.Rnw")
@
\end{document}
I can knit the document with Meta-n r
and I can also run Meta-n P
(as described in the first answer here: ESS/AucTeX/Sweave integration.
Afterwards I can use my bibliography, which I indluded in my preambel.tex
for citations in my master.Rnw.
If I try to access my bibliography in a child document with C-c [
I get the error message "no valid bibliography in this document and no default avalailable"
Running Meta-n P
in a child document fails with "Undefined control sequence \section"
Any ideas would be really appreciated.