Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a way to put addrfrom and addrto on the same vertical height when one of them is left-justified and another is aligned to the right? This is basically the layout I'm trying to achieve:

--------------------------
[\addrto]      [\addrfrom]

...

[\greetto]
[...msg...]
--------------------------
share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You can use the \addrto macro to manually place both addresses using \parboxes:

\documentclass[stdletter,addrtoleft]{newlfm}

\nameto{George Bush} 
\namefrom{Paul Thompson} 

\newlength\lento
\newlength\lenfrom
\setlength\lento{2in}% width of the box for \addrto
\setlength\lenfrom{2in}% width of the box for \addrfrom

\addrto{\parbox[t]{\lento}{The White House \\ Washington, DC}%
  \hspace{\dimexpr\textwidth-\lento-\lenfrom}%
  \parbox[t]{\lenfrom}{\raggedleft The Pink House in Avon \\ Belleville, IL}}

\greetto{Dear Mr. Bush,}

\begin{document}

\closeline{Sincerely yours,} 

\begin{newlfm}
How are the azaleas?
\end{newlfm}

\end{document}

enter image description here

share|improve this answer
    
Thanks! And pardon me for the huge delay. I couldn't figure out the letrinfo.tex error and thought that my texlive installation was broken. \o/ –  plaes Sep 20 '11 at 9:03
    
In order to suppress some of the whitespace it is possible to add \vspace{-1cm} inside the \addrto. –  Rovanion Jul 16 '13 at 12:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.