For a report, I want to use the header on the first page to display my group members. But I do NOT want this header to appear on the subsequent pages. I've used fancyhdr to create the header and successfully removed the horizontal line underneath it, but I don't manage to make the header disappear starting with page 2.

Here is some of my code:




% header without line
\rhead{Group: Group member 1, 2, 3, 4}

  • Welcome to TeX.SE! A command \pagestyle{empty} in your second page's content will do the job. But please... Edit your post to have fancyhdr package loaded and to show at least two pages (use lipsum or blindtext) – koleygr Oct 12 '17 at 22:56

This does what you want if I've well understood:

\sethead{}{Tweedledee and Tweedledum}{}%




enter image description here

  • Also a very elegant solution! Thank you very much. – Tea Tree Oct 12 '17 at 23:02

For a single page, just use tikzpagenodes. (I wasn't sure if you wanted it centered, left or right justified.)

Don't forget to run it twice.

\usepackage{showframe}% debugging tool


\begin{tikzpicture}[remember picture, overlay]
  \node[anchor=base] at (current page header area.south) {Group: Group member 1, 2, 3, 4};

  • Thanks, this actually solves my problem. I was hoping fancyhdr would suffice, but for my purposes it seems even smarter to take a command that isn't even intended to add headers on every page. – Tea Tree Oct 12 '17 at 23:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.