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 want to put a footer on page 1 but not on other pages. I also want to put a header on all pages. Could some one tell me how I can do that? The code I am using so far (only relevant lines shown):

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[CO,CE]{This is my header text}
\renewcommand{\headrulewidth}{0pt}
\pagenumbering{gobble}

\begin{document}

\maketitle
\thispagestyle{fancy}
\lfoot{This is my footer text}

This generates a header on all pages (which is good), but also a footer on all pages. I don't want footer on pages other than the first.

share|improve this question
    
Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. –  Kurt Oct 19 '12 at 17:54
    
Got it @Kurt! :) –  Nik Oct 19 '12 at 17:56
    
Have you tried to add \lfoot{} after the titlepage to clear the footer? –  Kurt Oct 19 '12 at 17:56
    
Actually I don't know the extent of my titlepage. It is a conference paper and so there is no titlepage. –  Nik Oct 19 '12 at 17:58
    
Oh cool! That worked! :) –  Nik Oct 19 '12 at 18:00

1 Answer 1

up vote 3 down vote accepted

See this MWE, it shoud do it for you:

%http://tex.stackexchange.com/questions/78349/fancyhdr-include-footnote-only-on-page-1-but-header-on-all-pages
\documentclass[twoside]{report}
\usepackage[ansinew]{inputenc}
\usepackage{fancyhdr}
\usepackage{lipsum}

\pagestyle{fancy}
\fancyhead[CO,CE]{This is my header text}
\renewcommand{\headrulewidth}{0pt}
\pagenumbering{gobble}

\title{Test Paper}
\begin{document}

\maketitle

%following page with footer
\thispagestyle{fancy}
\lfoot{This is my footer text}
\section{Section I}
\lipsum[1]

\clearpage
\lfoot{}       % this was missing!
\section{Section}
\lipsum[1-2]

\end{document}
share|improve this answer

Your Answer

 
discard

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.