
Ich verwende die letter
Dokumentklasse, um ein Anschreiben zu verfassen, und möchte die encl
Zeile verwenden. Ich habe den folgenden Testfall:
\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}
was zu folgendem Ergebnis führt:
Ich möchte die Formatierung der letzten Zeile optimieren, encl: Important document
wahrscheinlich so, dass sie kursiv ist. Wie kann ich den Schriftsatz dieser Zeile, einschließlich der encl:
Komponente, steuern?
Antwort1
Der Name - der in der Ausgabe \encl
angezeigt wird - wird in festgelegt . Sie können die Formatierung mit etwas wie\encl
\enclname
\renewcommand{\enclname}{\itshape encl}
in Ihrer Präambel, zusammen mit
\encl{\itshape Important document}
in Ihrem Dokumentcode:
\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}
Es besteht jedoch wirklich keine Notwendigkeit für dieletter
Klasse, da Sie mit dasselbe Ergebnis erzielen können article
und die Ausgabe ähnlich aussieht:
\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}
Mit diesem article
Ansatz haben Sie freien Spielraum, die Inhaltsformatierung zu ändern.