
Estoy usando la letter
clase de documento para escribir una carta de presentación y quiero usar la encl
línea. Tengo el siguiente caso de prueba:
\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}
lo que produce lo siguiente:
Me gustaría modificar el formato de la última línea, encl: Important document
probablemente para que esté en cursiva. ¿Cómo puedo controlar la composición tipográfica de esa línea, incluido el encl:
componente?
Respuesta1
El \encl
nombre (lo que ve \encl
en el resultado) se establece dentro de \enclname
. Puedes cambiar su formato con algo como
\renewcommand{\enclname}{\itshape encl}
en su preámbulo, junto con
\encl{\itshape Important document}
dentro del código de su 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}
Sin embargo, realmente no hay necesidad deletter
clase, ya que puedes lograr el mismo resultado usando article
, y proporciona un resultado de aspecto similar:
\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}
Con este article
enfoque, tienes libertad para cambiar el formato del contenido.