TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i need some support with my headers and footers. Actually my expectation was that Latex was good right at these type of things, but i'm very confused that i don't get it sorted out.

I have the article class, twosided. I define my own header and footer. Now on the first page of my sections i would like to have no header. I could live with writing \thispagestyle{something} just after the \section command.

But when i use "plain" or "empty" i loose my footer that i have styled in the way i need it. In particular, plain page style puts the page number in the middle, empty completely removes the footer. I need my page numbers on the left or right, as it is a twosided document.

My MWE is a bit verbose, it creates 5 pages with blindtext and a couple of sections. On the pages where the sections start, i somehow need my custom footer, but no header. Unfortunatelly i cannot switch to another class than article.

Hope you can help me.

Cheers Janos



\fancyhf{}% Clear header/footer


\renewcommand{\sectionmark}[1]{\markboth{\thesection\quad#1}{}} % set the \leftmark


    \section{First Section}

    \subsection{Subsection One}
    \subsection{Subsection Two}
    \subsection{Subsection Three}
    \subsection{Subsection Four}

    \section{Second Section - I don't want a header here}

    \subsection{I don't want a different footer though}
    \subsection{Nor can i live without my footer}
share|improve this question
Define a new page style with only a footer (I suppose you want only the page number). and redefine the sections formatting, adding a \thispagestyle{only_footer}. – Bernard Aug 7 '14 at 21:22
up vote 5 down vote accepted

Add the following at the end of your preamble:

  \fancyhf{}% Clear header/footer

Also, remove \thispagestyle{empty} after issuing the second \section.

share|improve this answer

Your Answer


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

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