将 EPS 文件添加到由 newlfm 包创建的求职信中

将 EPS 文件添加到由 newlfm 包创建的求职信中

我正在编写 latextemplates.com 提供的使用 newlfm 包的求职信:

http://www.latextemplates.com/template/long-lined-cover-letter

我想在信的末尾添加我的签名(EPS 文件),就在我的名字上方。有人有过这样的经历吗?非常感谢您的帮助。

以下是代码:

\documentclass[10pt,stdletter,dateno,sigleft]{newlfm} % Extra options: 'sigleft' for a left-aligned signature, 'stdletternofrom' to remove the from address, 'letterpaper' for US letter paper - consult the newlfm class manual for more options

%\usepackage{charter} % Use the Charter font for the document text
\usepackage{epstopdf}

\newsavebox{\Luiuc}\sbox{\Luiuc}{\parbox[b]{1.0in}{\vspace{0.5in}
\includegraphics[width=1.5 \linewidth]{mac.eps}}} % Company/institution logo at the top left of the page
\makeletterhead{Uiuc}{\Lheader{\usebox{\Luiuc}}}

\newlfmP{sigsize=0pt} % Slightly decrease the height of the signature field
\newlfmP{addrfromphone} % Print a phone number under the sender's address
\newlfmP{addrfromemail} % Print an email address under the sender's address
\PhrPhone{Phone} % Customize the "Telephone" text
\PhrEmail{Email} % Customize the "E-mail" text

\lthUiuc % Print the company/institution logo

%----------------------------------------------------------------------------------------
%   YOUR NAME AND CONTACT INFORMATION
%----------------------------------------------------------------------------------------

\namefrom{My name} % Name

\addrfrom{ 
\today\\[12pt] % Date
address
}

\phonefrom{(345345} % Phone number

\emailfrom{[email protected]} % Email address

%----------------------------------------------------------------------------------------
%   ADDRESSEE AND GREETING/CLOSING
%----------------------------------------------------------------------------------------

\greetto{Dear Mrs. Smith,} % Greeting text
\closeline{Sincerely yours, \\\includegraphics[width=0.5 \linewidth]{sign.eps}}

\nameto{Mrs. Jane Smith} % Addressee of the letter above the to address

\addrto{
Recruitment Officer \\ % To address
The Corporation \\
123 Pleasant Lane \\
City, State 12345
}

%----------------------------------------------------------------------------------------

\begin{document}
\begin{newlfm}

%   LETTER CONTENT

\end{newlfm}
\end{document}

答案1

其实这不是由图形引起的;问题在于 的参数中的换行符\closeline。只需使用 代替\newline即可\\解决问题。

\documentclass{newlfm}
\begin{document}
\closeline{Sincerely yours, \newline 123 } % but not \\ in place of \newline
\begin{newlfm}
ABC
\end{newlfm}
\end{document}

相关内容