Page LayoutHeader Layout help

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
nkal
Posts: 17
Joined: Fri Jul 10, 2009 8:57 pm

Header Layout help

Post by nkal »

Hello,

I had asked this question as part of another post and this issue got lost among the list of other problems I had. So, I am bringing it up as a new post.

I am having a problem with adding an image to the header. I am using document class 'report' and I need to add an image in the left part of the header. I am currently using this:

Code: Select all

\pagestyle{fancy}
\lhead{\includegraphics[323pt,229pt][466pt,314pt]{Header_image.eps}}
\rhead{\parbox{7.5in}{\fontsize{11pt}{0pt}\fontfamily{phv}\selectfont{\hspace{3.81in}{
  \textbf{TRL - 2 Report}}} }}
With this, the image appears only on a few pages of the report: the title page, the last page and the page which is not a 'chapter page'. The table of contents, list of figures, list of tables, and all the chapter title pages do not get this header. Plus, the image placement is weird. I get a lot of white space under the image (like in a figure) and so the rhead is displaced vertically down and both image and rhead are not at the same height.

I have been breaking my head over this for days, any help is welcome!

Cheers,
Nkal
Last edited by Stefan Kottwitz on Mon Jul 16, 2012 9:09 pm, edited 1 time in total.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header Layout help

Post by localghost »

nkal wrote:[…] I had asked this question as part of another post and this issue got lost among the list of other problems I had.[…]
That's the reason why you should never mix up different topics in one thread.


For an adequate problem description and in order to avoid guesses and random shots please prepare a proper minimal example that contains all necessary but only relevant information in form of code.


Thorsten
nkal
Posts: 17
Joined: Fri Jul 10, 2009 8:57 pm

Header Layout help

Post by nkal »

Hi there,

I could resolve most of the things and have a much simpler question to ask now. How do I change the attributes of the following pages so that the generic header and footer apply to them:
  1. table of contents page
  2. List to figures page
  3. List of tables page
  4. First page of every chapter.
Last edited by nkal on Tue Jul 17, 2012 5:13 pm, edited 1 time in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header Layout help

Post by localghost »

nkal wrote:[…] How do I change the attributes of the following pages so that the generic header and footer apply to them:
  1. table of contents page
  2. List to figures page
  3. List of tables page
  4. First page of every chapter.
Here is the minimal example. […]
Read Section 7 of the fancyhdr manual. And please do not call an example minimal which isn't minimal at all. This could irritate others (especially beginners).

For building a proper minimal example you should take a look at some useful packages.
nkal
Posts: 17
Joined: Fri Jul 10, 2009 8:57 pm

Header Layout help

Post by nkal »

Thank you for the tip. I removed the code from the post to avoid irritating others.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Header Layout help

Post by localghost »

nkal wrote:[…] I removed the code from the post to avoid irritating others.
You should not evade building a proper minimal example. That isn't helpful either. But now you can continue with this:
localghost wrote: Read Section 7 of the fancyhdr manual. […]
nkal
Posts: 17
Joined: Fri Jul 10, 2009 8:57 pm

Re: Header Layout help

Post by nkal »

I forgot to mention in the last post that I could find a solution to the problem by redefining \fancypagestyle{plain}.

Thank you for your help!
Post Reply