I want to have the college logo at the center (in the header) followed by the college name, then a horizontal line , then the letter content.
But My Logo is half cut:
Here is the code:
\documentclass{letter}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{lipsum}
\geometry{headheight = 275pt}
\fancypagestyle{firstpage}{\fancyhf{}\fancyhead[R]{\includegraphics[scale=0.70, keepaspectratio=true]{pecemblem.pdf}}}
\fancypagestyle{plain}{\fancyhf{}\fancyhead[L]{\includegraphics[height=0.5in, keepaspectratio=true]{pecemblem.pdf}}}
\pagestyle{plain}
\begin{document}%
\begin{letter}{}%
\opening{Dear Some Name,}
\lipsum[1-10]
\end{letter}%
\end{document}%
The output I get is:
Best Answer
If you want the logo to be centered you have to use
\fancyhead[C]
. If you substituteC
withR
you'll have it at the right and withL
you'll have it at the left.Also, play a little with
headheight
and with thescale
options in\includegraphics
to obtain the optimal result.For example, with the following MWE and
pecemblem.png
downloaded from http://www.pec.edu/images/pecemblem.pngI get