Is there a way to move the to-address up (or, respectively, the date down) in the »letter« document class? With the to-address on the left and date on the right, I wish for the vertical alignment of the top row of the to-address to be the same as that of the date. Does anyone know a way of doing this?
[Tex/LaTex] Adding/subtracting vertical space in »letter« class
lettersvertical alignment
Related Solutions
Most sites point to the options below for formal letters:
- akletter for German business letters;
- newlfm for US-centric letters, faxes and memos;
- dinbrief for German letters;
- brief in the Dutch ntgclass bundle;
- scrlttr2 in the KOMA-Script bundle.
Here is my .tex code for a formal letter or an invoice based on scrlttr2 (part of KOMA-script). I found the package flexible enough for my needs.
\documentclass[brief]{scrlttr2}
\setkomavar{yourref}{Microspino \\Address XX }
\setkomavar{yourmail}{mail@microspino.com}
\setkomavar{myref}{Your Refn. XXX}
\setkomavar{customer}{Client Name \\ Comapny name}
\setkomavar{invoice}{VAT NUMBER \\ IBAN}
\setkomavar{date}{\today}
\setkomavar{subject}{The very true reason I'm writing this thing}
\begin{document}
\begin{letter}
{FirstNameTO LastNameTO\\
Address. XX\\
00100 Siena, Italy
}
\opening{Your majesty,}
Bla bla bla ....
\closing{All the best,}
\end{letter}
\end{document}
I'd like to add another tex letter source with a logo on the top-left and rulers, based on newlfm
Remember to put a logo.pdf in the same folder of it otherwise it will complain:
\documentclass[10pt,stdletter]{newlfm}
\usepackage{charter}
\widowpenalty=1000
\clubpenalty=1000
\newsavebox{\Luiuc}
\sbox{\Luiuc}{%
\parbox[b]{1.75in}{%
\vspace{0.5in}%
\includegraphics[scale=1.0,ext=.pdf]
{logo.pdf}%
}%
}%
\makeletterhead{Uiuc}{\Lheader{\usebox{\Luiuc}}}
\newlfmP{headermarginskip=20pt}
\newlfmP{sigsize=50pt}
\newlfmP{dateskipafter=20pt}
\newlfmP{addrfromphone}
\newlfmP{addrfromemail}
\PhrPhone{Phone}
\PhrEmail{Email}
\lthUiuc
\namefrom{Daniele Spinosa}
\addrfrom{%
Polyfunctional Laboratory\\
Casal dei Pazzi\\
Siena, SI Italy 53100
}
\phonefrom{000-000-0000}
\emailfrom{nnnn@nnn.edu}
\addrto{%
Faculty of Somewhere\\
Department of Null and Nothing\\
Vacuum University\\
NoLand, XX 0000-0000}
\greetto{To Whom It May Concern,}
\closeline{Sincerely,}
\begin{document}
\begin{newlfm}
Let's talk about Italian developers...\\
Let's assume they are talented...\\
Let's assume they are skilled...\\
Let's assume they have a good government...\\
Ok Let's talk about real things.
\end{newlfm}
\end{document}
The newlfm class or the scrlttr2
class (from the KOMA-Script bundle) could be an option.
EDIT: here's a simple example adapted from Matthew J. Miller's template
\documentclass[10pt,stdletter,dateno]{newlfm}
\usepackage{kpfonts}
\usepackage{url}
\widowpenalty=1000
\clubpenalty=1000
\newlfmP{headermarginskip=20pt}
\newlfmP{sigsize=50pt}
\newlfmP{dateskipafter=20pt}
\newlfmP{addrfromphone}
\newlfmP{addrfromemail}
\PhrPhone{Phone}
\PhrEmail{Email}
\namefrom{Matthew J.\ Miller}
\addrfrom{%
\today\\[10pt]
439 Coordinated Science Laboratory\\
1308 West Main Street\\
Urbana, IL 61801
}
\phonefrom{217-244-6024}
\emailfrom{mjmille2@uiuc.edu}
\addrto{%
Faculty Search Committee\\
Department of Computer Science\\
Clemson University\\
Clemson, SC 29634-0974}
\greetto{To Whom It May Concern,}
\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}
Best Answer
Use the source, Luke. The
letter.cls
file is actually not that hard to read compared toarticle.cls
:-)If you redefine
\opening
you should be able to get what you want:The commented-out part is a switch based on whether a from-address is given. I'm assuming you aren't using a from-address since otherwise you would have specified where you wanted it.