Page LayoutLetter body text issue for letterhead

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
sengyo
Posts: 2
Joined: Mon May 25, 2009 3:54 am

Letter body text issue for letterhead

Post by sengyo »

Hello all.
I am making myself a class file for letters with letterhead.
The main thing is to put the University logo in the top left corner, and my personal details in the top right corner. The rest can be as normal letters.

I tried working from other propositions from the web and found one that was promising.
It used the \fancyhdr package and put the logo and text in the top header. The problem is happening with multiple page letters. The large space taken by the header in the first page, is reproduced in the following pages. I tried all sorts of tweaks with the different page parameters in the package, but there is always something missing.

I finally decided to make the header vanishingly small and leave it empty. I simply put the logo and text in the beginning of the letter body (before the \opening statement.) The code looks like so:

\begin{document}

\begin{letter}

\begin{tabular}{@{}l@{} @{}r@{}}
\begin{minipage}[s]{0.5\textwidth}
\includegraphics[scale=0.6]{logo.pdf}\\
\scriptsize{Département de génie mécanique\\ 2500 boul. de l'Université \\ Sherbrooke, QC, Canada, J1K 2R1\\}
\end{minipage}
&
\begin{minipage}[s]{0.5\textwidth}
\raggedleft{\footnotesize\textbf{Sengyo.}}\\
\end{minipage}
\end{tabular}

\opening{Dear Sir,}

This works fine for multiple page letters, except that when the letter is very short, the logo and personal text, as part of the letter body, is centered vertically on the page, moving it towards the center. My question is as follows:

Is there a way to keep the letter format from centering the body text vertically on the page for very short letters? I basically want to ensure that the logo and personal text remain at the very top of the page.

Thank you for any help or advice.

Cheers!

Sengyo

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Letter body text issue for letterhead

Post by localghost »

sengyo wrote:[...] I am making myself a class file for letters with letterhead. [...]
I recommend to take a look at the scrlttr2 class from the KOMA Script bundle. It is very flexible and easy to customize, especially regarding the head of a letter. The manual describes in detail how to get things work.


Best regards
Thorsten
Post Reply