Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm building my own letterhead with LaTeX.

I would have:

  • a first page with header and footer
  • from second page ahead, just header, but different from first page.

I've already built a one page letterhead with fancy class (I have a header and a footer with images and text)

But, what I'm unable to do is to change the footer and header starting from the second page of the document.

So, I think I should understood when first page end, and the use a new header formatting. Isn't it?

How can I do that?

share|improve this question

migrated from stackoverflow.com Apr 20 '11 at 10:36

This question came from our site for professional and enthusiast programmers.

2  
It's worth to take a look at the »scrlttr2« class from the KOMA Script bundle. –  Thorsten Donig Apr 20 '11 at 16:41
add comment

1 Answer 1

What you should do do is to define a header and footer for the document and re-define the header and footer for the first page. Here's a snippet from a .cls files I wrote a while ago. Some of the variables, spacings, etc are specific to my use but it should give you a rough idea of what to do.

\pagestyle{fancy}
\fancyhead{}
\fancyhead[CE]{\textit{\@title}}
\fancyhead[CO]{\sc \@runningname}
\fancyfoot{}
\fancyfoot[C]{\thepage}
\setlength{\headsep}{10pt}

\fancypagestyle{first}{% 
\setlength{\headsep}{0pt}
\fancyhead[C]{ }
\fancyfoot[C]{\thepage}
\fancyfoot[R]{\today}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}%

You can also go though the documentation for the package (fancyhdr). I found it very helpful.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.