Page Layout ⇒ Fancyhdr Header with images
Fancyhdr Header with images
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.
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Fancyhdr Header with images
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Fancyhdr Header with images
Thanks in advance¡¡¡¡
Fancyhdr Header with images
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