我正在寻找间距问题的解决方案

我正在寻找间距问题的解决方案

我正在寻找求职信模板。然后我找到了一个改编自 Matthew J. Miller 模板的示例。而且,模板如下:

\documentclass[10pt,stdletter,dateno]{newlfm}
\usepackage{kpfonts}
\usepackage{url}

\widowpenalty=1000
\clubpenalty=1000


\namefrom{Matthew J.\ Miller}


\greetto{Dear Sir or Madam,}
\closeline{Sincerely,}
\begin{document}
\begin{newlfm}

I am writing to apply for the position of assistant
professor in Clemson University's Computer Science Department.  I plan to receive my
Ph.D.\ degree from the University of Illinois at
Urbana-Champaign in Summer of 2006.  My adviser is
Prof.\ Nitin H.\ Vaidya, and my general areas of interest
include wireless and sensor network performance and security.
 Having many friends and family in the area, I would be
most enthused to return to the South permanently by accepting
a position at your institution.

In my graduate work, I focus on the design of
energy-efficient protocols and secure key distribution.
More specifically, I have explored various techniques at
multiple layers of the network stack to effectively reduce
the energy consumption of wireless communication.  In security,
my work was the first to propose leveraging channel diversity
for sensor network key distribution.  My research appears in 
the \textit{IEEE Transactions on Mobile Computing} journal as
well as \textit{Infocom 2006} and \textit{ICDCS 2005},
prestigious conferences in the areas of networking and distributed
systems, respectively.

Enclosed is my curriculum vitae (including a list of
publications), contact information for my references, a research
statement, and a teaching statement.  All of my publications and
presentations are available at:

\url{http://www.crhc.uiuc.edu/~mjmille2/publications/}

Please let me know if there are any other materials
or information that will assist you in processing my application.

Thank you for your consideration.  I look forward to
hearing from you.

\end{newlfm}
\end{document}

但是当我运行它时,我发现“the line”和“亲爱的先生或女士”之间存在间隙。 在此处输入图片描述

请帮忙解决一下这个问题。提前谢谢了。

答案1

我会放弃newlfm(自 2009 年起未更新)代替默认article类。newlfm(与其他写信类一样)要求您在序言中指定多个组件,而当您需要它们时,在代码中写出它们会更容易/更好。

这是一个提供实用界面的简单示例:

在此处输入图片描述

\documentclass{article}

\usepackage{tgpagella}
\usepackage[T1]{fontenc}

\usepackage[margin=1in]{geometry}

\usepackage{url}

\setlength{\parindent}{0pt}
\setlength{\parskip}{.25\baselineskip plus 2pt minus 1pt}

\begin{document}

\thispagestyle{empty}

Dear Sir or Madam,

\bigskip

I am writing to apply for the position of assistant
professor in Clemson University's Computer Science 
Department.  I plan to receive my
Ph.D.\ degree from the University of Illinois at
Urbana-Champaign in Summer of 2006.  My adviser is
Prof.\ Nitin H.\ Vaidya, and my general areas of interest
include wireless and sensor network performance and security.
 Having many friends and family in the area, I would be
most enthused to return to the South permanently by accepting
a position at your institution.

In my graduate work, I focus on the design of
energy-efficient protocols and secure key distribution.
More specifically, I have explored various techniques at
multiple layers of the network stack to effectively reduce
the energy consumption of wireless communication.  In security,
my work was the first to propose leveraging channel diversity
for sensor network key distribution.  My research appears in 
the \textit{IEEE Transactions on Mobile Computing} journal as
well as \textit{Infocom 2006} and \textit{ICDCS 2005},
prestigious conferences in the areas of networking and distributed
systems, respectively.

Enclosed is my curriculum vitae (including a list of
publications), contact information for my references, a research
statement, and a teaching statement.  All of my publications and
presentations are available at:

\url{http://www.crhc.uiuc.edu/~mjmille2/publications/}

Please let me know if there are any other materials
or information that will assist you in processing my application.

Thank you for your consideration.  I look forward to
hearing from you.

\bigskip

\mbox{}\hfill Sincerely,

\vspace{7\baselineskip}

\mbox{}\hfill Matthew J.\ Miller

\end{document}

答案2

从 的用户手册newlfm表 6 中,使用\addrfromskipafter{<length>}有效。以下示例显示了 的效果\addrfromskipafter{0pt}

\documentclass[10pt,stdletter,dateno]{newlfm}
\usepackage{kpfonts}
\usepackage{url}

\usepackage{etoolbox}

\makeatletter
% apply patch from https://tex.stackexchange.com/a/395529
\patchcmd{\@zfancyhead}{\fancy@reset}{\f@nch@reset}{}{}
\patchcmd{\@set@em@up}{\f@ncyolh}{\f@nch@olh}{}{}
\patchcmd{\@set@em@up}{\f@ncyolh}{\f@nch@olh}{}{}
\patchcmd{\@set@em@up}{\f@ncyorh}{\f@nch@orh}{}{}
\makeatother


\namefrom{Matthew J.\ Miller}


\greetto{Dear Sir or Madam,}
\closeline{Sincerely,}

% This sets internal length \@addr@fr@sk@a, which is initially 36pt.
\addrfromskipafter{0pt}

\begin{document}
\begin{newlfm}

I am writing to apply for the position of assistant
professor in Clemson University's Computer Science Department.  I plan to receive my
Ph.D.\ degree from the University of Illinois at
Urbana-Champaign in Summer of 2006.  My adviser is
Prof.\ Nitin H.\ Vaidya, and my general areas of interest
include wireless and sensor network performance and security.
 Having many friends and family in the area, I would be
most enthused to return to the South permanently by accepting
a position at your institution.

In my graduate work, I focus on the design of
energy-efficient protocols and secure key distribution.
More specifically, I have explored various techniques at
multiple layers of the network stack to effectively reduce
the energy consumption of wireless communication.  In security,
my work was the first to propose leveraging channel diversity
for sensor network key distribution.  My research appears in 
the \textit{IEEE Transactions on Mobile Computing} journal as
well as \textit{Infocom 2006} and \textit{ICDCS 2005},
prestigious conferences in the areas of networking and distributed
systems, respectively.

Enclosed is my curriculum vitae (including a list of
publications), contact information for my references, a research
statement, and a teaching statement.  All of my publications and
presentations are available at:

\url{http://www.crhc.uiuc.edu/~mjmille2/publications/}

Please let me know if there are any other materials
or information that will assist you in processing my application.

Thank you for your consideration.  I look forward to
hearing from you.

\end{newlfm}
\end{document}

在此处输入图片描述

相关内容