Ändern der Einfassungszeile in Briefen in Kursivschrift

Ändern der Einfassungszeile in Briefen in Kursivschrift

Ich verwende die letterDokumentklasse, um ein Anschreiben zu verfassen, und möchte die enclZeile 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:

Ausgabe des Testfalls

Ich möchte die Formatierung der letzten Zeile optimieren, encl: Important documentwahrscheinlich 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 \enclangezeigt 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:

Bildbeschreibung hier eingeben

\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 dieletterKlasse, da Sie mit dasselbe Ergebnis erzielen können articleund 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 articleAnsatz haben Sie freien Spielraum, die Inhaltsformatierung zu ändern.

verwandte Informationen