0

I have two *.tex files (let say main.tex and subtex.tex). I want to include the "subtex" in the main file. The accepted answer to this question might work but the problem is that the "subtex.tex" use its own class (\documentclass[letterpaper]{myclass.cls}) so I cannot use

\documentclass[main.tex]{subfiles}

in the "subtex". any other method that can help?

  • 1
    you can use the pdfpages package to include one pdf into another but then the included file keeps all its formatting and page numbers etc. usually it is not hard to simply use \input` of the body of the document without its preamble and arrange that you define all the commands necessary in the preamble of the main document, so that you get a consistent formatting across the combined document/ – David Carlisle Nov 13 '20 at 08:01
  • Is there any way they could be made to use the same preamble? If not, pdfpages sounds best. Or \addtocounter{page}{?} and inserting the other document pages by hand -- Oh the good old days! – Donald Arseneau Nov 13 '20 at 09:46

0 Answers0