Page Layoutletter | Header with Logo

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
sjkiss
Posts: 30
Joined: Tue Nov 15, 2011 12:23 am

letter | Header with Logo

Post by sjkiss »

Hi,

I'm trying to create a header for the letter class. For some reason, the return address is bleeding into the header. How do I prevent this? PDF output and code are attached.


Thank you for your time!
Simon

Code: Select all

\documentclass{letter}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\chead{\includegraphics[scale=0.4]{/Users/simon/Documents/Laurier_Administration/Letterhead/wlu_logo.jpg}\\\emph{Founded in 1911}}
\cfoot{}
\signature{Simon J. Kiss}
\address{Simon J. Kiss  \\ 73 George Street \\ Brantford, ON \\N3T2Y3}
\begin{document}
\begin{letter}{Recipient's \\ Address}
\opening{To Whom It May Concern:}
\thispagestyle{fancy}
Text Text Text
\closing{Yours truly,}

\end{letter}
 
\end{document}
Attachments
test.pdf
(110.85 KiB) Downloaded 921 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

sjkiss
Posts: 30
Joined: Tue Nov 15, 2011 12:23 am

letter | Header with Logo

Post by sjkiss »

HI there, So now I'm trying to get the same thing to work with the KOMA class. Now, I can't get the logo centered!
Code is attached below.

Code: Select all

\documentclass[fontsize=12pt]{scrlttr2}
\usepackage{graphicx}
% Dont forget to read the KOMA-Script documentation, scrguien.pdf
\KOMAoptions{firsthead=on, fromlogo=on, fromalign=middle, backaddress=off, firstfoot=on}
\setkomavar{fromname}{} % your name
\setkomavar{fromaddress}{}
\setkomavar{signature}{Simon J. Kiss} % printed after the \closing
\setkomavar{fromlogo}{\includegraphics[scale=0.3]{/Users/simon/Documents/Laurier_Administration/Letterhead/wlu_logo.pdf}}
\setkomavar{subject}{Reference Letter For Peter Buckles} % subject of the letter
\firstfoot{\centering
\emph{Wilfrid Laurier University, Brantford Campus, 73 George Street, Brantford, ON, N3T 2Y3}
}
\begin{document}
\begin{letter}{Department of Criminology \\ Faculty of Social Sciences \\ 25 University Street \\ University of Ottawa \\ Ottawa, ON \\ K1N 6N5}
\opening{To Whom It May Concern:}  % eg. Hello
Attachments
test2.pdf
(59.47 KiB) Downloaded 687 times
Post Reply