I am working on a cover letter provided by latextemplates.com that uses newlfm package:
http://www.latextemplates.com/template/long-lined-cover-letter
I would like to add my signature (as a EPS) file to the end of the letter, just above my name. Has anyone had experience with that? I would appreciate your help.
Here is the code:
\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@trc.com} % 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}
Best Answer
Actually this is not caused by the graphics; the problem is the line break in the argument to
\closeline
. Simply using\newline
in place of\\
resolves the issue.