First of all, I'd like to say that I have been trying to solve this for the last 2 days, w/o any success. I would like to be able to have a header at my first page (centered with the line underneath) and a footer at the same page (centered). For all other pages, I would like to have just a header (to the right), which is different than the first one. Could anyone please advice me how to proceed? I'm totally lost.
Is there a simple way with the package fancyhdr to have different headers/footers at different pages? (not just even-odd). This is what I have tried:
You have to define several page styles by the \fancypagestyle command and later use them by the known \pagestyle command. Actually the fancyhdr manual is quite clear in this regard.
Thank you for your help. The manual was not quite clear to me, at least, however I figured it out, based on what you said. For future reference, if anybody comes across this, here's what I did:
This code snippet is useless, thus represents no solution. It uses self-defined stuff and commands from other packages. A full example would be best to comprehend what you did. Finally your are not only writing here for yourself, but also for others.
localghost wrote:This code snippet is useless, thus represents no solution. It uses self-defined stuff and commands from other packages. A full example would be best to comprehend what you did. Finally your are not only writing here for yourself, but also for others.
I could respond to this comment in many ways, however, for the best of humanity I choose to make things crystal clear, in the best possible way that I can:
The problem: I wanted to have one header in the first page of my doc and a different one in the remaining pages. Also, only one footer in the first page and nothing in the rest.
The solution: Redefine, via "\fancypagestyle", the plain pagestyle and later use it, when required. This is shown in the previous "useless" snippet.Then, when the document begins (that is, the first page of my doc, which I want it to be different than the rest):
, defined above with the
parameters that apply in each case ( for me it was a \chead and a \cfoot ). This way, we are asking latex to use
the pagestyle we have user-defined, for the first page only, in order to differ from the rest.
Now, for the rest of the pages in my doc, I used again the previous "useless" snippet, given in my previous post. So all in all, the code would like: