It is not quite clear to me what alignment you are looking for. But I have a couple of suggestions to achieve what you want in an easier way.
Use the package geometry to handle the paper dimensions and offsets.
Your existing code will not create a letterhead if there is more than one page in the document. Is it what you want?
If you want the information inserted for each page, use fancyhdr to handle left, right and center sections with independent alignments for both header and footer.
Take a look at the code below to get an idea:
Code: Select all
\documentclass[12pt]{letter}
\usepackage{geometry,graphicx,fancyhdr,lastpage}
\usepackage[svgnames,x11names]{xcolor}
\geometry{a4paper,
headheight=1.1in,
includeheadfoot=false,
hmargin={1in,.8in},
vmargin={1.7in,1.5in},
footskip=.8in,
centering
}
% Name goes here
\lhead{\sffamily %
{\large\bfseries Ty Coon}\\ %
\qquad{\slshape President}\\[1\baselineskip]}
% logo of the institution
\chead{%
\includegraphics[scale=.25]{example-image-a}
}
% Dept. affiliation
\rhead{\sffamily%
{\bfseries\large Whatever Section}\\ %
Some Company\\ %
State, Nation zip\\
}
\lfoot{%
\small Tel : 123 456 7980}
\cfoot[CO,CE]{\small %
\arabic{page}/\pageref{LastPage}}
\rfoot{\small %
Email: {\ttfamily abc@xyz.com}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrule}{{%
\hrule width\headwidth height\footrulewidth \vskip5pt}}
\renewcommand{\footrulewidth}{0.1pt}
\pagestyle{fancy}
\begin{document}
Hi,
Welcome to the wonderful world of \LaTeXe.
\end{document}