Document Classes\input letter

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
vaalsta
Posts: 9
Joined: Tue Jul 20, 2010 9:59 am

\input letter

Post by vaalsta »

Is it possible to use \input{filename} when you want filename.tex to be treated as as different document class? Specifically, what I want is to include a letter as a page in my report.
Last edited by vaalsta on Fri Sep 03, 2010 8:06 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\input letter

Post by localghost »

Compile the letter document separately to PDF and include it with pdfpages into your report. Note that this would only work when compiling directly with PDFLaTeX.


Best regards and welcome to the board
Thorsten
vaalsta
Posts: 9
Joined: Tue Jul 20, 2010 9:59 am

Re: \input letter

Post by vaalsta »

Ok thanks. I did think about doing it that way, just wondered if it was possible to include it without pre-compiling.

Cheers.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\input letter

Post by localghost »

You could try the combine class. But as far as I understand, you would only be able to attach the letter to your report but not free to place it where you want. I guess the manual can tell you more.
Post Reply