
Estou usando a letter
documentclass para escrever uma carta de apresentação e quero usar a encl
linha. Eu tenho o seguinte caso de teste:
\documentclass{letter}
\signature{First Last}
\address{Source address}
\begin{document}
\begin{letter}{Destination address}
\opening{To Whom it May Concern:}
This is the body of the letter.
\closing{Sincerely,}
\encl{Important document}
\end{letter}
\end{document}
que produz o seguinte:
Gostaria de ajustar a formatação da última linha, encl: Important document
provavelmente para ficar em itálico. Como posso controlar a composição dessa linha, incluindo o encl:
componente?
Responder1
O \encl
nome - o que você vê \encl
na saída - é definido em \enclname
. Você pode alterar sua formatação com algo como
\renewcommand{\enclname}{\itshape encl}
no seu preâmbulo, juntamente com
\encl{\itshape Important document}
dentro do código do seu documento:
\documentclass{letter}
\signature{First Last}
\address{Source address}
\renewcommand{\enclname}{\itshape encl}
\begin{document}
\begin{letter}{Destination address}
\opening{To Whom it May Concern:}
This is the body of the letter.
\closing{Sincerely,}
\encl{\itshape Important document}
\end{letter}
\end{document}
No entanto, não há realmente necessidade deletter
aula, já que você pode obter a mesma saída usando article
e fornece uma saída de aparência semelhante:
\documentclass{article}
\pagestyle{empty}
\setlength{\parindent}{0pt}
\begin{document}
\vspace*{50pt}% Leave some space from the top of the document
\hfill
\begin{tabular}{l @{}}
Source addres \\
\\
\today
\end{tabular}
\bigskip
Destination address
\bigskip
To Whom it May Concern:
\medskip
This is the body of the letter.
\bigskip
\hspace{.5\linewidth}%
\begin{tabular}{ l }
Sincerely, \\
\\[2\bigskipamount]
First Last
\end{tabular}
\bigskip
{\itshape encl: Important document}
\end{document}
Com a article
abordagem, você tem liberdade para alterar a formatação do conteúdo.