Suppose I am writing a novel using the book class, in which a correspondence from the hero to the heroine needs to be embeded, like this:
Dear Marie,
I miss you very much, I'll come home in a week.
Yours,
Joseph
How can this be done?
Suppose I am writing a novel using the book class, in which a correspondence from the hero to the heroine needs to be embeded, like this:
Dear Marie,
I miss you very much, I'll come home in a week.
Yours,
Joseph
How can this be done?
For some letter that easy, you can also stick to the quote environment as a base:
\documentclass{article}
%xetex specific ---- replace by any other font setting command depending on your engine
\usepackage{fontspec}
\newfontfamily{\letterfont}{Comic Sans MS}
\usepackage{lipsum}
\usepackage{environ}
\NewEnviron{letter}{%
\begin{quote}
\fbox{%
\begin{minipage}{\linewidth}
\setlength{\parskip}{\baselineskip}
\letterfont
\BODY
\end{minipage}
}
\end{quote}
}
\begin{document}
\lipsum[1-2]
\begin{letter}
Dear Marie,
I miss you very much, I'll come home in a week.
Yours,
Joseph
\end{letter}
\lipsum[3-4]
\end{document}

PS: I used XeLaTeX and the fontspec package for font setting. But you can replace my definition of \letterfont with any other font setting command, that you can use with your engine.
You can write your letter with, for example, the letter class :
\documentclass{letter}
\signature{Your name}
\address{Street \\ City \\ Country}
\begin{document}
\begin{letter}{Company name \\ Street\\ City\\ Country}
\opening{Dear Sir or Madam:}
\dots
\closing{Yours Faithfully,}
\ps{P.S. Here goes your ps.}
\encl{Enclosures.}
\end{letter}
\end{document}
(example from texblog.org)
and then include the pdf outpout in your main document using the pdfpages package :
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-,
pagecommand=\thispagestyle{fancy}
%if you want to have headers and footers in the included pdf pages
]{my_lettre.pdf}
\end{document}
Assuming you are using pdfTeX, there's a decently easy (although roundabout) way of doing this using \includegraphics and pdfcrop (standard with at least TeX Live)
\documentclass{letter}
\begin{document}
\signature{Joseph}
\begin{letter}{}
\opening{Dear Marie,}
I miss you very much, I'll come home in a week.
\closing{Yours,}
\end{letter}
\end{document}
and then pdfcrop letter.pdf, which produces letter-crop.pdf which you can include thusly
\documentclass{book}
\usepackage{graphicx,mwe}
\begin{document}
\lipsum[1]
\begin{center}
\includegraphics[width=.9\textwidth]{letter-crop}
\end{center}
\lipsum[2]
\end{document}
for the output

add commentfunction. – jub0bs Apr 27 '13 at 09:50letterclass (see here) or the more advancedscrlettrclass. – jub0bs Apr 27 '13 at 09:51