I have a problem with the fancyhdr package. What I want is to have the
title of my article on the center of the header on every page (except the
first) and I want the page number on the outer footer of every page (except
the first of course).
I am able to put the title in center of the header and the page number in
center of the footer with these commands:
\documentclass[twoside,a4paper]{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\chead{The title of my article}
\rhead{}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\usepackage{graphicx}
\begin{document}
But when I try this:
\documentclass[twoside,a4paper]{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[CH]{The title of my article}
\fancyhead[LFO,RFE]{\thepage}
\usepackage{graphicx}
\begin{document}
I got a page number in the center of the footer and in the outer header too.
What am I doing wrong?
The versions I use:
TeX, Version 3.14159 (Web2C 7.3.1)
LaTeX2e <1998/12/01> patch level 1
Document Class: article 1999/01/07 v1.4a Standard LaTeX document class
Style Option FULLPAGE Version 2 as of 15 Dec 1988
fancyhdr.sty version 1.99d
1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
Bye,NAR
> I have a problem with the fancyhdr package. What I want is to have
> the title of my article on the center of the header on every page
> (except the first) and I want the page number on the outer footer
> of every page (except the first of course).
> But when I try this:
[..]
This should do it:
\documentclass[twoside,a4paper]{article}
\usepackage{fullpage}
\usepackage{fancyhdr}
\usepackage{german}
\usepackage{graphicx}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{The title of myarticle}
\fancyfoot[LE,RO]{\thepage}
\begin{document}
You'd better keep certain settings (as fancyhdr infos are) out of the
\usepackage-part.
> I got a page number in the center of the footer and in the outer
> header too. What am I doing wrong?
You haven't read the fancyhdr doc carefully enough, especially page 7
of the dvi file.
HTH,
Andreas
--
FAQ: Wie zitiere ich im Usenet? http://learn.to/quote
OE-FAQ: http://www.hreimers.de/oe5/
NAR> Hello!
NAR> I have a problem with the fancyhdr package. What I want is to
NAR> have the title of my article on the center of the header on every page
NAR> (except the first) and I want the page number on the outer footer of
NAR> every page (except the first of course).
NAR> But when I try this:
NAR> \documentclass[twoside,a4paper]{article}
NAR> \usepackage{fullpage}
NAR> \usepackage{fancyhdr}
NAR> \pagestyle{fancy}
NAR> \fancyhead{}
NAR> \fancyhead[CH]{The title of my article}
NAR> \fancyhead[LFO,RFE]{\thepage}
^^^^
Either:
\fancyhf[LFO,RFE]{\thepage}
or:
\fancyfoot[LO,RE]{\thepage}
--
Piet van Oostrum <pi...@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van....@hccnet.nl
>\usepackage{german}
Oops, cut this, of course.
Andreas