1

How to create header using package fancyhdr like the below format? It is like mirror page.

LO                           PN    |    PN                           RE
------------------------------------------------------------------------------

LO - Left ODD

PN - Pagenumber

RE - RightEven

I want a output in latex and Can anyone send example for this code?

\fancyhead[LE]{\leftmark} 
\fancyhead[RO]{\rightmark} 
\fancyhead[CE,CO]{\thepage} 
\renewcommand{\headrulewidth}{0.4pt} 
\renewcommand{\footrulewidth}{0pt} 
2
  • Can anyone send example for this code? \fancyhead[LE]{\leftmark} \fancyhead[RO]{\rightmark} \fancyhead[CE,CO]{\thepage} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0pt}
    – user6830
    Aug 8, 2011 at 10:20
  • What do you mean "send example for this code"?
    – Seamus
    Aug 8, 2011 at 10:27

1 Answer 1

2

Did you give up on the fancyhdr manual before page 7?

\documentclass{book}
\usepackage{fancyhdr,lipsum}
\pagestyle{fancy}
\fancyhead[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\begin{document}
\lipsum\lipsum
\end{document}
1
  • Can anyone send example for this code? \fancyhead[LE]{\leftmark} \fancyhead[RO]{\rightmark} \fancyhead[CE,CO]{\thepage} \renewcommand{\headrulewidth}{0.4pt} \renewcommand{\footrulewidth}{0pt}
    – user6830
    Aug 8, 2011 at 10:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .