Trying to place an image (scan of one’s signature) between the closing and the name in a letter will unfortunately not result in a nice formatting. Latex automtically adds some space for a manual signature between the closing and the printed name. This space will not automatically disappear if you place your signature as an image there. Neither will it disappear if you place the image directly in the \signature declaration. But, as you might have guessed, there is a work-around:
Remove the \signature{Your name}
declaration (see this sample letter) and just replace the \closing{Yours Faithfully,}
by:
% Preamble \usepackage{graphicx} % Main text \closing{Yours faithfully,\\ \fromsig{\includegraphics[scale=1]{signature.jpg}} \\ \fromname{Your name} }
For more information, consider the letter package documentation.
Anil Duggirala
Thanks for that, the link for the sample letter doensnt include a graphics signature though.
Hugh
This saved me.
Thanks a lot.
CB
Be sure to include
\usepackage{graphicx}
in the beginning of your document.chami
Thanks, This really helped
hqube
Thanks. I’ve been looking for this. This one of the last reasons why I’m not using tex for most of my document needs. JPG/PNG didn’t work for me though. I used EPS instead.
I would just like to add; To ovelap the signature image with the signature name, add a negative \vspace before \fromname.
noname
“This space will not automatically disappear … “: it does if you set the parameter in [ ]: \closing{Sincerely, \\[0.0in] \includegraphics ….. name}.
t
noname’s comment worked for me.
I was using \signature, but the extra space after \closing was annoying.
Including an image of your signature in a LaTeXed letter. « AmShazam.
[…] coup of the morning: figuring out how to include a .jpg of my signature in my LaTeXed cover letter. Looks […]
Dennis
Awesome hack, thanks!
unixLover
This worked like a charm!!! thanks a lot!!!
tom
Thanks for the feedback. Appreciate it. Tom.
STK
The above, while simple to implement, will not remove the space allocated for the signature block in the letter. It simply makes it “empty” space and adds the signature elements into the \closing{} text. LaTeX will still put in this space after the \closing{} text when compiling. This will cause an overflow and breaking to a new page prematurely. I found this out the hard way while trying to keep a letter to a single page.
You can change how \closing{} works by including the following in the header:
Then, just add the image to the \signature{} command as:
and things should work fine with no extra (blank) space after the signature block.
tom
Cool, thanks for the code! Best, Tom.
Kartikkumar Paghadal
Thanks….very helpful
ice
Thanks, STK!
_pascal_
you can use this to set the space between \closing and \signature
\@setplength{sigbeforevskip}{0pt}
tom
Cool, thanks! Tom
Narph
Do I need a package for \fromname? It is giving a undefined control sequence error.
tom
Hi Narph,
This only works when using the LaTeX standard document class
letter
. Below is a complete minimal example.Hope this help,
Tom
nekky
Thanks guys, it worked absolutely.
Mat Hunt
The above throws up error after error. To begin with \fromname and \fromsig are undefined commands. then it complains that there is no line to end.
tom
Dear Mat,
Thanks for your comment. The code works on my system, although I should have stated that it requires the graphicx package to be loaded. Could it be that you have a somewhat older TeX version/distribution? Unfortunately, in the letter class change history it doesn’t say when \fromname and \fromsig was added.
Best, Tom
Alexander
I’d reccomend this instead as you don’t have to do a weird hack with closing:
“`
\signature{\includegraphics[scale=0.1]{img.png}\\Your name}
“`