信件地址下方的水平线

信件地址下方的水平线

我是这个社区的新人,遇到了一个问题。我正在写一封求职信。我需要一条水平线/线,从页面的左到右延伸到电子邮件地址下方(日期上方)。任何解决方案都将不胜感激。另外,我不确定哪个命令在信件中提供日期。我在序言中找不到任何日期命令。

非常感谢你。

以下是 MWE:

\documentclass[11pt]{letter}
\topmargin = -1.5in    % Make letterhead start about 1 inch from top of page 
\textheight = 10.4in  % text height can be bigger for a longer letter
\oddsidemargin = 0pt % leftmargin is 1 inch
\textwidth = 6.8in   % textwidth of 6.5in leaves 1 inch for right margin
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{lipsum} 
%%%
\address{Money Tota \\
XXXX \\
SH, OH, USA \\
Phone: XXXXX \\
Email: [email protected]} 
\vfill % forces letterhead to top of page


\longindentation = 0pt

\begin{document}

\begin{letter}
{Chair, Search Committee \\

Department of XXX \\
YYYY University \\

Subject: XXXX, Faculty Position} 

\opening{Dear Search Committee Chair,}
Body of the letter first line \\
\vdots   \\
Body of the letter last line \\

\closing{Sincerely \\[3mm]

\fromname{Money Tota}
}


\encl{(i) My CV, (ii) XXX, and (iii) YYY}

\end{letter}
\end{document}

答案1

\today像这样吗?注意,我通过重新定义为来设置出现的日期{4 July 1776}

\documentclass[11pt]{letter}
\topmargin = -1.5in    % Make letterhead start about 1 inch from top of page 
\textheight = 10.4in  % text height can be bigger for a longer letter
\oddsidemargin = 0pt % leftmargin is 1 inch
\textwidth = 6.8in   % textwidth of 6.5in leaves 1 inch for right margin
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{lipsum} 
\usepackage{stackengine}
%%%
\address{Money Tota \\
XXXX \\
SH, OH, USA \\
Phone: XXXXX \\
Email: [email protected]\bclap[5pt]{\makebox[2.5\textwidth]{\hrulefill}}} 
\vfill % forces letterhead to top of page


\longindentation = 0pt
\renewcommand\today{4 July 1776}
\begin{document}

\begin{letter}
{Chair, Search Committee \\

Department of XXX \\
YYYY University \\

Subject: XXXX, Faculty Position} 

\opening{Dear Search Committee Chair,}
Body of the letter first line \\
\vdots   \\
Body of the letter last line \\

\closing{Sincerely \\[3mm]

\fromname{Money Tota}
}


\encl{(i) My CV, (ii) XXX, and (iii) YYY}

\end{letter}
\end{document}

在此处输入图片描述

可以通过可选参数来改变线的位置\bclap

相关内容