Page LayoutFancyhdr Header with images

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
osbacan
Posts: 2
Joined: Sat Jan 31, 2009 5:29 pm

Fancyhdr Header with images

Post by osbacan »

Hi all,

I want to make a document with a header using Fancyhdr in latex.

I want to insert two images one in the left of the header the other on the right.

Both images have the same size imagine (2 cm high 3 long).

The middle of the header would be a text. I want to create the header color black and the letters I´ll writte will be white to contrast.

Can anyone tell me guide with the code.

Thanks for all in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Fancyhdr Header with images

Post by localghost »

See the fancyhdr manual (Section 20 - A movie, p. 19) for an example with code. Adapt the sample code to your needs.


Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
osbacan
Posts: 2
Joined: Sat Jan 31, 2009 5:29 pm

Re: Fancyhdr Header with images

Post by osbacan »

Sorry for the reply but I have tried to use rhead with images but only appears a part of the image. Can anyone help only a bit telling me the code I know thar it is not so difficult but I can´t find the solution...and I´m going crazy.

Thanks in advance¡¡¡¡
Lucia
Posts: 36
Joined: Wed Dec 31, 2008 9:03 pm

Fancyhdr Header with images

Post by Lucia »

Hi osbacan.

Follow the sugestion that localghost gave you. By reading the fancyhdr manual, you'll see that you need another package, graphicx. The purpose of this package is to manipulate images. So, you use it to scale, rotate or even give a different angle to your image. Reading both manuals will help you to create the code you need. For your information, I also have in my .tex file a header with an image (but not with a different colour background). My code is:

Code: Select all

\lfoot{\includegraphics[scale=0.09]{logo1}}

Lucia
Post Reply