[Tex/LaTex] Sweave Multiple Chapters

pdftexsweave

I am writing a large Sweave document that will be broken up into many chapters with the final output being a large pdf of everything and an individual pdf for each chapter (with the same page and caption numbering as in the large pdf).

I found some great answers about working with multiple files but haven't seen how to also create the individual chapter pdfs with proper pagination.

Is there a way to do that?

Best Answer

I found this very helpful for a specific chapter layout for a thesis, but there are many other resources for chapters in LaTeX: template and guide for a Maths thesis

A single .tex document collates all the individual chapters, which can be individually generated from .Rnw to .tex and the style file and configuration controls the chapters and pagination.

I don't think this is about Sweave or R, since that is only relevant for converting individual chunks from .Rnw to .tex

Related Question