엔클로저 줄을 이탤릭체로 변경

엔클로저 줄을 이탤릭체로 변경

나는 letter자기 소개서를 작성하기 위해 documentclass를 사용하고 있는데 그 encl줄을 사용하고 싶습니다. 다음과 같은 테스트 케이스가 있습니다.

\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}

이는 다음을 생성합니다.

테스트 케이스 출력

encl: Important document마지막 줄의 형식을 이탤릭체로 조정하고 싶습니다 . 구성 요소를 포함하여 해당 줄의 조판을 어떻게 제어할 수 있나요 encl:?

답변1

출력에 \encl표시되는 이름은 에서 설정됩니다 . 다음과 같은 형식으로 형식을 변경할 수 있습니다.\encl\enclname

\renewcommand{\enclname}{\itshape encl}

당신의 서문에서

\encl{\itshape Important document}

문서 코드 내부:

여기에 이미지 설명을 입력하세요

\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}

그러나 실제로는 그럴 필요가 없습니다.letter수업를 사용하면 동일한 출력을 얻을 수 article있으며 비슷한 모양의 출력을 제공합니다.

\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}

이 접근 방식을 사용하면 article콘텐츠 형식을 자유롭게 변경할 수 있습니다.

관련 정보