I have a collection of articles written in latex, and I would like to "merge" them into a larger thesis document, in which each article will be a chapter. I have been looking at include and input, which are great if you start with the meta-document in mind. However in my articles I have sometimes a bit exotic dependencies, such as dot2texi, and using the naive approach fails rather abysmally with all kinds of broken paths.

So I was wondering, do you recommend any "best practices" for merging non-trivial documents -- which packages to look at, or to avoid at all cost, etc.



While there are packages to combine documents, they all impose at least some requirements on the nature of the included items. Thus the most general way to deal with the problem is to typeset the parts separately then combine the resulting PDF files, probably using pdfpages. To get page numbering correct, the usual approach is to suppress it in the individual PDF files and add page numbers at the combination stage. To give more detail, we'll need to have more information on the files to be combined: for example, cross-referencing may be required, which can be done using xr (see for example Cross-referencing between files and equation counters).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.