This blog has moved! Redirecting...
You should be automatically redirected. If not, visit http://scrolls.mafgani.net/ and update your bookmarks.

Monday, October 22, 2007

Logo in a LaTeX document header/footer

Easily accomplished using the 'fancyhdr' package:

\usepackage{fancyhdr}
\renewcommand{\headheight}{0.6in}
\setlength{\headwidth}{\textwidth}
\fancyhead[L]{}% empty left
\fancyhead[R]{ % right
\includegraphics[height=0.53in]{img-file}
}
\pagestyle{fancy}

All of that goes into the preamble of the document.

3 Comments:

Blogger thijs said...

Hey,

Tried to use this, but \renewcommand{\headheight}{0.6in} didn't work. Replaced by \setlength{\headheight}{0.6in}
, that worked fine. Thanks for the hint though, you helped me out of a hell of a lot trouble with placing my graphics on the perfect spot!

Thijs

2:32 PM  
Blogger DarkKnight said...

Thanks for the comment. I suppose things might have changed since the time this post was made :)

2:34 PM  
Anonymous Anonymous said...

Thanks, it worked! :)

7:43 AM  

Post a Comment

<< Home