# [texhax] inputting a file with a different documentclass

Aaron S. Meurer asmeurer at gmail.com
Thu Dec 9 23:55:49 CET 2010

```Sorry, I just now got around to trying this.  It looks like the pdfpages package mentioned in that page will do what I want (I couldn't figure out how to use the combine package, but it looks like it is too complex for what I need).  But it looks like \includepdf[fitpaper=true]{letter} does the trick.  The only issue is that the letter page is slightly smaller than the other ones, which must be because one of the two documents is not really creating 8.5x11 in. pages like it should be (although Skim reports both as being 8.3x11.7 in., so I don't know).  But it isn't too important.

Also, sorry for asking a FAQ question.  I tried Googleing it first, but perhaps due to the nature of the question, I couldn't find the answer.

Aaron Meurer

On Nov 24, 2010, at 9:46 AM, William Adams wrote:

> On Nov 24, 2010, at 12:41 AM, Aaron S. Meurer wrote:
>
>> Hello.  How do I \input a file with a different document class?  I want to include a letter at the beginning of a document with the article documentclass, but if I \include the file, it just adds the text (like it didn't have the \documentclass{letter}).
>
> This is an FAQ:
>
> http://www.tug.org/texmf-dist/doc/generic/FAQ-en/html/FAQ-multidoc.html
>
> Look at the documentclass combine on CTAN.
>
> William
>
> --