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
Page Layout ⇒ Letter body text issue for letterhead
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Letter body text issue for 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.sengyo wrote:[...] I am making myself a class file for letters with letterhead. [...]
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10