I have two tex documents: doc1.tex and doc2.tex. Both have their own reference lists and bibliographies, for example doc1 reads:
\documentclass{article}
\begin{document}
See the analysis in \cite{ref1}.
\bibliographystyle{unsrt}
\bibliography{bibliography}
\end{document}
and similarly for doc2. When compiled, doc1.pdf and doc2.pdf have their own reference lists, which I call (R1) and (R2).
I would like to achieve the following:
- remove R2 at the end of doc2.pdf
- insert the entries that were in R2, and merge them with R1, in such a way that doc1.pdf contains a merged reference list (R12) which contains both the entries of R1 and R2.
- The citation numbers in the main text of doc2 should still refer properly to those of R12.
Do you know how to do this??? Thank you!


