Document Classesnewlfm | Signature for Letter

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
sjkiss
Posts: 30
Joined: Tue Nov 15, 2011 12:23 am

newlfm | Signature for Letter

Post by sjkiss »

Hi there,

I'm using the following code to create a letter template with a signature in newlfm. I'm getting a series of errors associated with the command \sbox{\Sigx}. The code works in that it generates a letter that looks like I need it to. But it's awkward because it creates several errors of the type ("Missing number, treated as zero") and ("Undefined control sequence <argument> \Sigx")

Code: Select all

\documentclass[stdletternofrom,orderfromtodate]{newlfm}
\newlfmP{headermarginsize=12pt, topmarginskip=24pt, bottommarginskip=24pt, sigtr=test, noLines}

\makesignature{test}{\newsavebox{\Signature}
\sbox{\Sigx}{\includegraphics[scale=0.5]{my_signature_filename.jpg}}
	\closeline{Yours truly,}%
	\signature{\usebox{\Sigx}}%
	\signame{My_name.phg}%
	}



\newsavebox{\logo}%
	\sbox{\logo}{%
	\parbox{2 in}{%
		\includegraphics[scale=0.5,ext=.pdf]
		{logo_filename.jpg}%
		\begin{center}
\makebox[2.2 in][c]{\emph{Founded in 1911}}
\end{center}}%
}%

\makeletterhead{myheader}{\Cheader{\usebox{\logo}}}

\lthmyheader
\nameto{Recipient} \addrto{Address\\}
\Cfooter{My address}

\begin{document}
\begin{newlfm}
Test

\end{newlfm}
 
\end{document}
Can any one provide any suggestions?


Yours,
Simon Kiss
Attachments
Laurier_letterhead.log
(17.44 KiB) Downloaded 318 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

newlfm | Signature for Letter

Post by Stefan Kottwitz »

Hi Simon,

you use \sbox{\Sigx}{...}, so change

Code: Select all

\newsavebox{\Signature}
to:

Code: Select all

\newsavebox{\Sigx}
Furthermore, underscores _ require math mode since they are used for subscripts, \signame{My_name.phg} would not work, probably. Use a name without underscore.

Stefan
LaTeX.org admin
Post Reply