I have two tex files, tex1 and tex2. I want to include tex1 into tex2. I know \include and \input but those won't allow to include tex files with own formatting. tex1 has a header for example but tex2 doesn't, documentclass and used packages are also different. When I simply copy the content of tex1 into tex2 it will format with my formatting options but I want to keep those of tex1.
Is there an environment that will let me change formatting options inside but won't affect anything that is outside?
combineclass or combining the typeset PDFs for example usingpdfpages. A bit more detail would help work out which route you are after. – Joseph Wright♦ Jan 13 at 14:03pdfpages, as suggested by @JosephWright, also allows to add page numbers and headings from the main document. You need to clear thepagecommandsetting for this. Also, have a closer look to the suggestedcombinepackage. It might be just what you want. – Martin Scharrer♦ Jan 13 at 16:12