删除水平线并向求职信模板添加页码

删除水平线并向求职信模板添加页码

我想使用Matthew Miller 的求职信 LaTeX 模板,但由于我的求职信大约有 2 页长,因此我需要执行以下操作:

  1. 删除每页末尾的水平线。
  2. 为每一页添加页码。

任何建议将不胜感激。

答案1

我的建议是创建自己的模板,因为字母类别通常很难按照你的意愿改变。这很容易,而且现在允许切实的灵活性:

在此处输入图片描述

\documentclass{article}
\usepackage{lipsum}\sloppy% Just for this example

\usepackage[margin=1in]{geometry}
\usepackage{fancyhdr,graphicx,array}

\fancyhf{}% Clear header/footer
\renewcommand{\headrulewidth}{1pt}% No header rule
\renewcommand{\footrulewidth}{0pt}% No footer rule
\fancyfoot[C]{\thepage}% Page number in footer centre
\pagestyle{fancy}% Set general page style to fancy

\fancypagestyle{plain}{%
  \fancyhf{}% Clear header/footer
  \renewcommand{\headrulewidth}{0pt}% No header rule
  \renewcommand{\footrulewidth}{0pt}% No footer rule
  \fancyfoot[C]{\thepage}% Page number in footer centre
  \fancyhead[L]{\raisebox{\dimexpr-\height+\baselineskip}[0pt][0pt]{%
    \setlength{\arrayrulewidth}{1pt}%
    \begin{tabular}{@{}p{\textwidth}@{}}
      \includegraphics[height=5\baselineskip]{example-image} \\% Header image
      \hline
    \end{tabular}}}%
}
\AtBeginDocument{\thispagestyle{plain}}% First page has a plain page style

\usepackage{charter}% Use the Charter font for the document text
\setlength{\parindent}{0pt}% Typical of letters
\setlength{\parskip}{.5\baselineskip}
\begin{document}

\vspace*{3\baselineskip}

\hfill
\begin{tabular}{l@{}}
  \today \\[12pt] % Date
  123 Broadway \\ % Address
  City, State 12345 \\
  Phone: (000) 111-1111 \\ % Phone number
  Email: [email protected] % Email address
\end{tabular}

\bigskip

\begin{tabular}{@{}l}
  Mrs. Jane Smith \\ % Addressee of the letter above the to address
  Recruitment Officer \\ % To address
  The Corporation \\
  123 Pleasant Lane \\
  City, State 12345
\end{tabular}

\bigskip

Dear Mrs. Smith, % Greeting text

\bigskip

\lipsum[1-10]

\bigskip

\begin{tabular}{@{}l}
  Sincerely yours, \\[5\normalbaselineskip]% Closing text
  John Smith
\end{tabular}

\end{document}

相关内容