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} 
  • 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 '11 at 10:20
  • What do you mean "send example for this code"? – Seamus Aug 8 '11 at 10:27
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}
  • 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 '11 at 10:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.