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 a header similar to Microsoft word that appears at the top of each page. However I do not want this on the first page. I would like to have the name of the project on the left, my name in the middle, and the date on the right.

  1. What packages and commands will create a header as described above?
  2. What approaches can I take to customize the header?
share|improve this question
For packages see tex.stackexchange.com/questions/1247/… –  lockstep Dec 20 '12 at 17:26
or otherwise Word-style headers in LaTeX –  cmhughes Dec 20 '12 at 17:36
add comment

3 Answers

up vote 25 down vote accepted

You can use fancyhdr to facilitate making headers and footers. If you want the first page to have no header or footer---without using any special packages---you can issue \thispagestyle{empty} on the first page.

\usepackage{lipsum}%% a garbage package you don't need except to create examples.
\lhead{This is my name}
\rhead{this is page \thepage}
\cfoot{center of the footer!}



share|improve this answer
add comment

The most obvious package is fancyhdr which allows you to set up left, right and center adjusted headers and footers.

Your document ned to start with:


You can then format your header and footer with


Just leave them empty if you do not need any entry. you should check the fancyhdr manual for details on all possibilities with the package.

share|improve this answer
Hi Peter, to answer to your moderator attention flag: no you can't merge answers, but you could always edit other answers to improve them if you have enough reputation. It is not an issue to have two similar answers posted at about the same time. This happens from time to time. Sometimes one of the poster deletes his/her post then but this is not required. –  Martin Scharrer Dec 21 '12 at 16:35
add comment

It depends which document class you are using.

If you are using document class memoir you please have a look to the question simple footers with only a page number. Document class memoir has its own header and footer mechanismn.

If you are using KOMA-Script, for example scrbook, you should use the KOMA-Script package scrpage2.

If you are using the classical document classes, for example book, you can use fancyhdr or scrpage2.

MWE for the usage of scrpage2:

  fontsize=12pt  %
 ,english        % 
 ,headinclude    %
 ,headsepline    % line between head an document text
%,BCOR=12mm      % 
]{scrbook}       % twosided, A4 paper


\usepackage{blindtext} % provides blindtext with sectioning

\usepackage{scrpage2}  % header and footer for KOMA-Script

\clearscrheadfoot                 % deletes header/footer
\pagestyle{scrheadings}           % use following definitions for header/footer
% definitions/configuration for the header
\rehead[]{This is my name}        % equal page, right position (inner) 
\lohead[]{This is my name}        % odd   page, left  position (inner) 
\lehead[]{this is page \pagemark} % equal page, left (outer) position
\rohead[]{this is page \pagemark}
% definitions/configuration for the footer
\cefoot[]{center of the footer!}  % equal page, center position
\cofoot[\pagemark]{\pagemark}     % odd   page, center position



share|improve this answer
add comment

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.