[Tex/LaTex] Footer/Header for first page of two column article

articleheader-footerieeetran

How can I add a footer and header just on the first page of a two column scientific article of type \documentclass[conference]{IEEEtran} and/or \documentclass{article}?

Best Answer

Use fancyhdr to create a firstpage page style and apply it after \maketitle using \thispagestyle{firstpage}:

enter image description here

\documentclass[conference]{IEEEtran}
\usepackage{fancyhdr,lipsum}
\fancypagestyle{firstpage}{% Page style for first page
  \fancyhf{}% Clear header/footer
  \renewcommand{\headrulewidth}{0.4pt}% Header rule
  \renewcommand{\footrulewidth}{0.4pt}% Footer rule
  \fancyhead[C]{My Title --- An Author}% Header
  \fancyfoot[C]{-~\thepage~-}% Footer
}
\pagestyle{plain}% Default page style

\title{My Title}
\author{An Author}
\begin{document}
\maketitle
\thispagestyle{firstpage}% firstpage page style for first page

\lipsum[1-17]

\end{document}
Related Question