I would like to compile a main.tex parent document using a custom class as well as child documents using different custom classes. I would like compilation of the parent document to automatically compile and correctly insert the child documents in place. How can I accomplish this without simply inserting a separate PDF file with pdfpages? The standalone and subfiles packages appear to nearly work, but custom classes must also be defined for the child documents.

Parent document:



Child document:


  • What does "appear to nearly work" mean? Can you describe the intended output and post some code of what you've already tried (minimal working example (MWE)) and describe, where it falls short, e.g. what should happen with the page numbers, etc. – DG' Jan 22 '19 at 13:35
  • It's a rather generic question in that I simply would like to include a child document that uses a custom documentclass in a main document. – Adam Erickson Jan 22 '19 at 19:14
  • 2
    The combine class may be of some help. Read the manual (> texdoc combine). – Peter Wilson Jan 22 '19 at 19:46
  • @AdamErickson I fear then, that your question (without problem description and expected output) is simply too generic – DG' Jan 22 '19 at 19:46
  • 1
    In addition to Peter's comment: There are several packages that could probably do what you want. Here is a list on CTAN: ctan.org/topic/subdocs – DG' Jan 22 '19 at 19:51

Your Answer

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

Browse other questions tagged or ask your own question.