[Tex/LaTex] BibTex and \includeonly command

bibtex

I have a document of this form

....

\includeonly{main}

\begin{document} 

   \include{main}

   \include{supp}

   \bibliographystyle{plain}
   \bibliography{bibfile}

\end{document}

I need LaTeX to read supp.aux for cross-referencing, but do not want BibTex to read supp.aux. In other words, I do not want to list .bib entries used in supp.tex to be included in the current document. Is there a way to direct BibTex to only look at main.aux and not supp.aux?

Best Answer

If you compile your full document (no \includeonly) and ensure that all the cross references are OK, then you can reistate the \includeonly and LaTeX will load also the .aux files corresponding to the not included files.

Related Question